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;
84 virtual const vtkSmartPointer<vtkTransform> getTransformFromWorld()
const;
88 virtual const vtkSmartPointer<vtkTransform> getTransform()
const;
91 virtual const vtkSmartPointer<vtkTransform> getTransformFromFrame(
InterfaceFrame * frame)
const;
97 virtual void setTransform(vtkSmartPointer<vtkTransform> transform);
103 virtual void resetTransform();
109 virtual void translate(
double x,
double y,
double z);
114 virtual void rotate(
double aroundX,
double aroundY,
double aroundZ);
121 virtual void setTransformTranslation(
double x,
double y,
double z);
128 virtual void setTransformRotation(
double aroundX,
double aroundY,
double aroundZ);
135 virtual vtkSmartPointer<vtkAxesActor> getFrameAxisActor();
140 virtual void setFrameVisibility(
Viewer * viewer,
bool visible);
145 virtual bool getFrameVisibility(
Viewer * viewer)
const;
157 void initAttributes();
212 vtkSmartPointer<vtkAxesActor>
axes;
QVector< InterfaceFrame * > childrenFrame
List of children Frames to keep track of Frame hierarchy.
Definition: Frame.h:196
vtkSmartPointer< vtkTransformPolyDataFilter > representationTransformFilter
Transform Filter to store the transformation for the Frame's 3D representation.
Definition: Frame.h:191
static int nbTotalFrames
To be able to give a default unique identifier to each created frame.
Definition: Frame.h:209
Viewer is an abstract viewer.
Definition: Viewer.h:55
string name
Definition: select.cpp:111
vtkSmartPointer< vtkTransform > transformWorldToMe
Transformation to represent my points (expressed in my frame) in the world's frame.
Definition: Frame.h:186
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:215
vtkSmartPointer< vtkTransform > transformParentToMe
Transformation to represent my points (expressed in my frame) in my parent's frame.
Definition: Frame.h:177
vtkSmartPointer< vtkAxesActor > axes
Geometric representation of the frame (vtkAxes)
Definition: Frame.h:212
InterfaceFrame * parentFrame
The Parent Frame.
Definition: Frame.h:171
Represents a hierarchy of frames.
Definition: Frame.h:30
QString frameName
Frame unique identifier.
Definition: Frame.h:165