10 class vtkTransformPolyDataFilter;
41 Frame(vtkSmartPointer<vtkTransform> transform = NULL,
Frame *parentFrame = NULL);
50 virtual const QString & getFrameName()
const;
54 virtual void setFrameName(QString name);
70 virtual void setParentFrame(
InterfaceFrame * parent,
bool keepTransform =
true);
76 virtual const QVector<InterfaceFrame *> & getChildrenFrame()
const;
83 virtual const vtkSmartPointer<vtkTransform> getTransformFromWorld()
const;
87 virtual const vtkSmartPointer<vtkTransform> getTransform()
const;
90 virtual const vtkSmartPointer<vtkTransform> getTransformFromFrame(
InterfaceFrame * frame)
const;
96 virtual void setTransform(vtkSmartPointer<vtkTransform> transform);
102 virtual void resetTransform();
107 virtual void translate(
double x,
double y,
double z);
114 virtual void rotate(
double aroundX,
double aroundY,
double aroundZ);
120 virtual void rotateVTK(
double aroundX,
double aroundY,
double aroundZ);
127 virtual void setTransformTranslation(
double x,
double y,
double z);
135 virtual void setTransformTranslationVTK(
double x,
double y,
double z);
142 virtual void setTransformRotation(
double aroundX,
double aroundY,
double aroundZ);
150 virtual void setTransformRotationVTK(
double aroundX,
double aroundY,
double aroundZ);
157 virtual vtkSmartPointer<vtkAxesActor> getFrameAxisActor();
162 virtual void setFrameVisibility(
Viewer * viewer,
bool visible);
167 virtual bool getFrameVisibility(
Viewer * viewer)
const;
177 void initAttributes();
232 vtkSmartPointer<vtkAxesActor>
axes;
QVector< InterfaceFrame * > childrenFrame
List of children Frames to keep track of Frame hierarchy.
Definition: Frame.h:216
vtkSmartPointer< vtkTransformPolyDataFilter > representationTransformFilter
Transform Filter to store the transformation for the Frame's 3D representation.
Definition: Frame.h:211
static int nbTotalFrames
To be able to give a default unique identifier to each created frame.
Definition: Frame.h:229
Viewer is an abstract viewer.
Definition: Viewer.h:55
vtkSmartPointer< vtkTransform > transformWorldToMe
Transformation to represent my points (expressed in my frame) in the world's frame.
Definition: Frame.h:206
Definition: Action.cpp:40
This class describes what are the methods to implement in order to manage a Component position in spa...
Definition: InterfaceFrame.h:64
#define CAMITK_API
Definition: CamiTKAPI.h:49
QMap< Viewer *, bool > frameViewers
List of Viewers in which the frame is visible.
Definition: Frame.h:235
vtkSmartPointer< vtkTransform > transformParentToMe
Transformation to represent my points (expressed in my frame) in my parent's frame.
Definition: Frame.h:197
vtkSmartPointer< vtkAxesActor > axes
Geometric representation of the frame (vtkAxes)
Definition: Frame.h:232
InterfaceFrame * parentFrame
The Parent Frame.
Definition: Frame.h:191
Represents a hierarchy of frames.
Definition: Frame.h:30
QString frameName
Frame unique identifier.
Definition: Frame.h:185