|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
32 class vtkTransformPolyDataFilter;
69 const QString& getFrameName()
const override final;
73 void setFrameName(QString name)
override;
89 void setParentFrame(
InterfaceFrame* parent,
bool keepTransform =
true)
override final;
95 const QVector<InterfaceFrame*>& getChildrenFrame()
const override;
102 const vtkSmartPointer<vtkTransform> getTransformFromWorld()
const override;
106 const vtkSmartPointer<vtkTransform> getTransform()
const override;
109 const vtkSmartPointer<vtkTransform> getTransformFromFrame(
InterfaceFrame* frame)
const override;
115 void setTransform(vtkSmartPointer<vtkTransform>
transform)
override final;
121 void resetTransform()
override;
126 void translate(
double x,
double y,
double z)
override;
133 void rotate(
double aroundX,
double aroundY,
double aroundZ)
override;
139 void rotateVTK(
double aroundX,
double aroundY,
double aroundZ)
override;
146 void setTransformTranslation(
double x,
double y,
double z)
override;
154 void setTransformTranslationVTK(
double x,
double y,
double z)
override;
161 void setTransformRotation(
double aroundX,
double aroundY,
double aroundZ)
override;
169 void setTransformRotationVTK(
double aroundX,
double aroundY,
double aroundZ)
override;
176 vtkSmartPointer<vtkAxesActor> getFrameAxisActor()
override;
189 CAMITK_API_DEPRECATED(
"Please use Frame::setFrameVisibility(QString viewerName, bool) instead")
void setFrameVisibility(
Viewer*,
bool)
override;
194 CAMITK_API_DEPRECATED(
"Please use Frame::getFrameVisibility(QString viewerName, bool) instead")
bool getFrameVisibility(
Viewer*)
const override;
200 void setFrameVisibility(QString,
bool)
override;
205 bool getFrameVisibility(QString)
const override;
215 void initAttributes();
270 vtkSmartPointer<vtkAxesActor>
axes;
InterfaceFrame * getParentFrame() const override
Get the parent frame.
Definition: Frame.cpp:146
void initAttributes()
Definition: Frame.cpp:96
#define CAMITK_WARNING_ALT(MSG)
Definition: Log.h:267
void translate(double x, double y, double z) override
Apply a translation relative to the current position.
Definition: Frame.cpp:279
static int nbTotalFrames
To be able to give a default unique identifier to each created frame.
Definition: Frame.h:267
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:151
Frame(vtkSmartPointer< vtkTransform > transform=nullptr, Frame *parentFrame=nullptr)
Default constructor with transformation.
Definition: Frame.cpp:73
virtual void removeFrameChild(InterfaceFrame *frame)=0
Remove the input frame as a child of the current frame.
QVector< InterfaceFrame * > computeDescendants(InterfaceFrame *)
Compute all the descendants of the input frame.
Definition: Frame.cpp:551
if(${CMAKE_VERSION} VERSION_GREATER "3.3" OR ${CMAKE_VERSION} VERSION_EQUAL "3.3") option(CAMITK_INCLUDE_WHAT_YOU_USE "Enable the header analysis on you code
QString frameName
Frame unique identifier.
Definition: Frame.h:223
void setFrameVisibility(QString, bool) override
Set the Component Frame visible for a given viewer.
Definition: Frame.cpp:487
const vtkSmartPointer< vtkTransform > getTransformFromFrame(InterfaceFrame *frame) const override
Get a COPY of the transformation with respect to another frame.
Definition: Frame.cpp:233
vtkSmartPointer< vtkTransform > transformParentToMe
Transformation to represent my points (expressed in my frame) in my parent's frame.
Definition: Frame.h:235
void setParentFrame(InterfaceFrame *parent, bool keepTransform=true) override final
Set the parent frame to the parameter frame.
Definition: Frame.cpp:156
vtkSmartPointer< vtkTransformPolyDataFilter > representationTransformFilter
Transform Filter to store the transformation for the Frame's 3D representation.
Definition: Frame.h:249
vtkSmartPointer< vtkAxesActor > axes
Geometric representation of the frame (vtkAxes)
Definition: Frame.h:270
void removeFrameChild(InterfaceFrame *frame) override final
If the parent frame keeps track of its children, when a child is deleted it should warn its parent.
Definition: Frame.cpp:216
void setFrameName(QString name) override
Set the Frame Unique identifyer.
Definition: Frame.cpp:141
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:405
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:327
void resetTransform() override
Set the current frame transform to identity.
Definition: Frame.cpp:271
virtual const vtkSmartPointer< vtkTransform > getTransformFromWorld() const =0
Transforms accessors / Modifyers.
~Frame() override
Default Destructor.
Definition: Frame.cpp:119
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:386
virtual void addFrameChild(InterfaceFrame *frame)=0
Add the input frame as a child of the current frame.
const QString & getFrameName() const override final
Hierarchy accessors / Modifyers.
Definition: Frame.cpp:136
virtual const QString & getFrameName() const =0
Hierarchy accessors / Modifyers.
static Viewer * getViewer(QString name)
get the pointer to a registered viewer given its name
Definition: Application.cpp:882
const vtkSmartPointer< vtkTransform > getTransform() const override
Get a the transformation with respect to the parent frame.
Definition: Frame.cpp:228
vtkSmartPointer< vtkTextProperty > axeYTextProp
Definition: RendererWidget.cpp:340
void addFrameChild(InterfaceFrame *frame) override
When the current Frame is set to parent, it must update its children list.
Definition: Frame.cpp:209
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:289
void setTransform(vtkSmartPointer< vtkTransform > transform) override final
Set the current input frame position (according to its parent Frame)
Definition: Frame.cpp:263
Represents a hierarchy of frames.
Definition: Frame.h:52
vtkSmartPointer< vtkTextProperty > axeZTextProp
Definition: RendererWidget.cpp:347
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:372
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:308
const vtkSmartPointer< vtkTransform > getTransformFromWorld() const override
Transforms accessors / Modifyers.
Definition: Frame.cpp:223
vtkSmartPointer< vtkTextProperty > axeXTextProp
Definition: RendererWidget.cpp:326
Viewer is an abstract class that is the base class for all viewers.
Definition: Viewer.h:180
QVector< InterfaceFrame * > childrenFrame
List of children Frames to keep track of Frame hierarchy.
Definition: Frame.h:254
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:423
QMap< Viewer *, bool > frameViewers
List of Viewers in which the frame is visible.
Definition: Frame.h:273
bool getFrameVisibility(QString) const override
Get the Component Frame visibility for a given viewer.
Definition: Frame.cpp:519
InterfaceFrame * parentFrame
The Parent Frame.
Definition: Frame.h:229
#define CAMITK_API_DEPRECATED(X)
Definition: CamiTKAPI.h:94
vtkSmartPointer< vtkAxesActor > getFrameAxisActor() override
Gives the 3D representation of the frame (based on xyd arrows)
Definition: Frame.cpp:442
#define CAMITK_API
Definition: CamiTKAPI.h:49
Definition: Action.cpp:35
vtkSmartPointer< vtkTransform > transformWorldToMe
Transformation to represent my points (expressed in my frame) in the world's frame.
Definition: Frame.h:244