17#ifndef __albaGizmoTranslatePlane_H__
18#define __albaGizmoTranslatePlane_H__
36class vtkTransformPolyDataFilter;
127 albaVMEGizmo *m_Gizmo[3];
162 vtkLineSource *m_Line[2];
165 vtkTubeFilter *m_LineTF[2];
174 vtkTransformPolyDataFilter *m_RotatePDF[3];
196 void SetColor(
int part,
double colR,
double colG,
double colB);
207 friend class albaGizmoTranslatePlaneTest;
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 translation on a plane.
vtkTransform * m_PivotTransform
Used by albaInteractorGenericMouse.
void CreatePipeline()
Create vtk objects needed.
void SetPlane(int axis)
Set/Get gizmo plane, default plane is YZ.
void ShowSquare(bool show)
Hide/show the square.
void SetIsActive(bool highlight)
Set/Get the activation status of the gizmo, When the gizmo is active it is sending pose matrices to t...
void CreateISA()
Create isa stuff.
void SetSizeLength(double length)
Set/Get the side length of the gizmo.
albaGizmoTranslatePlane(albaVME *input, albaObserver *listener=NULL)
void SetAbsPose(albaMatrix *absPose)
Set the abs pose.
void Show(bool show)
Show gizmo.
albaVME * m_InputVme
Register input vme.
void SetStep(int axis, double step)
Set the step value for snap step constraint type for the given axis.
bool m_IsActive
Register Gizmo status.
void Highlight(bool highlight)
Highlight gizmo.
void SetListener(albaObserver *Listener)
Set the event receiver object.
void SetColor(int part, double colR, double colG, double colB)
void SetConstraintModality(int axis, int constrainModality)
Set the constraint modality for the given axis; allowed constraint modality are: LOCK,...
virtual ~albaGizmoTranslatePlane()
void SetInput(albaVME *vme)
Set the gizmo generating vme; the gizmo will be centered on this vme.
vtkTransform * m_RotationTr
rotation transform for cylinder and cone
int m_ActivePlane
Register the gizmo plane.
int GetPlane()
Get gizmo Plane.
vtkPlaneSource * m_Plane
Plane source.
albaMatrix * GetAbsPose()
Get the gizmo abs pose.
void SetConstrainRefSys(albaMatrix *constrain)
Set the constrain ref sys.
void SetColor(int part, double col[3])
Gizmo color setting facilities for gizmo segments;.
double m_Length
Register the gizmo square plane side length.
virtual void OnEvent(albaEventBase *alba_event)
Events handling.
albaObserver * m_Listener
Register the event receiver object.
Associates instances of albaInteractorGenericMouse to mouse buttons and ctrl/shift keys combinations.
Constrained interaction with mouse device.
albaMatrix - Time stamped 4x4 Matrix.
Interface implementing the Observer of the Subject/Observer design pattern.