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)
 
albaVME * GetInput ()
 
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)
 
albaMatrix * GetAbsPose ()
 
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)
 
albaVME * GetInput ()
 
void SetMediator (albaObserver *mediator)
 
albaObserver * GetMediator ()
 
void SetAutoscale (bool autoscale)
 
bool GetAutoscale ()
 
void SetRenderWindowHeightPercentage (double percentage)
 
double GetRenderWindowHeightPercentage ()
 
void SetAlwaysVisible (bool alwaysVisible)
 
bool GetAlwaysVisible ()
 
void SetListener (albaObserver *listener)
 
albaObserver * GetListener ()
 
virtual void OnEvent (albaEventBase *alba_event)
 
virtual void Show (bool show)
 
void SetModalityToLocal ()
 
void SetModalityToGlobal ()
 
int GetModality ()
 
virtual void SetAbsPose (albaMatrix *absPose)
 
virtual albaMatrix * GetAbsPose ()
 
virtual albaGUI * GetGui ()
 
- 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 CreateBehavior ()
 
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_Gizmo
 
albaVME * m_InputVme
 
int m_Axis
 
vtkCubeSource * m_Cube
 
vtkCylinderSource * m_Cylinder
 
vtkTransformPolyDataFilter * m_TranslatePDF [2]
 
vtkTransform * m_TranslateTr [2]
 
vtkAppendPolyData * m_Append
 
vtkTransformPolyDataFilter * m_RotatePDF
 
vtkTransform * m_RotationTr
 
albaBehaviorTransform * m_Behavior
 
albaObserver * m_Listener
 
bool m_Highlight
 
bool m_Show
 
- Protected Attributes inherited from albaGizmoInterface
albaObserver * m_Mediator
 
albaString m_Name
 
albaVME * m_InputVME
 
int m_Modality
 
albaObserver * m_Listener
 
albaVME * m_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
X 
Y 
Z 

Definition at line 71 of file albaGizmoScaleAxis.h.

◆ GIZMOPARTS

Enumerator
CYLINDER 
CUBE 

Definition at line 121 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.

◆ CreateBehavior()

void albaGizmoScaleAxis::CreateBehavior ( )
protected

Create the behavior moving the gizmo.

◆ SetColor() [1/2]

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

Gizmo color setting facilities.

◆ SetColor() [2/2]

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

Friends And Related Function Documentation

◆ albaGizmoScaleAxisTest

friend class albaGizmoScaleAxisTest
friend

Test friend.

Definition at line 173 of file albaGizmoScaleAxis.h.

Member Data Documentation

◆ m_Gizmo

albaVMEGizmo* albaGizmoScaleAxis::m_Gizmo
protected

Gizmo vme showing the cylinder and the cube as a single figure.

Definition at line 116 of file albaGizmoScaleAxis.h.

◆ m_InputVme

albaVME* albaGizmoScaleAxis::m_InputVme
protected

Register input vme.

Definition at line 119 of file albaGizmoScaleAxis.h.

◆ m_Axis

int albaGizmoScaleAxis::m_Axis
protected

Register the gizmo axis.

Definition at line 124 of file albaGizmoScaleAxis.h.

◆ m_Cube

vtkCubeSource* albaGizmoScaleAxis::m_Cube
protected

Cube source.

Definition at line 127 of file albaGizmoScaleAxis.h.

◆ m_Cylinder

vtkCylinderSource* albaGizmoScaleAxis::m_Cylinder
protected

Cylinder source.

Definition at line 130 of file albaGizmoScaleAxis.h.

◆ m_TranslatePDF

vtkTransformPolyDataFilter* albaGizmoScaleAxis::m_TranslatePDF[2]
protected

translate PDF for cylinder and cube

Definition at line 133 of file albaGizmoScaleAxis.h.

◆ m_TranslateTr

vtkTransform* albaGizmoScaleAxis::m_TranslateTr[2]
protected

translation transform for cylinder and cube

Definition at line 136 of file albaGizmoScaleAxis.h.

◆ m_Append

vtkAppendPolyData* albaGizmoScaleAxis::m_Append
protected

cylinder and cube joined in a single figure

Definition at line 139 of file albaGizmoScaleAxis.h.

◆ m_RotatePDF

vtkTransformPolyDataFilter* albaGizmoScaleAxis::m_RotatePDF
protected

rotate PDF for the figure

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_Behavior

albaBehaviorTransform* albaGizmoScaleAxis::m_Behavior
protected

the behavior moving the gizmo

Definition at line 154 of file albaGizmoScaleAxis.h.

◆ m_Listener

albaObserver* albaGizmoScaleAxis::m_Listener
protected

Register the event receiver object.

Definition at line 162 of file albaGizmoScaleAxis.h.

◆ m_Highlight

bool albaGizmoScaleAxis::m_Highlight
protected

Register the highlight status.

Definition at line 166 of file albaGizmoScaleAxis.h.

◆ m_Show

bool albaGizmoScaleAxis::m_Show
protected

register the show status

Definition at line 170 of file albaGizmoScaleAxis.h.


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