ALBA
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
albaGizmoScaleIsotropic Class Reference

#include <albaGizmoScaleIsotropic.h>

Inheritance diagram for albaGizmoScaleIsotropic:
Inheritance graph
[legend]
Collaboration diagram for albaGizmoScaleIsotropic:
Collaboration graph
[legend]

Public Member Functions

 albaGizmoScaleIsotropic (albaVME *input, albaObserver *listener=NULL)
 
virtual ~albaGizmoScaleIsotropic ()
 
void SetInput (albaVME *vme)
 
albaVMEGetInput ()
 
void SetListener (albaObserver *Listener)
 
virtual void OnEvent (albaEventBase *alba_event)
 
void Highlight (bool highlight)
 
void Show (bool show)
 
void SetAbsPose (albaMatrix *absPose)
 
albaMatrixGetAbsPose ()
 
void SetCubeLength (double length)
 
double GetCubeLength () const
 
- Public Member Functions inherited from albaGizmoInterface
void SetName (albaString name)
 
albaString GetName ()
 
virtual void SetInput (albaVME *vme)
 
albaVMEGetInput ()
 
void SetMediator (albaObserver *mediator)
 
albaObserverGetMediator ()
 
void SetAutoscale (bool autoscale)
 
bool GetAutoscale ()
 
void SetRenderWindowHeightPercentage (double percentage)
 
double GetRenderWindowHeightPercentage ()
 
void SetAlwaysVisible (bool alwaysVisible)
 
bool GetAlwaysVisible ()
 
void SetListener (albaObserver *listener)
 
albaObserverGetListener ()
 
virtual void OnEvent (albaEventBase *alba_event)
 
virtual void Show (bool show)
 
void SetModalityToLocal ()
 
void SetModalityToGlobal ()
 
int GetModality ()
 
virtual void SetAbsPose (albaMatrix *absPose)
 
virtual albaMatrixGetAbsPose ()
 
virtual albaGUIGetGui ()
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Protected Member Functions

void SetRefSysMatrix (albaMatrix *constrain)
 
void CreatePipeline ()
 
void CreateISA ()
 
void SetColor (double col[3])
 
void SetColor (double colR, double colG, double colB)
 
- Protected Member Functions inherited from albaGizmoInterface
 albaGizmoInterface ()
 
virtual ~albaGizmoInterface ()
 
void SendTransformMatrix (albaMatrix *matrix, int eventId, long arg)
 
virtual void OnEventGizmoGui (albaEventBase *alba_event)
 
virtual void OnEventGizmoComponents (albaEventBase *alba_event)
 

Protected Attributes

albaVMEGizmo * m_CubeGizmo
 
albaVMEm_InputVme
 
vtkCubeSource * m_Cube
 
vtkTransformPolyDataFilter * m_TranslatePDF
 
albaInteractorCompositorMousem_IsaComp
 
albaInteractorGenericMousem_IsaGen
 
albaObserverm_Listener
 
- Protected Attributes inherited from albaGizmoInterface
albaObserverm_Mediator
 
albaString m_Name
 
albaVMEm_InputVME
 
int m_Modality
 
albaObserverm_Listener
 
albaVMEm_RefSysVME
 
bool m_Visibility
 
double m_RenderWindowHeightPercentage
 
bool m_AlwaysVisible
 
bool m_Autoscale
 

Friends

class albaGizmoScaleIsotropicTest
 

Additional Inherited Members

- Public Types inherited from albaGizmoInterface
enum  MODALITY { G_LOCAL = 0 , G_GLOBAL }
 

Detailed Description

Gizmo component used to perform isotropic scaling.

See also
albaGizmoScale

Definition at line 42 of file albaGizmoScaleIsotropic.h.

Constructor & Destructor Documentation

◆ albaGizmoScaleIsotropic()

albaGizmoScaleIsotropic::albaGizmoScaleIsotropic ( albaVME input,
albaObserver listener = NULL 
)

◆ ~albaGizmoScaleIsotropic()

virtual albaGizmoScaleIsotropic::~albaGizmoScaleIsotropic ( )
virtual

Member Function Documentation

◆ SetInput()

