17#ifndef __albaGRotateCircle_H__
18#define __albaGRotateCircle_H__
37class vtkCleanPolyData;
39class vtkTransformPolyDataFilter;
183 void SetColor(
double colR,
double colG,
double colB);
Hold a reference to a T instance.
Implementation of the message object for the Subject/Observer design pattern.
Base class for operations and views gizmos.
Basic gizmo component used to perform constrained rotation around an axis.
albaVMEGizmo * m_GizmoCircle
Circle gizmo.
void CreateISA()
Create isa stuff.
void SetColor(double col[3])
Gizmo color setting facilities for gizmo segments;.
void SetAxis(int axis)
Set/Get gizmo axis, default axis is X.
void Show(bool show)
Show gizmo.
double m_Radius
Register gizmo radius.
virtual ~albaGizmoRotateCircle()
void SetInput(albaVME *vme)
Set the gizmo generating vme; the gizmo will be centered on this vme.
vtkDiskSource * m_Circle
Create the circle polydata.
void SetIsActive(bool highlight)
Set/Get the activation status of the gizmo, When the gizmo is active it is sending pose matrices to t...
vtkTransformPolyDataFilter * m_RotatePDF
rotate PDF for gizmo
albaVME * m_InputVme
Register input vme.
void SetListener(albaObserver *Listener)
Set the event receiver object.
albaInteractorGenericInterface * GetInteractor()
Get the gizmo interactor.
void SetRadius(double radius)
Set/Get the radius of the gizmo.
albaInteractorCompositorMouse * m_IsaComp
isa compositor
friend class albaGizmoRotateCircleTest
friend test
void SetAbsPose(albaMatrix *absPose)
Set the abs pose.
vtkTransform * m_RotationTr
rotation transform
vtkTubeFilter * m_CircleTF
Tube filter for circle.
albaGizmoRotateCircle(albaVME *input, albaObserver *listener=NULL, albaString name="Circle")
void SetColor(double colR, double colG, double colB)
void CreatePipeline()
Create vtk objects needed.
albaAutoPointer< albaMatrix > m_AbsInputMatrix
albaObserver * m_Listener
Register the event receiver object.
int GetAxis()
Get egizmo axis.
virtual void OnEvent(albaEventBase *alba_event)
Events handling.
void Highlight(bool highlight)
Highlight gizmo.
bool m_IsActive
Register Gizmo status.
vtkCleanPolyData * m_CleanCircle
Clean the circle polydata.
int m_ActiveAxis
Register the gizmo axis.
void SetRefSysMatrix(albaMatrix *matrix)
Set the reference system matrix and the Pivot ref sys matrix.
albaMatrix * GetAbsPose()
Get the gizmo abs pose.
albaInteractorGenericMouse * m_IsaGen
isa generic
void SetMediator(albaObserver *mediator)
Superclass override.
Associates instances of albaInteractorGenericMouse to mouse buttons and ctrl/shift keys combinations.
Abstract class for general purpose interactor.
Constrained interaction with mouse device.
albaMatrix - Time stamped 4x4 Matrix.
Interface implementing the Observer of the Subject/Observer design pattern.
albaString - performs common string operations on c-strings.