 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
Go to the documentation of this file.
26 #ifndef REORIENTIMAGE_H
27 #define REORIENTIMAGE_H
32 #include "ui_ReorientImage.h"
35 class vtkAnnotatedCubeActor;
39 class InteractiveViewer;
92 vtkSmartPointer<vtkAxesActor>
axes;
115 #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:68
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:429
camitk::InteractiveViewer * internalViewer
Definition: ReorientImage.h:80
void setFamily(QString family)
the name of the family in which this action is associated
Definition: Action.cpp:129
const vtkSmartPointer< vtkTransform > getTransform() const override
Get the transformation with respect to the parent frame.
Definition: sdk/libraries/core/component/Component.cpp:666
virtual QWidget * getWidget()
this method creates and returns the widget containing the user interface for the action
Definition: ReorientImage.cpp:240
camitk::Geometry * modelBoundingBox
Definition: ReorientImage.h:104
#define CAMITK_WARNING(MSG)
Log for warning verbosity (the most common one) Will appear by default.
Definition: Log.h:263
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:638
@ 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
QWidget * getWidget(QWidget *parent) override
get the InteractiveViewer widget (QTreeWidget).
Definition: InteractiveViewer.cpp:368
static const QString LMeaning
Definition: ReorientImage.cpp:65
@ SPL
Definition: ImageOrientationHelper.h:80
@ SUCCESS
everything went according to plan
Definition: Action.h:247
void setRenderingModes(const RenderingModes rMode)
Set the actor associated to a rendering mode visible or not.
Definition: Geometry.h:238
virtual void rcsChanged(const QString index)
Definition: ReorientImage.cpp:209
@ ABORTED
the action was aborted before completion
Definition: Action.h:250
ApplyStatus
Definition: Action.h:246
void setName(QString name)
Definition: Action.cpp:113
virtual ApplyStatus apply()
method called when the action is applied
Definition: ReorientImage.cpp:251
void setComponent(QString component)
the name of the component class that can be used by this action
Definition: Action.cpp:124
@ LPI
Definition: ImageOrientationHelper.h:63
void buildCube()
Definition: ReorientImage.cpp:409
@ IAL
Definition: ImageOrientationHelper.h:75
virtual void setHighlightMode(InteractiveViewer::HighlightMode)
Set the current highlighting mode.
Definition: InteractiveViewer.cpp:1963
virtual void setFrameVisibility(Viewer *viewer, bool visible)=0
Set the Component Frame visible for a given viewer.
The manager of the Image Volume data. An image volume data has no concrete 3D representation,...
Definition: ImageComponent.h:73
const ComponentList getTargets() const
the currently selected and valid (regarding the component property) components, for which this action...
Definition: Action.cpp:159
RendererWidget * getRendererWidget()
return interactiveViewer RendererWidget
Definition: InteractiveViewer.h:295
@ SRP
Definition: ImageOrientationHelper.h:77
@ ILP
Definition: ImageOrientationHelper.h:74
ApplyStatus process(camitk::ImageComponent *image)
Actually perform the image transformation.
Definition: ReorientImage.cpp:264
camitk::Geometry * femaleModel
Definition: ReorientImage.h:106
QMap< QChar, QString > lettersMeaning
Definition: ReorientImage.h:109
InteractiveViewer is used to view 3D objects and slices (anything that provides either a InterfaceBit...
Definition: InteractiveViewer.h:140
vtkSmartPointer< vtkTransform > cubeTransform
Definition: ReorientImage.h:101
ReorientImage(camitk::ActionExtension *)
the constructor
Definition: ReorientImage.cpp:72
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:314
virtual void modelChanged(bool displayMaleModel)
Definition: ReorientImage.cpp:222
void addTag(QString tag)
add a tag to the tags list of this action
Definition: Action.cpp:134
vtkSmartPointer< vtkActor > getActor(const RenderingModes) override
Return the actor representing this representation mode (return NULL if hightlight mode is Hidden).
Definition: Geometry.cpp:266
camitk::Geometry * maleModel
Definition: ReorientImage.h:105
vtkSmartPointer< vtkAxesActor > axes
axes actor
Definition: ReorientImage.h:92
QDialog * dialog
the dialog
Definition: ReorientImage.h:89
@ 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:230
virtual ~ReorientImage()
Destructor.
Definition: ReorientImage.cpp:119
@ 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:587
void initDialog()
initialize the dialog
Definition: ReorientImage.cpp:133
static const QString SMeaning
Definition: ReorientImage.cpp:69
vtkSmartPointer< vtkTextProperty > axeYTextProp
Definition: RendererWidget.cpp:563
@ SLA
Definition: ImageOrientationHelper.h:78
void refresh(Viewer *whoIsAsking=nullptr) override
Refresh the display.
Definition: InteractiveViewer.cpp:527
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:45
vtkSmartPointer< vtkProperty > acProp
Definition: RendererWidget.cpp:600
Definition: ReorientImage.h:42
@ RIGHT_DOWN
World axes are seen so that x points to the right, y points downward.
Definition: RendererWidget.h:165
@ SAR
Definition: ImageOrientationHelper.h:79
void setDescription(QString description)
the description of the action
Definition: Action.cpp:119
@ LAS
Definition: ImageOrientationHelper.h:62
vtkSmartPointer< vtkTextProperty > axeZTextProp
Definition: RendererWidget.cpp:570
@ RPS
X: Right to Left, Y: Posterior to Anterior, Z: Superior to Inferior.
Definition: ImageOrientationHelper.h:57
vtkSmartPointer< vtkTransform > transform
Definition: RendererWidget.cpp:595
vtkSmartPointer< vtkTransform > axesTransform
Definition: ReorientImage.h:102
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:66
virtual bool addParameter(Property *)
Add a new parameter to the action, using the CamiTK property class.
Definition: Action.cpp:417
static const QString PMeaning
Definition: ReorientImage.cpp:67
This class describes what is a generic Action extension. To add a ActionExtension to CamiTK core,...
Definition: ActionExtension.h:82
vtkSmartPointer< vtkTextProperty > axeXTextProp
Definition: RendererWidget.cpp:549
vtkSmartPointer< vtkImageData > getImageData() const
get the image volume managed by this Component
Definition: ImageComponent.h:104
@ LIA
Definition: ImageOrientationHelper.h:64
@ IPR
Definition: ImageOrientationHelper.h:76
vtkSmartPointer< vtkTransform > orientationCubeTransform
Definition: ReorientImage.h:99
void buildTransforms()
Definition: ReorientImage.cpp:488
void setAxesOrientation(const QString orientation)
Definition: ReorientImage.cpp:511
void refresh()
refresh the display
virtual void setTransform(vtkSmartPointer< vtkTransform > transform)=0
Set the current input frame position (according to its parent Frame)
void toggleCopyright(bool)
show/hide the copyright in 3D
Definition: InteractiveViewer.cpp:2061
vtkSmartPointer< vtkTransform > orientationTransform
Definition: ReorientImage.h:97
void buildAxes()
Definition: ReorientImage.cpp:371
static const QString RMeaning
Definition: ReorientImage.cpp:64
@ 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:179
void initInternalViewer()
Definition: ReorientImage.cpp:184
PossibleImageOrientations
For each axis (x, y or z), 6 possibilities:
Definition: ImageOrientationHelper.h:52
void buildGeometries()
Build Geometries.
Definition: ReorientImage.cpp:454
vtkSmartPointer< vtkAnnotatedCubeActor > annotatedCube
annotated cube actor
Definition: ReorientImage.h:95
Definition: Action.cpp:36
Ui::ReorientImage ui
the Qt Gui
Definition: ReorientImage.h:86
@ ASL
Definition: ImageOrientationHelper.h:68