|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef REORIENTIMAGE_H
27 #define REORIENTIMAGE_H
32 #include "ui_ReorientImage.h"
37 class vtkAnnotatedCubeActor;
93 vtkSmartPointer<vtkAxesActor>
axes;
113 #endif // REORIENTIMAGE_H
@ RIP
X: Right to Left, Y: Inferior to Superiror, Z: Posterior to Anterior.
Definition: ImageOrientationHelper.h:59
@ IRA
Definition: ImageOrientationHelper.h:73
static const QString IMeaning
Definition: ReorientImage.cpp:72
virtual void replaceImageData(vtkSmartPointer< vtkImageData > anImageData, bool copy=false, ImageOrientationHelper::PossibleImageOrientations initialOrientation=ImageOrientationHelper::RAI)
Replaces the current image volume by the one given in parameters.
Definition: ImageComponent.cpp:436
void setFamily(QString family)
the name of the family in which this action is associated
Definition: Action.cpp:136
const vtkSmartPointer< vtkTransform > getTransform() const override
Get the transformation with respect to the parent frame.
Definition: sdk/libraries/core/component/Component.cpp:824
virtual QWidget * getWidget()
this method creates and returns the widget containing the user interface for the action
Definition: ReorientImage.cpp:242
camitk::Geometry * modelBoundingBox
Definition: ReorientImage.h:105
#define CAMITK_WARNING(MSG)
Log for warning verbosity (the most common one) Will appear by default.
Definition: Log.h:266
void setParentFrame(InterfaceFrame *frame, bool keepTransform=true) override
Set the parent frame and update or not its transform during the parent transition.
Definition: sdk/libraries/core/component/Component.cpp:792
@ PIL
Definition: ImageOrientationHelper.h:71
A 3D representation of a vtkPointSet to be displayed in a InteractiveViewer, this class implements th...
Definition: Geometry.h:126
static const QString LMeaning
Definition: ReorientImage.cpp:69
@ SPL
Definition: ImageOrientationHelper.h:80
@ SUCCESS
everything went according to plan
Definition: Action.h:248
virtual void rcsChanged(const QString index)
Definition: ReorientImage.cpp:211
@ ABORTED
the action was aborted before completion
Definition: Action.h:251
ApplyStatus
Definition: Action.h:247
void setName(QString name)
Definition: Action.cpp:120
Interactive 3D viewer.
Definition: InteractiveGeometryViewer.h:56
virtual camitk::Action::ApplyStatus apply()
method called when the action is applied
Definition: ReorientImage.cpp:253
void setComponent(QString component)
the name of the component class that can be used by this action
Definition: Action.cpp:131
@ LPI
Definition: ImageOrientationHelper.h:63
void buildCube()
Definition: ReorientImage.cpp:410
@ IAL
Definition: ImageOrientationHelper.h:75
The manager of the Image Volume data. An image volume data has no concrete 3D representation,...
Definition: ImageComponent.h:77
const ComponentList getTargets() const
the currently selected and valid (regarding the component property) components, for which this action...
Definition: Action.cpp:166
RendererWidget * getRendererWidget()
return interactiveViewer RendererWidget
Definition: InteractiveViewer.h:237
@ SRP
Definition: ImageOrientationHelper.h:77
virtual void setFrameVisibility(QString, bool)=0
Set the Component Frame visible for a given viewer.
@ ILP
Definition: ImageOrientationHelper.h:74
ApplyStatus process(camitk::ImageComponent *image)
Actually perform the image transformation.
Definition: ReorientImage.cpp:266
camitk::Geometry * femaleModel
Definition: ReorientImage.h:107
QMap< QChar, QString > lettersMeaning
Definition: ReorientImage.h:109
bool setEmbedder(QLayout *)
If the viewer type is EMBEDDED, embed the viewer widget in the given layout (do nothing if the type i...
Definition: Viewer.cpp:181
vtkSmartPointer< vtkTransform > cubeTransform
Definition: ReorientImage.h:102
ReorientImage(camitk::ActionExtension *)
the constructor
Definition: ReorientImage.cpp:76
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:303
virtual void modelChanged(bool displayMaleModel)
Definition: ReorientImage.cpp:224
void addTag(QString tag)
add a tag to the tags list of this action
Definition: Action.cpp:141
vtkSmartPointer< vtkActor > getActor(const RenderingModes) override
Return the actor representing this representation mode (returns nullptr if hightlight mode is Hidden)...
Definition: Geometry.cpp:269
camitk::Geometry * maleModel
Definition: ReorientImage.h:106
vtkSmartPointer< vtkAxesActor > axes
axes actor
Definition: ReorientImage.h:93
@ PSR
Definition: ImageOrientationHelper.h:72
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:231
virtual ~ReorientImage()
Destructor.
Definition: ReorientImage.cpp:123
@ ARS
Definition: ImageOrientationHelper.h:65
@ RSA
etc.
Definition: ImageOrientationHelper.h:61
void setColor(const double, const double, const double) override
Set an (r,g,b) color to all representation modes, without changing the opacity.
Definition: Geometry.cpp:590
void initDialog()
initialize the dialog
Definition: ReorientImage.cpp:135
static const QString SMeaning
Definition: ReorientImage.cpp:73
vtkSmartPointer< vtkTextProperty > axeYTextProp
Definition: RendererWidget.cpp:340
@ SLA
Definition: ImageOrientationHelper.h:78
void refresh(Viewer *whoIsAsking=nullptr) override
Definition: InteractiveViewer.cpp:416
static camitk::Geometry * vtkToGeometry(std::string vtkFileName)
Static method that could be used from anywhere to translate a vtk file to a Geometry instance.
Definition: VtkMeshUtil.cpp:50
vtkSmartPointer< vtkProperty > acProp
Definition: RendererWidget.cpp:377
Definition: ReorientImage.h:43
@ SAR
Definition: ImageOrientationHelper.h:79
void setRenderingModes(const RenderingModes rMode) override
Set the actor associated to a rendering mode visible or not.
Definition: Geometry.h:249
void setDescription(QString description)
the description of the action
Definition: Action.cpp:126
@ LAS
Definition: ImageOrientationHelper.h:62
vtkSmartPointer< vtkTextProperty > axeZTextProp
Definition: RendererWidget.cpp:347
@ RPS
X: Right to Left, Y: Posterior to Anterior, Z: Superior to Inferior.
Definition: ImageOrientationHelper.h:57
QFrame * dialog
the dialog
Definition: ReorientImage.h:90
vtkSmartPointer< vtkTransform > transform
Definition: RendererWidget.cpp:372
vtkSmartPointer< vtkTransform > axesTransform
Definition: ReorientImage.h:103
virtual InterfaceFrame * getParentFrame() const =0
Get the parent frame.
@ RAI
Direct Orientations X: Right to Left, Y: Anterior to Posterior, Z: Inferior to Superiror.
Definition: ImageOrientationHelper.h:55
static const QString AMeaning
Definition: ReorientImage.cpp:70
virtual bool addParameter(Property *)
Add a new parameter to the action, using the CamiTK property class.
Definition: Action.cpp:440
static const QString PMeaning
Definition: ReorientImage.cpp:71
This class describes what is a generic Action extension. To add a ActionExtension to CamiTK core,...
Definition: ActionExtension.h:80
vtkSmartPointer< vtkTextProperty > axeXTextProp
Definition: RendererWidget.cpp:326
@ RIGHT_DOWN
World axes are seen so that x points to the right, y points downward.
Definition: RendererWidget.h:131
@ LIA
Definition: ImageOrientationHelper.h:64
vtkSmartPointer< vtkImageData > getImageData() const override
get the image volume managed by this Component
Definition: ImageComponent.h:123
@ IPR
Definition: ImageOrientationHelper.h:76
vtkSmartPointer< vtkTransform > orientationCubeTransform
Definition: ReorientImage.h:100
void buildTransforms()
Definition: ReorientImage.cpp:489
void setAxesOrientation(const QString orientation)
Definition: ReorientImage.cpp:512
virtual void setHighlightMode()
Set the current highlighting mode from the current value of the property.
Definition: InteractiveViewer.cpp:1915
InteractiveGeometryViewer * internalViewer
Definition: ReorientImage.h:81
void refresh()
refresh the display
virtual void setTransform(vtkSmartPointer< vtkTransform > transform)=0
Set the current input frame position (according to its parent Frame)
vtkSmartPointer< vtkTransform > orientationTransform
Definition: ReorientImage.h:98
void buildAxes()
Definition: ReorientImage.cpp:372
static const QString RMeaning
Definition: ReorientImage.cpp:68
@ AIR
Definition: ImageOrientationHelper.h:67
@ ALI
Definition: ImageOrientationHelper.h:66
@ PRI
Definition: ImageOrientationHelper.h:69
@ PLS
Definition: ImageOrientationHelper.h:70
void showApplyButton(bool show)
Definition: ReorientImage.cpp:181
void initInternalViewer()
Definition: ReorientImage.cpp:186
PossibleImageOrientations
For each axis (x, y or z), 6 possibilities:
Definition: ImageOrientationHelper.h:52
void buildGeometries()
Build Geometries.
Definition: ReorientImage.cpp:455
vtkSmartPointer< vtkAnnotatedCubeActor > annotatedCube
annotated cube actor
Definition: ReorientImage.h:96
Definition: Action.cpp:35
Ui::ReorientImage ui
the Qt Gui
Definition: ReorientImage.h:87
@ ASL
Definition: ImageOrientationHelper.h:68