 |
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
X: Right to Left, Y: Inferior to Superiror, Z: Posterior to Anterior.
Definition: ImageOrientationHelper.h:59
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:428
camitk::InteractiveViewer * internalViewer
Definition: ReorientImage.h:79
void setFamily(QString family)
the name of the family in which this action is associated
Definition: Action.cpp:128
const vtkSmartPointer< vtkTransform > getTransform() const override
Get the transformation with respect to the parent frame.
Definition: sdk/libraries/core/component/Component.cpp:665
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:103
#define CAMITK_WARNING(MSG)
Log for warning verbosity (the most common one) Will appear by default.
Definition: Log.h:261
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:637
Definition: ImageOrientationHelper.h:71
A 3D representation of a vtkPointSet to be displayed in a InteractiveViewer, this class implements th...
Definition: Geometry.h:125
QWidget * getWidget(QWidget *parent) override
get the InteractiveViewer widget (QTreeWidget).
Definition: InteractiveViewer.cpp:367
static const QString LMeaning
Definition: ReorientImage.cpp:65
Definition: ImageOrientationHelper.h:80
everything went according to plan
Definition: Action.h:245
void setRenderingModes(const RenderingModes rMode)
Set the actor associated to a rendering mode visible or not.
Definition: Geometry.h:237
virtual void rcsChanged(const QString index)
Definition: ReorientImage.cpp:209
the action was aborted before completion
Definition: Action.h:248
ApplyStatus
Definition: Action.h:244
void setName(QString name)
Definition: Action.cpp:112
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:123
Definition: ImageOrientationHelper.h:63
void buildCube()
Definition: ReorientImage.cpp:409
Definition: ImageOrientationHelper.h:75
virtual void setHighlightMode(InteractiveViewer::HighlightMode)
Set the current highlighting mode.
Definition: InteractiveViewer.cpp:1962
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:72
const ComponentList getTargets() const
the currently selected and valid (regarding the component property) components, for which this action...
Definition: Action.cpp:158
RendererWidget * getRendererWidget()
return interactiveViewer RendererWidget
Definition: InteractiveViewer.h:294
Definition: ImageOrientationHelper.h:77
Definition: ImageOrientationHelper.h:74
ApplyStatus process(camitk::ImageComponent *image)
Actually perform the image transformation.
Definition: ReorientImage.cpp:264
camitk::Geometry * femaleModel
Definition: ReorientImage.h:105
QMap< QChar, QString > lettersMeaning
Definition: ReorientImage.h:108
InteractiveViewer is used to view 3D objects and slices (anything that provides either a InterfaceBit...
Definition: InteractiveViewer.h:139
vtkSmartPointer< vtkTransform > cubeTransform
Definition: ReorientImage.h:100
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:312
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:133
vtkSmartPointer< vtkActor > getActor(const RenderingModes) override
Return the actor representing this representation mode (return NULL if hightlight mode is Hidden).
Definition: Geometry.cpp:265
camitk::Geometry * maleModel
Definition: ReorientImage.h:104
vtkSmartPointer< vtkAxesActor > axes
axes actor
Definition: ReorientImage.h:91
QDialog * dialog
the dialog
Definition: ReorientImage.h:88
Definition: ImageOrientationHelper.h:72
Action class is an abstract class that enables you to build a action (generally on a component)....
Definition: Action.h:228
virtual ~ReorientImage()
Destructor.
Definition: ReorientImage.cpp:119
Definition: ImageOrientationHelper.h:65
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:586
void initDialog()
initialize the dialog
Definition: ReorientImage.cpp:133
static const QString SMeaning
Definition: ReorientImage.cpp:69
vtkSmartPointer< vtkTextProperty > axeYTextProp
Definition: RendererWidget.cpp:561
Definition: ImageOrientationHelper.h:78
void refresh(Viewer *whoIsAsking=nullptr) override
Refresh the display.
Definition: InteractiveViewer.cpp:526
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:44
vtkSmartPointer< vtkProperty > acProp
Definition: RendererWidget.cpp:598
Definition: ReorientImage.h:41
World axes are seen so that x points to the right, y points downward.
Definition: RendererWidget.h:164
Definition: ImageOrientationHelper.h:79
void setDescription(QString description)
the description of the action
Definition: Action.cpp:118
Definition: ImageOrientationHelper.h:62
vtkSmartPointer< vtkTextProperty > axeZTextProp
Definition: RendererWidget.cpp:568
X: Right to Left, Y: Posterior to Anterior, Z: Superior to Inferior.
Definition: ImageOrientationHelper.h:57
vtkSmartPointer< vtkTransform > transform
Definition: RendererWidget.cpp:593
vtkSmartPointer< vtkTransform > axesTransform
Definition: ReorientImage.h:101
virtual InterfaceFrame * getParentFrame() const =0
Get the parent frame.
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:416
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:80
vtkSmartPointer< vtkTextProperty > axeXTextProp
Definition: RendererWidget.cpp:547
vtkSmartPointer< vtkImageData > getImageData() const
get the image volume managed by this Component
Definition: ImageComponent.h:103
Definition: ImageOrientationHelper.h:64
Definition: ImageOrientationHelper.h:76
vtkSmartPointer< vtkTransform > orientationCubeTransform
Definition: ReorientImage.h:98
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:2060
vtkSmartPointer< vtkTransform > orientationTransform
Definition: ReorientImage.h:96
void buildAxes()
Definition: ReorientImage.cpp:371
static const QString RMeaning
Definition: ReorientImage.cpp:64
Definition: ImageOrientationHelper.h:67
Definition: ImageOrientationHelper.h:66
Definition: ImageOrientationHelper.h:69
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:94
Definition: Action.cpp:36
Ui::ReorientImage ui
the Qt Gui
Definition: ReorientImage.h:85
Definition: ImageOrientationHelper.h:68