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

#include <albaGizmoScaleAxis.h>

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

Public Types

enum  AXIS { X = 0 , Y , Z }
 
- Public Types inherited from albaGizmoInterface
enum  MODALITY { G_LOCAL = 0 , G_GLOBAL }
 

Public Member Functions

 albaGizmoScaleAxis (albaVME *input, albaObserver *listener=NULL)
 
virtual ~albaGizmoScaleAxis ()
 
void SetInput (albaVME *vme)
 
albaVMEGetInput ()
 
void SetListener (albaObserver *Listener)
 
virtual void OnEvent (albaEventBase *alba_event)
 
void SetAxis (int axis)
 
int GetAxis () const
 
void Highlight (bool highlight)
 
void Show (bool show)
 
void SetAbsPose (albaMatrix *absPose)
 
albaMatrixGetAbsPose ()
 
void SetCubeLength (double length)
 
double GetCubeLength () const
 
void SetCylinderLength (double length)
 
double GetCylinderLength () 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 Types

enum  GIZMOPARTS { CYLINDER = 0 , CUBE }
 

Protected Member Functions

void SetRefSysMatrix (albaMatrix *constrain)
 
void CreatePipeline ()
 
void CreateISA ()
 
void SetColor (int part, double col[3])
 
void SetColor (int part, double colR, double colG, double colB)
 
void SetColor (double cylCol[3], double coneCol[3])
 
void SetColor (double cylR, double cylG, double cylB, double coneR, double coneG, double coneB)
 
- 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
 
albaVMEGizmo * m_CylGizmo
 
albaVMEm_InputVme
 
int m_Axis
 
vtkCubeSource * m_Cube
 
vtkCylinderSource * m_Cylinder
 
vtkTransformPolyDataFilter * m_TranslatePDF [2]
 
vtkTransform * m_TranslateTr [2]
 
vtkTransformPolyDataFilter * m_RotatePDF [2]
 
vtkTransform * m_RotationTr
 
albaInteractorCompositorMousem_IsaComp [2]
 
albaInteractorGenericMousem_IsaGen [2]
 
albaObserverm_Listener
 
bool m_Highlight
 
bool m_Show
 
- 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 albaGizmoScaleAxisTest
 

Detailed Description

Basic gizmo component used to perform constrained scaling along one axis.

See also
albaGizmoScale

Definition at line 45 of file albaGizmoScaleAxis.h.

Member Enumeration Documentation

◆ AXIS

Axis enum.

Enumerator

Definition at line 71 of file albaGizmoScaleAxis.h.

◆ GIZMOPARTS

Enumerator
CYLINDER 
CUBE 

Definition at line 124 of file albaGizmoScaleAxis.h.

Constructor & Destructor Documentation

◆ albaGizmoScaleAxis()

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

◆ ~albaGizmoScaleAxis()

virtual albaGizmoScaleAxis::~albaGizmoScaleAxis ( )
virtual

Member Function Documentation

◆ SetInput()

void albaGizmoScaleAxis::SetInput ( albaVME vme)
virtual

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

Reimplemented from albaGizmoInterface.

◆ GetInput()

albaVME * albaGizmoScaleAxis::GetInput ( )
inline

Definition at line 54 of file albaGizmoScaleAxis.h.

◆ SetListener()

void albaGizmoScaleAxis::SetListener ( albaObserver Listener)
inline

Set the event receiver object.

Definition at line 61 of file albaGizmoScaleAxis.h.

◆ OnEvent()

virtual void albaGizmoScaleAxis::OnEvent ( albaEventBase alba_event)
virtual

Events handling.

Reimplemented from albaGizmoInterface.

◆ SetAxis()

void albaGizmoScaleAxis::SetAxis ( int  axis)

Set/Get gizmo axis, default axis is X.

◆ GetAxis()

int albaGizmoScaleAxis::GetAxis ( ) const

◆ Highlight()

void albaGizmoScaleAxis::Highlight ( bool  highlight)

Highlight the gizmo.

◆ Show()

void albaGizmoScaleAxis::Show ( bool  show)
virtual

Show the gizmo.

Reimplemented from albaGizmoInterface.

◆ SetAbsPose()

void albaGizmoScaleAxis::SetAbsPose ( albaMatrix absPose)
virtual

Set the abs pose.

Reimplemented from albaGizmoInterface.

◆ GetAbsPose()

albaMatrix * albaGizmoScaleAxis::GetAbsPose ( )
virtual

Get the gizmo abs pose.

Reimplemented from albaGizmoInterface.

◆ SetCubeLength()

void albaGizmoScaleAxis::SetCubeLength ( double  length)

Set/Get the length of the cone.

◆ GetCubeLength()

