10 class vtkTransformPolyDataFilter;
41 Frame(vtkSmartPointer<vtkTransform> transform =
nullptr,
Frame* parentFrame =
nullptr);
50 const QString& getFrameName()
const override;
54 void setFrameName(QString name)
override;
70 void setParentFrame(
InterfaceFrame* parent,
bool keepTransform =
true)
override;
76 const QVector<InterfaceFrame*>& getChildrenFrame()
const override;
83 const vtkSmartPointer<vtkTransform> getTransformFromWorld()
const override;
87 const vtkSmartPointer<vtkTransform> getTransform()
const override;
90 const vtkSmartPointer<vtkTransform> getTransformFromFrame(
InterfaceFrame* frame)
const override;
96 void setTransform(vtkSmartPointer<vtkTransform> transform)
override;
102 void resetTransform()
override;
107 void translate(
double x,
double y,
double z)
override;
114 void rotate(
double aroundX,
double aroundY,
double aroundZ)
override;
120 void rotateVTK(
double aroundX,
double aroundY,
double aroundZ)
override;
127 void setTransformTranslation(
double x,
double y,
double z)
override;
135 void setTransformTranslationVTK(
double x,
double y,
double z)
override;
142 void setTransformRotation(
double aroundX,
double aroundY,
double aroundZ)
override;
150 void setTransformRotationVTK(
double aroundX,
double aroundY,
double aroundZ)
override;
157 vtkSmartPointer<vtkAxesActor> getFrameAxisActor()
override;
162 void setFrameVisibility(
Viewer* viewer,
bool visible)
override;
167 bool getFrameVisibility(
Viewer* viewer)
const override;
177 void initAttributes();
232 vtkSmartPointer<vtkAxesActor>
axes;
static int nbTotalFrames
To be able to give a default unique identifier to each created frame.
Definition: Frame.h:229
vtkSmartPointer< vtkTransformPolyDataFilter > representationTransformFilter
Transform Filter to store the transformation for the Frame's 3D representation.
Definition: Frame.h:211
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:36
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
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
QVector< InterfaceFrame * > childrenFrame
List of children Frames to keep track of Frame hierarchy.
Definition: Frame.h:216
QMap< Viewer *, bool > frameViewers
List of Viewers in which the frame is visible.
Definition: Frame.h:235
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