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

#include <albaGizmoCrossTranslateAxis.h>

Inheritance diagram for albaGizmoCrossTranslateAxis:
Inheritance graph
[legend]
Collaboration diagram for albaGizmoCrossTranslateAxis:
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

 albaGizmoCrossTranslateAxis (albaVME *input, albaObserver *listener=NULL)
 
virtual ~albaGizmoCrossTranslateAxis ()
 
void SetInput (albaVME *vme)
 
albaVMEGetInput ()
 
void SetListener (albaObserver *Listener)
 
virtual void OnEvent (albaEventBase *alba_event)
 
void SetAxis (int axis)
 
int GetAxis ()
 
void Highlight (bool highlight)
 
void Show (bool show)
 
void ShowTranslationFeedbackArrows (bool show)
 
void SetCylinderLength (double length)
 
double GetCylinderLength ()
 
void SetAbsPose (albaMatrix *absPose)
 
albaMatrixGetAbsPose ()
 
void SetConstraintModality (int axis, int constrainModality)
 
void SetStep (int axis, double step)
 
void SetColor (double col[3])
 
void SetColor (double cylR, double cylG, double cylB)
 
- 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 CreateTranslationGizmoPipeline ()
 
void CreateISA ()
 
void CreateFeedbackGizmoPipeline ()
 
- 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_TranslationCylinderGizmo
 
double m_Color [3]
 
double m_LastColor [3]
 
albaVMEGizmo * m_TranslationFeedbackGizmo
 
vtkConeSource * m_FeedbackConeSource
 
vtkTransform * m_LeftUpFeedbackConeTransform
 
vtkTransform * m_LeftDownFeedbackConeTransform
 
vtkTransform * m_RightDownFeedbackConeTransform
 
vtkTransform * m_RightUpFeedbackConeTransform
 
vtkCylinderSource * m_FeedbackCylinderSource
 
vtkTransform * m_LeftFeedbackCylinderTransform
 
vtkTransform * m_RightFeedbackCylinderTransform
 
vtkTransformPolyDataFilter * m_LeftUpFeedbackConeTransformPDF
 
vtkTransformPolyDataFilter * m_LeftDownFeedbackConeTransformPDF
 
vtkTransformPolyDataFilter * m_RightUpFeedbackConeTransformPDF
 
vtkTransformPolyDataFilter * m_RightDownFeedbackConeTransformPDF
 
vtkTransformPolyDataFilter * m_LeftFeedbackCylinderTransformPDF
 
vtkTransformPolyDataFilter * m_RightFeedbackCylinderTransformPDF
 
vtkAppendPolyData * m_FeedbackStuffAppendPolydata
 
albaVMEm_InputVme
 
int m_Axis
 
vtkCylinderSource * m_RightCylinder
 
double m_CylinderLength
 
vtkTransformPolyDataFilter * m_RightTranslatePDF
 
vtkTransform * m_RightTranslateTr
 
vtkTransformPolyDataFilter * m_RightCylinderRotatePDF
 
vtkTransform * m_RightCylinderRotationTr
 
vtkCylinderSource * m_LeftCylinder
 
vtkTransformPolyDataFilter * m_LeftTranslatePDF
 
vtkTransform * m_LeftTranslateTr
 
vtkTransformPolyDataFilter * m_LeftCylinderRotatePDF
 
vtkTransform * m_LeftCylinderRotationTr
 
vtkAppendPolyData * m_Append
 
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 albaGizmoTranslateAxisTest
 

Detailed Description

Basic gizmo component used to perform constrained translation on one axis.

See also
albaGizmoCrossTranslate

Definition at line 46 of file albaGizmoCrossTranslateAxis.h.

Member Enumeration Documentation

◆ AXIS

Axis enum.

Enumerator

Definition at line 72 of file albaGizmoCrossTranslateAxis.h.

Constructor & Destructor Documentation

◆ albaGizmoCrossTranslateAxis()

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

◆ ~albaGizmoCrossTranslateAxis()

virtual albaGizmoCrossTranslateAxis::~albaGizmoCrossTranslateAxis ( )
virtual

Member Function Documentation

◆ SetInput()

void albaGizmoCrossTranslateAxis::SetInput ( albaVME vme)
virtual

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

Reimplemented from albaGizmoInterface.

◆ GetInput()

albaVME * albaGizmoCrossTranslateAxis::GetInput ( )
inline

Definition at line 55 of file albaGizmoCrossTranslateAxis.h.

References m_InputVme.

◆ SetListener()

void albaGizmoCrossTranslateAxis::SetListener ( albaObserver Listener)
inline

Set the event receiver object.

Definition at line 62 of file albaGizmoCrossTranslateAxis.h.

References m_Listener.

◆ OnEvent()

virtual void albaGizmoCrossTranslateAxis::OnEvent ( albaEventBase alba_event)
virtual

Events handling.

Reimplemented from albaGizmoInterface.

◆ SetAxis()

void albaGizmoCrossTranslateAxis::SetAxis ( int  axis)

Set/Get gizmo axis, default axis is X.

◆ GetAxis()

int albaGizmoCrossTranslateAxis::GetAxis ( )
inline

Definition at line 76 of file albaGizmoCrossTranslateAxis.h.

References m_Axis.

◆ Highlight()

void albaGizmoCrossTranslateAxis::Highlight ( bool  highlight)

Highlight the gizmo.

◆ Show()

void albaGizmoCrossTranslateAxis::Show ( bool  show)
virtual

Show the gizmo.

Reimplemented from albaGizmoInterface.

◆ ShowTranslationFeedbackArrows()

void albaGizmoCrossTranslateAxis::ShowTranslationFeedbackArrows ( bool  show)

Show the translation feedback arrows

◆ SetCylinderLength()

void albaGizmoCrossTranslateAxis::SetCylinderLength ( double  length)

Set/Get the length of the cylinder.

◆ GetCylinderLength()

double albaGizmoCrossTranslateAxis::GetCylinderLength ( )
inline

Definition at line 96 of file albaGizmoCrossTranslateAxis.h.

References m_CylinderLength.

◆ SetAbsPose()

void albaGizmoCrossTranslateAxis::SetAbsPose ( albaMatrix absPose)
virtual

Set the abs pose.

Reimplemented from albaGizmoInterface.

◆ GetAbsPose()

albaMatrix * albaGizmoCrossTranslateAxis::GetAbsPose ( )
virtual

Get the gizmo abs pose.

Reimplemented from albaGizmoInterface.

◆ SetConstraintModality()

void albaGizmoCrossTranslateAxis::SetConstraintModality ( int  axis,
int  constrainModality 
)

Set the constraint modality for the given axis; allowed constraint modality are: LOCK, FREE, BOUNDS, SNAP_STEP, SNAP_ARRAY.

◆ SetStep()

void albaGizmoCrossTranslateAxis::SetStep ( int  axis,
double  step 
)

Set the step value for snap step constraint type for the given axis.

◆ SetColor() [1/2]

void albaGizmoCrossTranslateAxis::SetColor ( double  col[3])

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

◆ SetColor() [2/2]

void albaGizmoCrossTranslateAxis::SetColor ( double  cylR,
double  cylG,
double  cylB 
)

◆ SetRefSysMatrix()

void albaGizmoCrossTranslateAxis::SetRefSysMatrix ( albaMatrix constrain)
protected

Set the constrain ref sys.

◆ CreateTranslationGizmoPipeline()

void albaGizmoCrossTranslateAxis::CreateTranslationGizmoPipeline ( )
protected

Create vtk objects needed.

◆ CreateISA()

void albaGizmoCrossTranslateAxis::CreateISA ( )
protected

Create isa stuff.

◆ CreateFeedbackGizmoPipeline()

void albaGizmoCrossTranslateAxis::CreateFeedbackGizmoPipeline ( )
protected

Create translation feedback arrows stuff.

Friends And Related Function Documentation

◆ albaGizmoTranslateAxisTest

friend class albaGizmoTranslateAxisTest
friend

test friend

Definition at line 218 of file albaGizmoCrossTranslateAxis.h.

Member Data Documentation

◆ m_TranslationCylinderGizmo

albaVMEGizmo* albaGizmoCrossTranslateAxis::m_TranslationCylinderGizmo
protected

Pickable translation cylinder gizmo.

Definition at line 118 of file albaGizmoCrossTranslateAxis.h.

◆ m_Color

double albaGizmoCrossTranslateAxis::m_Color[3]
protected

Definition at line 121 of file albaGizmoCrossTranslateAxis.h.

◆ m_LastColor

double albaGizmoCrossTranslateAxis::m_LastColor[3]
protected

Definition at line 122 of file albaGizmoCrossTranslateAxis.h.

◆ m_TranslationFeedbackGizmo

albaVMEGizmo* albaGizmoCrossTranslateAxis::m_TranslationFeedbackGizmo
protected

Translation feedback arrows gizmo.

Definition at line 125 of file albaGizmoCrossTranslateAxis.h.

◆ m_FeedbackConeSource

vtkConeSource* albaGizmoCrossTranslateAxis::m_FeedbackConeSource
protected

Definition at line 127 of file albaGizmoCrossTranslateAxis.h.

◆ m_LeftUpFeedbackConeTransform

vtkTransform* albaGizmoCrossTranslateAxis::m_LeftUpFeedbackConeTransform
protected

Definition at line 129 of file albaGizmoCrossTranslateAxis.h.

◆ m_LeftDownFeedbackConeTransform

vtkTransform* albaGizmoCrossTranslateAxis::m_LeftDownFeedbackConeTransform
protected

Definition at line 130 of file albaGizmoCrossTranslateAxis.h.

◆ m_RightDownFeedbackConeTransform

vtkTransform* albaGizmoCrossTranslateAxis::m_RightDownFeedbackConeTransform
protected

Definition at line 131 of file albaGizmoCrossTranslateAxis.h.

◆ m_RightUpFeedbackConeTransform

vtkTransform* albaGizmoCrossTranslateAxis::m_RightUpFeedbackConeTransform
protected

Definition at line 132 of file albaGizmoCrossTranslateAxis.h.

◆ m_FeedbackCylinderSource

vtkCylinderSource* albaGizmoCrossTranslateAxis::m_FeedbackCylinderSource
protected

Definition at line 134 of file albaGizmoCrossTranslateAxis.h.

◆ m_LeftFeedbackCylinderTransform

vtkTransform* albaGizmoCrossTranslateAxis::m_LeftFeedbackCylinderTransform
protected

Definition at line 136 of file albaGizmoCrossTranslateAxis.h.

◆ m_RightFeedbackCylinderTransform

vtkTransform* albaGizmoCrossTranslateAxis::m_RightFeedbackCylinderTransform
protected

Definition at line 137 of file albaGizmoCrossTranslateAxis.h.

◆ m_LeftUpFeedbackConeTransformPDF

vtkTransformPolyDataFilter* albaGizmoCrossTranslateAxis::m_LeftUpFeedbackConeTransformPDF
protected

Definition at line 139 of file albaGizmoCrossTranslateAxis.h.

◆ m_LeftDownFeedbackConeTransformPDF

vtkTransformPolyDataFilter* albaGizmoCrossTranslateAxis::m_LeftDownFeedbackConeTransformPDF
protected

Definition at line 140 of file albaGizmoCrossTranslateAxis.h.

◆ m_RightUpFeedbackConeTransformPDF

vtkTransformPolyDataFilter* albaGizmoCrossTranslateAxis::m_RightUpFeedbackConeTransformPDF
protected

Definition at line 141 of file albaGizmoCrossTranslateAxis.h.

◆ m_RightDownFeedbackConeTransformPDF

vtkTransformPolyDataFilter* albaGizmoCrossTranslateAxis::m_RightDownFeedbackConeTransformPDF
protected

Definition at line 142 of file albaGizmoCrossTranslateAxis.h.

◆ m_LeftFeedbackCylinderTransformPDF

vtkTransformPolyDataFilter* albaGizmoCrossTranslateAxis::m_LeftFeedbackCylinderTransformPDF
protected

Definition at line 144 of file albaGizmoCrossTranslateAxis.h.

◆ m_RightFeedbackCylinderTransformPDF

vtkTransformPolyDataFilter* albaGizmoCrossTranslateAxis::m_RightFeedbackCylinderTransformPDF
protected

Definition at line 145 of file albaGizmoCrossTranslateAxis.h.

◆ m_FeedbackStuffAppendPolydata

vtkAppendPolyData* albaGizmoCrossTranslateAxis::m_FeedbackStuffAppendPolydata
protected

