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

#include <albaGizmoCrossRotateAxis.h>

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

Public Types

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

Public Member Functions

 albaGizmoCrossRotateAxis (albaVME *input, albaObserver *listener=NULL)
 
virtual ~albaGizmoCrossRotateAxis ()
 
void SetInput (albaVME *vme)
 
albaVMEGetInput ()
 
void SetListener (albaObserver *Listener)
 
virtual void OnEvent (albaEventBase *alba_event)
 
void SetRotationAxis (int axis)
 
int GetAxis ()
 
void SetGizmoDirection (int direction)
 
int GetGizmoDirection ()
 
void Highlight (bool highlight)
 
void Show (bool show)
 
void ShowTranslationFeedbackArrows (bool show)
 
double GetRadius ()
 
void SetIsActive (bool isActive)
 
bool GetIsActive ()
 
void SetAbsPose (albaMatrix *absPose)
 
albaMatrixGetAbsPose ()
 
albaInteractorGenericInterfaceGetInteractor ()
 
void SetColor (double col[3])
 
void SetColor (double colR, double colG, double colB)
 
- 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  GIZMO_STATUS { SELECTED = 0 , NOT_SELECTED }
 

Protected Member Functions

void SetRefSysMatrix (albaMatrix *matrix)
 
void CreatePipeline ()
 
void CreateFeedbackGizmoPipeline ()
 
void CreateISA ()
 
- 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

double m_Color [3]
 
double m_LastColor [3]
 
albaAutoPointer< albaMatrixm_AbsInputMatrix
 
albaVMEGizmo * m_GizmoCross
 
albaVMEm_InputVme
 
int m_GizmoDirection
 
int m_RotationAxis
 
vtkLineSource * m_LineSourceEast
 
vtkLineSource * m_LineSourceWest
 
vtkLineSource * m_LineSourceNorth
 
vtkLineSource * m_LineSourceSouth
 
vtkCleanPolyData * m_LinesCleanCircle
 
vtkTubeFilter * m_LinesTubeFilter
 
vtkAppendPolyData * m_LinesAppendPolyData
 
vtkTransformPolyDataFilter * m_LinesRotatePDF
 
vtkTransform * m_LinesRotationTransform
 
albaInteractorCompositorMousem_IsaComp
 
albaInteractorGenericMousem_IsaGen
 
albaObserverm_Listener
 
bool m_IsActive
 
double m_Radius
 
vtkConeSource * m_FeedbackConeSource
 
vtkTransform * m_LeftUpFeedbackConeTransform
 
vtkTransform * m_LeftDownFeedbackConeTransform
 
vtkTransform * m_RightDownFeedbackConeTransform
 
vtkTransform * m_RightUpFeedbackConeTransform
 
vtkTransformPolyDataFilter * m_LeftUpFeedbackConeTransformPDF
 
vtkTransformPolyDataFilter * m_LeftDownFeedbackConeTransformPDF
 
vtkTransformPolyDataFilter * m_RightUpFeedbackConeTransformPDF
 
vtkTransformPolyDataFilter * m_RightDownFeedbackConeTransformPDF
 
vtkDiskSource * m_FGCircle
 
vtkCleanPolyData * m_FGCleanCircle
 
vtkTubeFilter * m_FGCircleTubeFilter
 
vtkTransform * m_FGRotationTransform
 
vtkTransformPolyDataFilter * m_FGRotatePDF
 
vtkTubeFilter * m_FGCircleTF
 
vtkTransform * m_FGRotationTr
 
vtkAppendPolyData * m_FeedbackStuffAppendPolydata
 
albaVMEGizmo * m_RotationFeedbackGizmo
 
- 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
 

Detailed Description

Basic gizmo component used to perform constrained rotation around an axis.

Definition at line 63 of file albaGizmoCrossRotateAxis.h.

Member Enumeration Documentation

◆ AXIS

axis enum

Enumerator

Definition at line 89 of file albaGizmoCrossRotateAxis.h.

◆ GIZMO_DIRECTION

Enumerator
EW 
NS 

Definition at line 97 of file albaGizmoCrossRotateAxis.h.

◆ GIZMO_STATUS

z z y ^ ^ ^

----—> y ----—>x ----—> x

YZ XZ XY

Enumerator
SELECTED 
NOT_SELECTED 

Definition at line 186 of file albaGizmoCrossRotateAxis.h.

Constructor & Destructor Documentation

◆ albaGizmoCrossRotateAxis()

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

◆ ~albaGizmoCrossRotateAxis()

virtual albaGizmoCrossRotateAxis::~albaGizmoCrossRotateAxis ( )
virtual

Member Function Documentation

◆ SetInput()

void albaGizmoCrossRotateAxis::SetInput ( albaVME vme)
virtual

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

Reimplemented from albaGizmoInterface.

◆ GetInput()

albaVME * albaGizmoCrossRotateAxis::GetInput ( )

◆ SetListener()

void albaGizmoCrossRotateAxis::SetListener ( albaObserver Listener)

Set the event receiver object.

◆ OnEvent()

virtual void albaGizmoCrossRotateAxis::OnEvent ( albaEventBase alba_event)
virtual

Events handling.

Reimplemented from albaGizmoInterface.

◆ SetRotationAxis()

void albaGizmoCrossRotateAxis::SetRotationAxis ( int  axis)

Set/Get the gizmo axis, default axis is X.

◆ GetAxis()

int albaGizmoCrossRotateAxis::GetAxis ( )

Get the gizmo axis.

◆ SetGizmoDirection()

void albaGizmoCrossRotateAxis::SetGizmoDirection ( int  direction)

Set the gizmo visual representation: NS vs EW.

N | x E—x—W | S

x is the normal axis ie the gizmo is constraining rotation around it. Default is NS

◆ GetGizmoDirection()

int albaGizmoCrossRotateAxis::GetGizmoDirection ( )
inline

Definition at line 112 of file albaGizmoCrossRotateAxis.h.

References m_GizmoDirection.

◆ Highlight()

void albaGizmoCrossRotateAxis::Highlight ( bool  highlight)

Highlight gizmo.

◆ Show()

void albaGizmoCrossRotateAxis::Show ( bool  show)
virtual

Show the translation gizmo.

Reimplemented from albaGizmoInterface.

◆ ShowTranslationFeedbackArrows()

void albaGizmoCrossRotateAxis::ShowTranslationFeedbackArrows ( bool  show)

Show the translation feedback arrows

◆ GetRadius()

double albaGizmoCrossRotateAxis::GetRadius ( )

Get the radius of the gizmo.

◆ SetIsActive()

void albaGizmoCrossRotateAxis::SetIsActive ( bool  isActive)

Set/Get the activation status of the gizmo, When the gizmo is active it is sending pose matrices to the listener.

◆ GetIsActive()

bool albaGizmoCrossRotateAxis::GetIsActive ( )

◆ SetAbsPose()

void albaGizmoCrossRotateAxis::SetAbsPose ( albaMatrix absPose)
virtual

Set the abs pose.

Reimplemented from albaGizmoInterface.

◆ GetAbsPose()

albaMatrix * albaGizmoCrossRotateAxis::GetAbsPose ( )
virtual

Get the gizmo abs pose.

Reimplemented from albaGizmoInterface.

◆ GetInteractor()

albaInteractorGenericInterface * albaGizmoCrossRotateAxis::GetInteractor ( )

Get the gizmo interactor.

◆ SetColor() [1/2]

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

Gizmo color setting facilities for gizmo segments;.

◆ SetColor() [2/2]

void albaGizmoCrossRotateAxis::SetColor ( double  colR,
double  colG,
double  colB 
)

◆ SetRefSysMatrix()

void albaGizmoCrossRotateAxis::SetRefSysMatrix ( albaMatrix matrix)
protected

Set the reference system matrix and the Pivot ref sys matrix.

Both reference system type are set to CUSTOM.

◆ CreatePipeline()

void albaGizmoCrossRotateAxis::CreatePipeline ( )
protected

Create moving gizmo vtk objects.

◆ CreateFeedbackGizmoPipeline()

void albaGizmoCrossRotateAxis::CreateFeedbackGizmoPipeline ( )
protected

Create motion feedback gizmo vtk objects.

◆ CreateISA()

void albaGizmoCrossRotateAxis::CreateISA ( )
protected

Create isa stuff.

Member Data Documentation

◆ m_Color

double albaGizmoCrossRotateAxis::m_Color[3]
protected

Definition at line 158 of file albaGizmoCrossRotateAxis.h.

◆ m_LastColor

double albaGizmoCrossRotateAxis::m_LastColor[3]
protected

Definition at line 159 of file albaGizmoCrossRotateAxis.h.

◆ m_AbsInputMatrix

albaAutoPointer<albaMatrix> albaGizmoCrossRotateAxis::m_AbsInputMatrix
protected

Definition at line 166 of file albaGizmoCrossRotateAxis.h.

◆ m_GizmoCross

albaVMEGizmo* albaGizmoCrossRotateAxis::m_GizmoCross
protected

Circle gizmo.

Definition at line 169 of file albaGizmoCrossRotateAxis.h.

◆ m_InputVme

albaVME* albaGizmoCrossRotateAxis::m_InputVme
protected

Register input vme.

Definition at line 172 of file albaGizmoCrossRotateAxis.h.

◆ m_GizmoDirection

int albaGizmoCrossRotateAxis::m_GizmoDirection
protected

Definition at line 189 of file albaGizmoCrossRotateAxis.h.

Referenced by GetGizmoDirection().

◆ m_RotationAxis

int albaGizmoCrossRotateAxis::m_RotationAxis
protected

Register the gizmo axis.

Definition at line 192 of file albaGizmoCrossRotateAxis.h.

◆ m_LineSourceEast

vtkLineSource* albaGizmoCrossRotateAxis::m_LineSourceEast
protected

Create the circle polydata.

Definition at line 195 of file albaGizmoCrossRotateAxis.h.

◆ m_LineSourceWest

vtkLineSource* albaGizmoCrossRotateAxis::m_LineSourceWest
protected

Definition at line 196 of file albaGizmoCrossRotateAxis.h.

◆ m_LineSourceNorth

vtkLineSource* albaGizmoCrossRotateAxis::m_LineSourceNorth
protected

Definition at line 197 of file albaGizmoCrossRotateAxis.h.

◆ m_LineSourceSouth

vtkLineSource* albaGizmoCrossRotateAxis::m_LineSourceSouth
protected

Definition at line 198 of file albaGizmoCrossRotateAxis.h.

◆ m_LinesCleanCircle

vtkCleanPolyData* albaGizmoCrossRotateAxis::m_LinesCleanCircle
protected

Definition at line 200 of file albaGizmoCrossRotateAxis.h.

◆ m_LinesTubeFilter

vtkTubeFilter* albaGizmoCrossRotateAxis::m_LinesTubeFilter
protected

Definition at line 202 of file albaGizmoCrossRotateAxis.h.

◆ m_LinesAppendPolyData

vtkAppendPolyData* albaGizmoCrossRotateAxis::m_LinesAppendPolyData
protected

Definition at line 203 of file albaGizmoCrossRotateAxis.h.

◆ m_LinesRotatePDF

vtkTransformPolyDataFilter* albaGizmoCrossRotateAxis::m_LinesRotatePDF
protected

rotate PDF for gizmo

Definition at line 206 of file albaGizmoCrossRotateAxis.h.

◆ m_LinesRotationTransform

vtkTransform* albaGizmoCrossRotateAxis::m_LinesRotationTransform
protected

rotation transform

Definition at line 209 of file albaGizmoCrossRotateAxis.h.

◆ m_IsaComp

albaInteractorCompositorMouse* albaGizmoCrossRotateAxis::m_IsaComp
protected

isa compositor

Definition at line 221 of file albaGizmoCrossRotateAxis.h.

◆ m_IsaGen

albaInteractorGenericMouse* albaGizmoCrossRotateAxis::m_IsaGen
protected

isa generic

Definition at line 224 of file albaGizmoCrossRotateAxis.h.

◆ m_Listener

albaObserver* albaGizmoCrossRotateAxis::m_Listener
protected

Register the event receiver object.

Definition at line 228 of file albaGizmoCrossRotateAxis.h.

◆ m_IsActive

bool albaGizmoCrossRotateAxis::m_IsActive
protected

Register Gizmo status.

Definition at line 231 of file albaGizmoCrossRotateAxis.h.

◆ m_Radius

double albaGizmoCrossRotateAxis::m_Radius
protected

Register gizmo radius.

Definition at line 234 of file albaGizmoCrossRotateAxis.h.

◆ m_FeedbackConeSource

vtkConeSource* albaGizmoCrossRotateAxis::m_FeedbackConeSource
protected

Definition at line 236 of file albaGizmoCrossRotateAxis.h.

◆ m_LeftUpFeedbackConeTransform

vtkTransform* albaGizmoCrossRotateAxis::m_LeftUpFeedbackConeTransform
protected

Definition at line 238 of file albaGizmoCrossRotateAxis.h.

◆ m_LeftDownFeedbackConeTransform

vtkTransform* albaGizmoCrossRotateAxis::m_LeftDownFeedbackConeTransform
protected

Definition at line 239 of file albaGizmoCrossRotateAxis.h.

◆ m_RightDownFeedbackConeTransform

vtkTransform* albaGizmoCrossRotateAxis::m_RightDownFeedbackConeTransform
protected

Definition at line 240 of file albaGizmoCrossRotateAxis.h.

◆ m_RightUpFeedbackConeTransform

vtkTransform* albaGizmoCrossRotateAxis::m_RightUpFeedbackConeTransform
protected

Definition at line 241 of file albaGizmoCrossRotateAxis.h.

◆ m_LeftUpFeedbackConeTransformPDF

vtkTransformPolyDataFilter* albaGizmoCrossRotateAxis::m_LeftUpFeedbackConeTransformPDF
protected

Definition at line 243 of file albaGizmoCrossRotateAxis.h.

◆ m_LeftDownFeedbackConeTransformPDF

vtkTransformPolyDataFilter* albaGizmoCrossRotateAxis::m_LeftDownFeedbackConeTransformPDF
protected

Definition at line 244 of file albaGizmoCrossRotateAxis.h.

◆ m_RightUpFeedbackConeTransformPDF

vtkTransformPolyDataFilter* albaGizmoCrossRotateAxis::m_RightUpFeedbackConeTransformPDF
protected

Definition at line 245 of file albaGizmoCrossRotateAxis.h.

◆ m_RightDownFeedbackConeTransformPDF

vtkTransformPolyDataFilter* albaGizmoCrossRotateAxis::m_RightDownFeedbackConeTransformPDF
protected

Definition at line 246 of file albaGizmoCrossRotateAxis.h.

◆ m_FGCircle

vtkDiskSource* albaGizmoCrossRotateAxis::m_FGCircle
protected

Definition at line 248 of file albaGizmoCrossRotateAxis.h.

◆ m_FGCleanCircle

vtkCleanPolyData* albaGizmoCrossRotateAxis::m_FGCleanCircle
protected

Definition at line 249 of file albaGizmoCrossRotateAxis.h.

◆ m_FGCircleTubeFilter

vtkTubeFilter* albaGizmoCrossRotateAxis::m_FGCircleTubeFilter
protected

Definition at line 250 of file albaGizmoCrossRotateAxis.h.

◆ m_FGRotationTransform

vtkTransform* albaGizmoCrossRotateAxis::m_FGRotationTransform
protected

Definition at line 251 of file albaGizmoCrossRotateAxis.h.

◆ m_FGRotatePDF

vtkTransformPolyDataFilter* albaGizmoCrossRotateAxis::m_FGRotatePDF
protected

Definition at line 252 of file albaGizmoCrossRotateAxis.h.

◆ m_FGCircleTF

vtkTubeFilter* albaGizmoCrossRotateAxis::m_FGCircleTF
protected

Definition at line 253 of file albaGizmoCrossRotateAxis.h.

◆ m_FGRotationTr

vtkTransform* albaGizmoCrossRotateAxis::m_FGRotationTr
protected

Definition at line 254 of file albaGizmoCrossRotateAxis.h.

◆ m_FeedbackStuffAppendPolydata

vtkAppendPolyData* albaGizmoCrossRotateAxis::m_FeedbackStuffAppendPolydata
protected

Definition at line 256 of file albaGizmoCrossRotateAxis.h.

◆ m_RotationFeedbackGizmo

albaVMEGizmo* albaGizmoCrossRotateAxis::m_RotationFeedbackGizmo
protected

Definition at line 257 of file albaGizmoCrossRotateAxis.h.


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