double albaGizmoScaleAxis::GetCubeLength ( ) const

◆ SetCylinderLength()

void albaGizmoScaleAxis::SetCylinderLength ( double  length)

Set/Get the length of the cylinder.

◆ GetCylinderLength()

double albaGizmoScaleAxis::GetCylinderLength ( ) const

◆ SetRefSysMatrix()

void albaGizmoScaleAxis::SetRefSysMatrix ( albaMatrix constrain)
protected

Set the constrain ref sys.

◆ CreatePipeline()

void albaGizmoScaleAxis::CreatePipeline ( )
protected

Create vtk objects needed.

◆ CreateISA()

void albaGizmoScaleAxis::CreateISA ( )
protected

Create isa stuff.

◆ SetColor() [1/4]

void albaGizmoScaleAxis::SetColor ( int  part,
double  col[3] 
)
protected

Gizmo color setting facilities; part can be CYLINDER or CUBE.

◆ SetColor() [2/4]

void albaGizmoScaleAxis::SetColor ( int  part,
double  colR,
double  colG,
double  colB 
)
protected

◆ SetColor() [3/4]

void albaGizmoScaleAxis::SetColor ( double  cylCol[3],
double  coneCol[3] 
)
protected

◆ SetColor() [4/4]

void albaGizmoScaleAxis::SetColor ( double  cylR,
double  cylG,
double  cylB,
double  coneR,
double  coneG,
double  coneB 
)
protected

Friends And Related Function Documentation

◆ albaGizmoScaleAxisTest

friend class albaGizmoScaleAxisTest
friend

Test friend.

Definition at line 178 of file albaGizmoScaleAxis.h.

Member Data Documentation

◆ m_CubeGizmo

albaVMEGizmo* albaGizmoScaleAxis::m_CubeGizmo
protected

Cube gizmo.

Definition at line 116 of file albaGizmoScaleAxis.h.

◆ m_CylGizmo

albaVMEGizmo* albaGizmoScaleAxis::m_CylGizmo
protected

cylinder gizmo

Definition at line 119 of file albaGizmoScaleAxis.h.

◆ m_InputVme

albaVME* albaGizmoScaleAxis::m_InputVme
protected

Register input vme.

Definition at line 122 of file albaGizmoScaleAxis.h.

◆ m_Axis

int albaGizmoScaleAxis::m_Axis
protected

Register the gizmo axis.

Definition at line 127 of file albaGizmoScaleAxis.h.

◆ m_Cube

vtkCubeSource* albaGizmoScaleAxis::m_Cube
protected

Cube source.

Definition at line 130 of file albaGizmoScaleAxis.h.

◆ m_Cylinder

vtkCylinderSource* albaGizmoScaleAxis::m_Cylinder
protected

Cylinder source.

Definition at line 133 of file albaGizmoScaleAxis.h.

◆ m_TranslatePDF

vtkTransformPolyDataFilter* albaGizmoScaleAxis::m_TranslatePDF[2]
protected

translate PDF for cylinder and cube

Definition at line 136 of file albaGizmoScaleAxis.h.

◆ m_TranslateTr

vtkTransform* albaGizmoScaleAxis::m_TranslateTr[2]
protected

translation transform for cylinder and cube

Definition at line 139 of file albaGizmoScaleAxis.h.

◆ m_RotatePDF

vtkTransformPolyDataFilter* albaGizmoScaleAxis::m_RotatePDF[2]
protected

rotate PDF for cylinder and cube

Definition at line 142 of file albaGizmoScaleAxis.h.

◆ m_RotationTr

vtkTransform* albaGizmoScaleAxis::m_RotationTr
protected

rotation transform for cylinder and cube

Definition at line 145 of file albaGizmoScaleAxis.h.

◆ m_IsaComp

albaInteractorCompositorMouse* albaGizmoScaleAxis::m_IsaComp[2]
protected

isa compositor

Definition at line 154 of file albaGizmoScaleAxis.h.

◆ m_IsaGen

albaInteractorGenericMouse* albaGizmoScaleAxis::m_IsaGen[2]
protected

isa generic

Definition at line 157 of file albaGizmoScaleAxis.h.

◆ m_Listener

albaObserver* albaGizmoScaleAxis::m_Listener
protected

Register the event receiver object.

Definition at line 167 of file albaGizmoScaleAxis.h.

◆ m_Highlight

bool albaGizmoScaleAxis::m_Highlight
protected

Register the highlight status.

Definition at line 171 of file albaGizmoScaleAxis.h.

◆ m_Show

bool albaGizmoScaleAxis::m_Show
protected

register the show status

Definition at line 175 of file albaGizmoScaleAxis.h.


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