void albaGizmoScaleIsotropic::SetInput ( albaVME vme)
virtual

Set the gizmo generating vme; the gizmo will be centered on this vme.

Reimplemented from albaGizmoInterface.

◆ GetInput()

albaVME * albaGizmoScaleIsotropic::GetInput ( )
inline

Definition at line 51 of file albaGizmoScaleIsotropic.h.

◆ SetListener()

void albaGizmoScaleIsotropic::SetListener ( albaObserver Listener)
inline

Set the event receiver object.

Definition at line 58 of file albaGizmoScaleIsotropic.h.

◆ OnEvent()

virtual void albaGizmoScaleIsotropic::OnEvent ( albaEventBase alba_event)
virtual

Events handling.

Reimplemented from albaGizmoInterface.

◆ Highlight()

void albaGizmoScaleIsotropic::Highlight ( bool  highlight)

Highlight the gizmo.

◆ Show()

void albaGizmoScaleIsotropic::Show ( bool  show)
virtual

Show the gizmo.

Reimplemented from albaGizmoInterface.

◆ SetAbsPose()

void albaGizmoScaleIsotropic::SetAbsPose ( albaMatrix absPose)
virtual

Set the abs pose.

Reimplemented from albaGizmoInterface.

◆ GetAbsPose()

albaMatrix * albaGizmoScaleIsotropic::GetAbsPose ( )
virtual

Get the gizmo abs pose.

Reimplemented from albaGizmoInterface.

◆ SetCubeLength()

void albaGizmoScaleIsotropic::SetCubeLength ( double  length)

Set/Get the length of the cone.

◆ GetCubeLength()

double albaGizmoScaleIsotropic::GetCubeLength ( ) const

◆ SetRefSysMatrix()

void albaGizmoScaleIsotropic::SetRefSysMatrix ( albaMatrix constrain)
protected

Set the constrain ref sys.

◆ CreatePipeline()

void albaGizmoScaleIsotropic::CreatePipeline ( )
protected

Create vtk objects needed.

◆ CreateISA()

void albaGizmoScaleIsotropic::CreateISA ( )
protected

Create isa stuff.

◆ SetColor() [1/2]

void albaGizmoScaleIsotropic::SetColor ( double  col[3])
protected

Gizmo color setting facilities.

◆ SetColor() [2/2]

void albaGizmoScaleIsotropic::SetColor ( double  colR,
double  colG,
double  colB 
)
protected

Friends And Related Function Documentation

◆ albaGizmoScaleIsotropicTest

friend class albaGizmoScaleIsotropicTest
friend

friend test

Definition at line 127 of file albaGizmoScaleIsotropic.h.

Member Data Documentation

◆ m_CubeGizmo

albaVMEGizmo* albaGizmoScaleIsotropic::m_CubeGizmo
protected

Cube gizmo.

Definition at line 92 of file albaGizmoScaleIsotropic.h.

◆ m_InputVme

albaVME* albaGizmoScaleIsotropic::m_InputVme
protected

Register input vme.

Definition at line 95 of file albaGizmoScaleIsotropic.h.

◆ m_Cube

vtkCubeSource* albaGizmoScaleIsotropic::m_Cube
protected

Cube source.

Definition at line 98 of file albaGizmoScaleIsotropic.h.

◆ m_TranslatePDF

vtkTransformPolyDataFilter* albaGizmoScaleIsotropic::m_TranslatePDF
protected

Cylinder and cube gizmo vme data.

translate PDF for cylinder and cube

Definition at line 104 of file albaGizmoScaleIsotropic.h.

◆ m_IsaComp

albaInteractorCompositorMouse* albaGizmoScaleIsotropic::m_IsaComp
protected

isa compositor

Definition at line 113 of file albaGizmoScaleIsotropic.h.

◆ m_IsaGen

albaInteractorGenericMouse* albaGizmoScaleIsotropic::m_IsaGen
protected

isa generic

Definition at line 116 of file albaGizmoScaleIsotropic.h.

◆ m_Listener

albaObserver* albaGizmoScaleIsotropic::m_Listener
protected

Register the event receiver object.

Definition at line 124 of file albaGizmoScaleIsotropic.h.


The documentation for this class was generated from the following file: