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

#include <albaGizmoRotateCircle.h>

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

 albaGizmoRotateCircle (albaVME *input, albaObserver *listener=NULL, albaString name="Circle")
 
virtual ~albaGizmoRotateCircle ()
 
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 SetRadius (double radius)
 
double GetRadius ()
 
void SetIsActive (bool highlight)
 
bool GetIsActive ()
 
void SetAbsPose (albaMatrix *absPose)
 
albaMatrixGetAbsPose ()
 
albaInteractorGenericInterfaceGetInteractor ()
 
void SetMediator (albaObserver *mediator)
 
- 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 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

albaAutoPointer< albaMatrixm_AbsInputMatrix
 
albaVMEGizmo * m_GizmoCircle
 
albaVMEm_InputVme
 
int m_ActiveAxis
 
vtkDiskSource * m_Circle
 
vtkCleanPolyData * m_CleanCircle
 
vtkTubeFilter * m_CircleTF
 
vtkTransformPolyDataFilter * m_RotatePDF
 
vtkTransform * m_RotationTr
 
albaInteractorCompositorMousem_IsaComp
 
albaInteractorGenericMousem_IsaGen
 
albaObserverm_Listener
 
bool m_IsActive
 
double m_Radius
 
- 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 albaGizmoRotateCircleTest
 

Detailed Description

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

See also
albaGizmoRotate

Definition at line 49 of file albaGizmoRotateCircle.h.

Member Enumeration Documentation

◆ AXIS

axis enum

Enumerator

Definition at line 75 of file albaGizmoRotateCircle.h.

◆ GIZMO_STATUS

z z y ^ ^ ^

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

YZ XZ XY

Enumerator
SELECTED 
NOT_SELECTED 

Definition at line 149 of file albaGizmoRotateCircle.h.

Constructor & Destructor Documentation

◆ albaGizmoRotateCircle()

albaGizmoRotateCircle::albaGizmoRotateCircle ( albaVME input,
albaObserver listener = NULL,
albaString  name = "Circle" 
)

◆ ~albaGizmoRotateCircle()

virtual albaGizmoRotateCircle::~albaGizmoRotateCircle ( )
virtual

Member Function Documentation

◆ SetInput()

void albaGizmoRotateCircle::SetInput ( albaVME vme)
virtual

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

Reimplemented from albaGizmoInterface.

◆ GetInput()

albaVME * albaGizmoRotateCircle::GetInput ( )

◆ SetListener()

void albaGizmoRotateCircle::SetListener ( albaObserver Listener)

Set the event receiver object.

◆ OnEvent()

virtual void albaGizmoRotateCircle::OnEvent ( albaEventBase alba_event)
virtual

Events handling.

Reimplemented from albaGizmoInterface.

◆ SetAxis()

void albaGizmoRotateCircle::SetAxis ( int  axis)

Set/Get gizmo axis, default axis is X.

◆ GetAxis()

int albaGizmoRotateCircle::GetAxis ( )

Get egizmo axis.

◆ Highlight()

void albaGizmoRotateCircle::Highlight ( bool  highlight)

Highlight gizmo.

◆ Show()

void albaGizmoRotateCircle::Show ( bool  show)
virtual

Show gizmo.

Reimplemented from albaGizmoInterface.

◆ SetRadius()

void albaGizmoRotateCircle::SetRadius ( double  radius)

Set/Get the radius of the gizmo.

◆ GetRadius()

double albaGizmoRotateCircle::GetRadius ( )

◆ SetIsActive()

void albaGizmoRotateCircle::SetIsActive ( bool  highlight)

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

◆ GetIsActive()

bool albaGizmoRotateCircle::GetIsActive ( )

◆ SetAbsPose()

void albaGizmoRotateCircle::SetAbsPose ( albaMatrix absPose)
virtual

Set the abs pose.

Reimplemented from albaGizmoInterface.

◆ GetAbsPose()

albaMatrix * albaGizmoRotateCircle::GetAbsPose ( )
virtual

Get the gizmo abs pose.

Reimplemented from albaGizmoInterface.

◆ GetInteractor()

albaInteractorGenericInterface * albaGizmoRotateCircle::GetInteractor ( )

Get the gizmo interactor.

◆ SetMediator()

void albaGizmoRotateCircle::SetMediator ( albaObserver mediator)

Superclass override.

◆ SetRefSysMatrix()

void albaGizmoRotateCircle::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 albaGizmoRotateCircle::CreatePipeline ( )
protected

Create vtk objects needed.

◆ CreateISA()

void albaGizmoRotateCircle::CreateISA ( )
protected

Create isa stuff.

◆ SetColor() [1/2]

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

Gizmo color setting facilities for gizmo segments;.

◆ SetColor() [2/2]

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

Friends And Related Function Documentation

◆ albaGizmoRotateCircleTest

friend class albaGizmoRotateCircleTest
friend

friend test

Definition at line 196 of file albaGizmoRotateCircle.h.

Member Data Documentation

◆ m_AbsInputMatrix

albaAutoPointer<albaMatrix> albaGizmoRotateCircle::m_AbsInputMatrix
protected

Definition at line 129 of file albaGizmoRotateCircle.h.

◆ m_GizmoCircle

albaVMEGizmo* albaGizmoRotateCircle::m_GizmoCircle
protected

Circle gizmo.

Definition at line 132 of file albaGizmoRotateCircle.h.

◆ m_InputVme

albaVME* albaGizmoRotateCircle::m_InputVme
protected

Register input vme.

Definition at line 135 of file albaGizmoRotateCircle.h.

◆ m_ActiveAxis

int albaGizmoRotateCircle::m_ActiveAxis
protected

Register the gizmo axis.

Definition at line 152 of file albaGizmoRotateCircle.h.

◆ m_Circle

vtkDiskSource* albaGizmoRotateCircle::m_Circle
protected

Create the circle polydata.

Definition at line 155 of file albaGizmoRotateCircle.h.

◆ m_CleanCircle

vtkCleanPolyData* albaGizmoRotateCircle::m_CleanCircle
protected

Clean the circle polydata.

Definition at line 158 of file albaGizmoRotateCircle.h.

◆ m_CircleTF

vtkTubeFilter* albaGizmoRotateCircle::m_CircleTF
protected

Tube filter for circle.

Definition at line 161 of file albaGizmoRotateCircle.h.

◆ m_RotatePDF

vtkTransformPolyDataFilter* albaGizmoRotateCircle::m_RotatePDF
protected

rotate PDF for gizmo

Definition at line 164 of file albaGizmoRotateCircle.h.

◆ m_RotationTr

vtkTransform* albaGizmoRotateCircle::m_RotationTr
protected

rotation transform

Definition at line 167 of file albaGizmoRotateCircle.h.

◆ m_IsaComp

albaInteractorCompositorMouse* albaGizmoRotateCircle::m_IsaComp
protected

isa compositor

Definition at line 176 of file albaGizmoRotateCircle.h.

◆ m_IsaGen

albaInteractorGenericMouse* albaGizmoRotateCircle::m_IsaGen
protected

isa generic

Definition at line 179 of file albaGizmoRotateCircle.h.

◆ m_Listener

albaObserver* albaGizmoRotateCircle::m_Listener
protected

Register the event receiver object.

Definition at line 187 of file albaGizmoRotateCircle.h.

◆ m_IsActive

bool albaGizmoRotateCircle::m_IsActive
protected

Register Gizmo status.

Definition at line 190 of file albaGizmoRotateCircle.h.

◆ m_Radius

double albaGizmoRotateCircle::m_Radius
protected

Register gizmo radius.

Definition at line 193 of file albaGizmoRotateCircle.h.


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