17#ifndef __albaGizmoScaleAxis_H__
18#define __albaGizmoScaleAxis_H__
36class vtkCylinderSource;
37class vtkTransformPolyDataFilter;
39class vtkAppendPolyData;
133 vtkTransformPolyDataFilter *m_TranslatePDF[2];
136 vtkTransform *m_TranslateTr[2];
158 void SetColor(
double colR,
double colG,
double colB);
173 friend class albaGizmoScaleAxisTest;
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 scaling along one axis.
vtkAppendPolyData * m_Append
cylinder and cube joined in a single figure
albaGizmoScaleAxis(albaVME *input, albaObserver *listener=NULL)
albaObserver * m_Listener
Register the event receiver object.
void SetColor(double colR, double colG, double colB)
void SetAxis(int axis)
Set/Get gizmo axis, default axis is X.
vtkTransform * m_RotationTr
rotation transform for cylinder and cube
void CreatePipeline()
Create vtk objects needed.
void CreateBehavior()
Create the behavior moving the gizmo.
void SetCubeLength(double length)
Set/Get the length of the cone.
void SetListener(albaObserver *Listener)
Set the event receiver object.
void SetInput(albaVME *vme)
Set the gizmo generating vme; the gizmo will be centered on this vme.
void SetAbsPose(albaMatrix *absPose)
Set the abs pose.
albaVMEGizmo * m_Gizmo
Gizmo vme showing the cylinder and the cube as a single figure.
bool m_Highlight
Register the highlight status.
virtual void OnEvent(albaEventBase *alba_event)
Events handling.
void Show(bool show)
Show the gizmo.
albaMatrix * GetAbsPose()
Get the gizmo abs pose.
double GetCubeLength() const
void SetRefSysMatrix(albaMatrix *constrain)
Set the constrain ref sys.
double GetCylinderLength() const
void Highlight(bool highlight)
Highlight the gizmo.
vtkCubeSource * m_Cube
Cube source.
albaVME * m_InputVme
Register input vme.
void SetColor(double col[3])
Gizmo color setting facilities.
bool m_Show
register the show status
int m_Axis
Register the gizmo axis.
vtkCylinderSource * m_Cylinder
Cylinder source.
vtkTransformPolyDataFilter * m_RotatePDF
rotate PDF for the figure
void SetCylinderLength(double length)
Set/Get the length of the cylinder.
albaBehaviorTransform * m_Behavior
the behavior moving the gizmo
virtual ~albaGizmoScaleAxis()
albaMatrix - Time stamped 4x4 Matrix.
Interface implementing the Observer of the Subject/Observer design pattern.