17#ifndef __albaGizmoTranslateAxis_H__
18#define __albaGizmoTranslateAxis_H__
35class vtkCylinderSource;
36class vtkTransformPolyDataFilter;
149 vtkTransformPolyDataFilter *m_TranslatePDF[2];
152 vtkTransform *m_TranslateTr[2];
155 vtkTransformPolyDataFilter *m_RotatePDF[2];
174 void SetColor(
int part,
double colR,
double colG,
double colB);
175 void SetColor(
double cylCol[3],
double coneCol[3]);
176 void SetColor(
double cylR,
double cylG,
double cylB,
double coneR,
double coneG,
double coneB);
183 friend class albaGizmoTranslateAxisTest;
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 one axis.
albaVMEGizmo * m_ConeGizmo
Cone gizmo.
void SetColor(int part, double col[3])
Gizmo color setting facilities; part can be CYLINDER or CONE.
void SetListener(albaObserver *Listener)
Set the event receiver object.
void SetCylinderLength(double length)
Set/Get the length of the cylinder.
void CreateISA()
Create isa stuff.
void SetRefSysMatrix(albaMatrix *constrain)
Set the constrain ref sys.
void SetAbsPose(albaMatrix *absPose)
Set the abs pose.
double m_ConeLength
Cone length.
virtual ~albaGizmoTranslateAxis()
albaVMEGizmo * m_CylGizmo
cylinder gizmo
void SetStep(int axis, double step)
Set the step value for snap step constraint type for the given axis.
void SetColor(double cylR, double cylG, double cylB, double coneR, double coneG, double coneB)
void SetConeLength(double length)
Set/Get the length of the cone.
void SetInput(albaVME *vme)
Set the gizmo generating vme; the gizmo will be centered on this vme.
void SetConstraintModality(int axis, int constrainModality)
Set the constraint modality for the given axis; allowed constraint modality are: LOCK,...
virtual void OnEvent(albaEventBase *alba_event)
Events handling.
void Show(bool show)
Show the gizmo.
void SetColor(double cylCol[3], double coneCol[3])
vtkConeSource * m_Cone
Cone source.
vtkCylinderSource * m_Cylinder
Cylinder source.
double GetCylinderLength()
albaGizmoTranslateAxis(albaVME *input, albaObserver *listener=NULL, albaString name="")
void SetColor(int part, double colR, double colG, double colB)
albaMatrix * GetAbsPose()
Get the gizmo abs pose.
void Highlight(bool highlight)
Highlight the gizmo.
int m_Axis
Register the gizmo axis.
albaVME * m_InputVme
Register input vme.
albaObserver * m_Listener
Register the event receiver object.
void CreatePipeline()
Create vtk objects needed.
void SetAxis(int axis)
Set/Get gizmo axis, default axis is X.
double m_CylinderLength
Cylinder length.
vtkTransform * m_RotationTr
rotation transform for cylinder and cone
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.
albaString - performs common string operations on c-strings.