Computer Assisted Medical Intervention Tool Kit  version 5.2
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 
#define CAMITK_API
Definition: CamiTKAPI.h:49
Helper class.
Definition: ImageOrientationHelper.h:32
PossibleImageOrientations
For each axis (x, y or z), 6 possibilities:
Definition: ImageOrientationHelper.h:52
Definition: Action.cpp:36