Computer Assited Medical Intervention Tool Kit  version 5.0
ImageOrientationHelper.h
Go to the documentation of this file.
1 #ifndef IMAGEORIENTATIONHELPER_H
2 #define IMAGEORIENTATIONHELPER_H
3 
4 #include <QObject>
5 #include <QStringList>
6 
7 
8 #include "CamiTKAPI.h"
9 
10 #include <vtkSmartPointer.h>
11 
12 class vtkMatrix4x4;
13 
14 namespace camitk {
15 
33 
34  Q_OBJECT
35 
36 public:
55  RAI = 0,
57  RPS = 1,
59  RIP = 2,
61  RSA = 3,
62  LAS = 4,
63  LPI = 5,
64  LIA = 6,
65  ARS = 7,
66  ALI = 8,
67  AIR = 9,
68  ASL = 10,
69  PRI = 11,
70  PLS = 12,
71  PIL = 13,
72  PSR = 14,
73  IRA = 15,
74  ILP = 16,
75  IAL = 17,
76  IPR = 18,
77  SRP = 19,
78  SLA = 20,
79  SAR = 22,
80  SPL = 23,
81  UNKNOWN = 50,
82  };
83 
84  Q_ENUM(PossibleImageOrientations)
85 
86 
94  static const QStringList getPossibleImageOrientations();
95 
100  static PossibleImageOrientations getOrientationAsEnum(QString orientation);
101 
106  static QString getOrientationAsQString(PossibleImageOrientations orientation);
107 
108 
133  static vtkSmartPointer<vtkMatrix4x4> getTransformToRAI(PossibleImageOrientations orientation, double dimX, double dimY, double dimZ);
134 
159  static vtkSmartPointer<vtkMatrix4x4> getTransformToRAI(QString orientation, double dimX, double dimY, double dimZ);
160 
181  static vtkSmartPointer<vtkMatrix4x4> getTransformFromRAI(PossibleImageOrientations orientation, double dimX, double dimY, double dimZ);
182 
203  static vtkSmartPointer<vtkMatrix4x4> getTransformFromRAI(QString orientation, double dimX, double dimY, double dimZ);
204 
205 
206 };
207 }
208 #endif // AXESREPRESENTATIONHELPER_H
209 
camitk::ImageOrientationHelper::RIP
@ RIP
X: Right to Left, Y: Inferior to Superiror, Z: Posterior to Anterior.
Definition: ImageOrientationHelper.h:59
camitk::ImageOrientationHelper::IRA
@ IRA
Definition: ImageOrientationHelper.h:73
camitk::ImageOrientationHelper::PIL
@ PIL
Definition: ImageOrientationHelper.h:71
camitk::ImageOrientationHelper::SPL
@ SPL
Definition: ImageOrientationHelper.h:80
CamiTKAPI.h
camitk::ImageOrientationHelper::getOrientationAsEnum
static PossibleImageOrientations getOrientationAsEnum(QString orientation)
Returns the Possible Medical Image orientation in PossibleImageOrientations enumeration format from a...
Definition: ImageOrientationHelper.cpp:44
camitk::ImageOrientationHelper::LPI
@ LPI
Definition: ImageOrientationHelper.h:63
camitk::ImageOrientationHelper::IAL
@ IAL
Definition: ImageOrientationHelper.h:75
camitk::ImageOrientationHelper::SRP
@ SRP
Definition: ImageOrientationHelper.h:77
camitk::ImageOrientationHelper::ILP
@ ILP
Definition: ImageOrientationHelper.h:74
camitk::ImageOrientationHelper::PSR
@ PSR
Definition: ImageOrientationHelper.h:72
camitk::ImageOrientationHelper::ARS
@ ARS
Definition: ImageOrientationHelper.h:65
camitk::ImageOrientationHelper::RSA
@ RSA
etc.
Definition: ImageOrientationHelper.h:61
camitk::ImageOrientationHelper
Helper class.
Definition: ImageOrientationHelper.h:32
camitk::ImageOrientationHelper::SLA
@ SLA
Definition: ImageOrientationHelper.h:78
camitk::ImageOrientationHelper::getTransformFromRAI
static vtkSmartPointer< vtkMatrix4x4 > getTransformFromRAI(PossibleImageOrientations orientation, double dimX, double dimY, double dimZ)
Given a possible Dicom Image Orientation, this method returns the transform matrix to express an RAI ...
Definition: ImageOrientationHelper.cpp:98
camitk::ImageOrientationHelper::SAR
@ SAR
Definition: ImageOrientationHelper.h:79
camitk::ImageOrientationHelper::UNKNOWN
@ UNKNOWN
Definition: ImageOrientationHelper.h:81
camitk::ImageOrientationHelper::LAS
@ LAS
Definition: ImageOrientationHelper.h:62
camitk::ImageOrientationHelper::RPS
@ RPS
X: Right to Left, Y: Posterior to Anterior, Z: Superior to Inferior.
Definition: ImageOrientationHelper.h:57
camitk::transform
vtkSmartPointer< vtkTransform > transform
Definition: RendererWidget.cpp:372
camitk::ImageOrientationHelper::RAI
@ RAI
Direct Orientations X: Right to Left, Y: Anterior to Posterior, Z: Inferior to Superiror.
Definition: ImageOrientationHelper.h:55
camitk::ImageOrientationHelper::LIA
@ LIA
Definition: ImageOrientationHelper.h:64
ImageOrientationHelper.h
camitk::ImageOrientationHelper::IPR
@ IPR
Definition: ImageOrientationHelper.h:76
Core.h
camitk::ImageOrientationHelper::AIR
@ AIR
Definition: ImageOrientationHelper.h:67
camitk::ImageOrientationHelper::ALI
@ ALI
Definition: ImageOrientationHelper.h:66
camitk::ImageOrientationHelper::PRI
@ PRI
Definition: ImageOrientationHelper.h:69
camitk::ImageOrientationHelper::getOrientationAsQString
static QString getOrientationAsQString(PossibleImageOrientations orientation)
Returns the Possible Medical Image orientation in QString format from a PossibleImageOrientation enum...
Definition: ImageOrientationHelper.cpp:61
camitk::ImageOrientationHelper::PLS
@ PLS
Definition: ImageOrientationHelper.h:70
camitk::ImageOrientationHelper::PossibleImageOrientations
PossibleImageOrientations
For each axis (x, y or z), 6 possibilities:
Definition: ImageOrientationHelper.h:52
camitk::ImageOrientationHelper::getPossibleImageOrientations
static const QStringList getPossibleImageOrientations()
Returns the enumeration type PossibleImageOrientations in the format of a QStringList.
Definition: ImageOrientationHelper.cpp:13
camitk::ImageOrientationHelper::getTransformToRAI
static vtkSmartPointer< vtkMatrix4x4 > getTransformToRAI(PossibleImageOrientations orientation, double dimX, double dimY, double dimZ)
Given a possible Dicom Image Orientation, this method returns the transform matrix to express the ima...
Definition: ImageOrientationHelper.cpp:216
CAMITK_API
#define CAMITK_API
Definition: CamiTKAPI.h:49
camitk
Definition: Action.cpp:35
camitk::ImageOrientationHelper::ASL
@ ASL
Definition: ImageOrientationHelper.h:68