Definition at line 147 of file albaGizmoCrossTranslateAxis.h.

◆ m_InputVme

albaVME* albaGizmoCrossTranslateAxis::m_InputVme
protected

Register input vme.

Definition at line 154 of file albaGizmoCrossTranslateAxis.h.

Referenced by GetInput().

◆ m_Axis

int albaGizmoCrossTranslateAxis::m_Axis
protected

Register the gizmo axis.

Definition at line 157 of file albaGizmoCrossTranslateAxis.h.

Referenced by GetAxis().

◆ m_RightCylinder

vtkCylinderSource* albaGizmoCrossTranslateAxis::m_RightCylinder
protected

Cylinder source.

Definition at line 160 of file albaGizmoCrossTranslateAxis.h.

◆ m_CylinderLength

double albaGizmoCrossTranslateAxis::m_CylinderLength
protected

Cylinder length.

Definition at line 163 of file albaGizmoCrossTranslateAxis.h.

Referenced by GetCylinderLength().

◆ m_RightTranslatePDF

vtkTransformPolyDataFilter* albaGizmoCrossTranslateAxis::m_RightTranslatePDF
protected

Cylinder and cone gizmo vme data.

translate PDF for cylinder and cone

Definition at line 169 of file albaGizmoCrossTranslateAxis.h.

◆ m_RightTranslateTr

vtkTransform* albaGizmoCrossTranslateAxis::m_RightTranslateTr
protected

translation transform for cylinder and cone

Definition at line 172 of file albaGizmoCrossTranslateAxis.h.

◆ m_RightCylinderRotatePDF

vtkTransformPolyDataFilter* albaGizmoCrossTranslateAxis::m_RightCylinderRotatePDF
protected

rotate PDF for cylinder and cone

Definition at line 175 of file albaGizmoCrossTranslateAxis.h.

◆ m_RightCylinderRotationTr

vtkTransform* albaGizmoCrossTranslateAxis::m_RightCylinderRotationTr
protected

rotation transform for cylinder and cone

Definition at line 178 of file albaGizmoCrossTranslateAxis.h.

◆ m_LeftCylinder

vtkCylinderSource* albaGizmoCrossTranslateAxis::m_LeftCylinder
protected

Cylinder source.

Definition at line 181 of file albaGizmoCrossTranslateAxis.h.

◆ m_LeftTranslatePDF

vtkTransformPolyDataFilter* albaGizmoCrossTranslateAxis::m_LeftTranslatePDF
protected

translate PDF for cylinder and cone

Definition at line 184 of file albaGizmoCrossTranslateAxis.h.

◆ m_LeftTranslateTr

vtkTransform* albaGizmoCrossTranslateAxis::m_LeftTranslateTr
protected

translation transform for cylinder and cone

Definition at line 187 of file albaGizmoCrossTranslateAxis.h.

◆ m_LeftCylinderRotatePDF

vtkTransformPolyDataFilter* albaGizmoCrossTranslateAxis::m_LeftCylinderRotatePDF
protected

rotate PDF for cylinder and cone

Definition at line 190 of file albaGizmoCrossTranslateAxis.h.

◆ m_LeftCylinderRotationTr

vtkTransform* albaGizmoCrossTranslateAxis::m_LeftCylinderRotationTr
protected

rotation transform for cylinder and cone

Definition at line 193 of file albaGizmoCrossTranslateAxis.h.

◆ m_Append

vtkAppendPolyData* albaGizmoCrossTranslateAxis::m_Append
protected

append two cylinders

Definition at line 196 of file albaGizmoCrossTranslateAxis.h.

◆ m_IsaComp

albaInteractorCompositorMouse* albaGizmoCrossTranslateAxis::m_IsaComp
protected

isa compositor

Definition at line 208 of file albaGizmoCrossTranslateAxis.h.

◆ m_IsaGen

albaInteractorGenericMouse* albaGizmoCrossTranslateAxis::m_IsaGen
protected

isa generic

Definition at line 211 of file albaGizmoCrossTranslateAxis.h.

◆ m_Listener

albaObserver* albaGizmoCrossTranslateAxis::m_Listener
protected

Register the event receiver object.

Definition at line 215 of file albaGizmoCrossTranslateAxis.h.

Referenced by SetListener().


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