 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
Go to the documentation of this file.
10 class vtkTransformPolyDataFilter;
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;
InterfaceFrame * getParentFrame() const override
Get the parent frame.
Definition: Frame.cpp:108
void initAttributes()
Definition: Frame.cpp:57
void translate(double x, double y, double z) override
Apply a translation relative to the current position.
Definition: Frame.cpp:238
static int nbTotalFrames
To be able to give a default unique identifier to each created frame.
Definition: Frame.h:229
const QVector< InterfaceFrame * > & getChildrenFrame() const override
Get the Children Frames from the current Frame in the Frame Hierarchy The Frame hierarchy may not be ...
Definition: Frame.cpp:113
Frame(vtkSmartPointer< vtkTransform > transform=nullptr, Frame *parentFrame=nullptr)
Definition: Frame.cpp:34
virtual void removeFrameChild(InterfaceFrame *frame)=0
Remove the input frame as a child of the current frame.
void setTransform(vtkSmartPointer< vtkTransform > transform) override
Set the current input frame position (according to its parent Frame)
Definition: Frame.cpp:222
QVector< InterfaceFrame * > computeDescendants(InterfaceFrame *)
Compute all the descendants of the input frame.
Definition: Frame.cpp:419
QString frameName
Frame unique identifier.
Definition: Frame.h:185
void removeFrameChild(InterfaceFrame *frame) override
If the parent frame keeps track of its children, when a child is deleted it should warn its parent.
Definition: Frame.cpp:176
void setParentFrame(InterfaceFrame *parent, bool keepTransform=true) override
Set the parent frame to the parameter frame.
Definition: Frame.cpp:118
const vtkSmartPointer< vtkTransform > getTransformFromFrame(InterfaceFrame *frame) const override
Get a COPY of the transformation with respect to another frame.
Definition: Frame.cpp:193
vtkSmartPointer< vtkTransform > transformParentToMe
Transformation to represent my points (expressed in my frame) in my parent's frame.
Definition: Frame.h:197
void setFrameVisibility(Viewer *viewer, bool visible) override
Set the Component Frame visible for a given viewer.
Definition: Frame.cpp:394
vtkSmartPointer< vtkTransformPolyDataFilter > representationTransformFilter
Transform Filter to store the transformation for the Frame's 3D representation.
Definition: Frame.h:211
vtkSmartPointer< vtkAxesActor > axes
Geometric representation of the frame (vtkAxes)
Definition: Frame.h:232
virtual const QVector< InterfaceFrame * > & getChildrenFrame() const =0
Get the Children Frames from the current Frame in the Frame Hierarchy The Frame hierarchy may not be ...
void setFrameName(QString name) override
Set the Frame Unique identifyer.
Definition: Frame.cpp:103
void setTransformRotation(double aroundX, double aroundY, double aroundZ) override
Set the rotation part of the 3D space transformation of the current frame.
Definition: Frame.cpp:315
void setTransformTranslation(double x, double y, double z) override
Set the translation part of the 3D space transformation of the current frame.
Definition: Frame.cpp:283
void resetTransform() override
Set the current frame transform to identity.
Definition: Frame.cpp:230
virtual const vtkSmartPointer< vtkTransform > getTransformFromWorld() const =0
Transforms accessors / Modifyers.
~Frame() override
Default Destructor.
Definition: Frame.cpp:80
void setTransformTranslationVTK(double x, double y, double z) override
Set the translation part of the 3D space transformation of the current frame.
Definition: Frame.cpp:299
virtual void addFrameChild(InterfaceFrame *frame)=0
Add the input frame as a child of the current frame.
virtual const QString & getFrameName() const =0
Hierarchy accessors / Modifyers.
const vtkSmartPointer< vtkTransform > getTransform() const override
Get a the transformation with respect to the parent frame.
Definition: Frame.cpp:188
vtkSmartPointer< vtkTextProperty > axeYTextProp
Definition: RendererWidget.cpp:563
void addFrameChild(InterfaceFrame *frame) override
When the current Frame is set to parent, it must update its children list.
Definition: Frame.cpp:170
void rotate(double aroundX, double aroundY, double aroundZ) override
Apply rotations relative to the current position in the alphabetical order (X, Y, Z).
Definition: Frame.cpp:247
bool getFrameVisibility(Viewer *viewer) const override
Get the Component Frame visibility for a given viewer.
Definition: Frame.cpp:407
Represents a hierarchy of frames.
Definition: Frame.h:30
vtkSmartPointer< vtkTextProperty > axeZTextProp
Definition: RendererWidget.cpp:570
This class describes what are the methods to implement in order to manage a Component position in spa...
Definition: InterfaceFrame.h:64
virtual void setParentFrame(InterfaceFrame *parent, bool keepTransform=true)=0
Set the parent frame and update or not its transform during the parent transition.
vtkSmartPointer< vtkTransform > transform
Definition: RendererWidget.cpp:595
void rotateVTK(double aroundX, double aroundY, double aroundZ) override
Apply a rotation relative to the current position, using the VTK rotation order (Z,...
Definition: Frame.cpp:265
const vtkSmartPointer< vtkTransform > getTransformFromWorld() const override
Transforms accessors / Modifyers.
Definition: Frame.cpp:183
vtkSmartPointer< vtkTextProperty > axeXTextProp
Definition: RendererWidget.cpp:549
Viewer is an abstract viewer.
Definition: Viewer.h:55
QVector< InterfaceFrame * > childrenFrame
List of children Frames to keep track of Frame hierarchy.
Definition: Frame.h:216
void setTransformRotationVTK(double aroundX, double aroundY, double aroundZ) override
Set the rotation part of the 3D space transformation of the current frame.
Definition: Frame.cpp:331
QMap< Viewer *, bool > frameViewers
List of Viewers in which the frame is visible.
Definition: Frame.h:235
const QString & getFrameName() const override
Hierarchy accessors / Modifyers.
Definition: Frame.cpp:98
InterfaceFrame * parentFrame
The Parent Frame.
Definition: Frame.h:191
vtkSmartPointer< vtkAxesActor > getFrameAxisActor() override
Gives the 3D representation of the frame (based on xyd arrows)
Definition: Frame.cpp:349
#define CAMITK_API
Definition: CamiTKAPI.h:49
Definition: Action.cpp:36
vtkSmartPointer< vtkTransform > transformWorldToMe
Transformation to represent my points (expressed in my frame) in the world's frame.
Definition: Frame.h:206