26 #ifndef IMAGE_COMPONENT_H
27 #define IMAGE_COMPONENT_H
34 #include <vtkPolyData.h>
35 #include <vtkSmartPointer.h>
36 #include <vtkImageData.h>
37 #include <vtkTransform.h>
38 #include <vtkImageFlip.h>
39 #include <vtkWindowLevelLookupTable.h>
70 Q_PROPERTY(QString imageName READ getImageName WRITE setImageName)
73 Q_PROPERTY(QVariantMap imageSize READ getImageSize)
76 Q_PROPERTY(QVector3D voxelSize READ getVoxelSize)
79 Q_PROPERTY(QVector3D origin READ getImageOrigin)
82 Q_PROPERTY(
bool viewIn3D READ getViewIn3D WRITE setViewIn3D);
125 ImageComponent(vtkSmartPointer<vtkImageData> anImageData,
const QString &name,
bool copy=
false)
132 virtual
void setSelected(const
bool b, const
bool recursive=false);
135 QString getImageName() const;
136 void setImageName(const QString& );
139 vtkSmartPointer<vtkImageData> getImageData();
148 void getLastPixelPicked(
int * x,
int * y,
int * z );
154 int getNumberOfColors() const;
157 double getMinColor() const;
160 double getMaxColor() const;
163 int getNumberOfSlices() const;
166 virtual
void setLut(vtkSmartPointer<vtkWindowLevelLookupTable> lookupTable);
169 virtual vtkSmartPointer<vtkWindowLevelLookupTable> getLut();
173 virtual
void refresh() const;
190 virtual
void replaceImageData(vtkSmartPointer<vtkImageData> anImageData,
bool copy=false);
193 QVariantMap getImageSize() const;
194 QVector3D getVoxelSize() const;
195 QVector3D getImageOrigin() const;
196 bool getViewIn3D() const;
197 void setViewIn3D(
bool);
201 virtual
void setImageData(vtkSmartPointer<vtkImageData> anImageData,
bool copy);
206 virtual
void initRepresentation() {};
209 void initLookupTable();
212 void buildImageComponents();
214 void updateImageComponents();
218 vtkSmartPointer<vtkPolyData> getBoundingBox();
235 vtkSmartPointer<vtkWindowLevelLookupTable>
lut;
238 int currentPixelPicked[3];
257 #endif //IMAGE_COMPONENT_H
Right Posterior Superior _ Axial normal Y.
Definition: ImageComponent.h:109
SingleImageComponent * sagittalSlices
Definition: ImageComponent.h:226
Right Anterior Superior _ Axial normal X.
Definition: ImageComponent.h:102
Exception class to handle abortion in component instanciation.
Definition: AbortException.h:40
MeshComponent * volumeRenderingChild
When an action computes volume rendering for an image, it stores the corresponding actor as a prop of...
Definition: ImageComponent.h:232
Right Anterior Inferior _ Axial normal Z.
Definition: ImageComponent.h:92
vtkSmartPointer< vtkImageData > getImageData()
get the image volume managed by this Component
Definition: ImageComponent.h:251
This Component manages a set of images, destined to be seen in a single orientation only (axial OR sa...
Definition: SingleImageComponent.h:53
Right Posterior Inferior _ Axial normal X.
Definition: ImageComponent.h:96
Left Anterior Inferior _ Axial normal Y.
Definition: ImageComponent.h:94
Left Anterior Inferior _ Axial normal Z.
Definition: ImageComponent.h:95
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:40
Left Posterior Inferior _ Axial normal X.
Definition: ImageComponent.h:99
Left Anterior Inferior _ Axial normal X.
Definition: ImageComponent.h:93
Right Posterior Inferior _ Axial normal Y.
Definition: ImageComponent.h:97
Left Posterior Superior _ Axial normal X.
Definition: ImageComponent.h:111
Right Anterior Superior _ Axial normal Y.
Definition: ImageComponent.h:103
Left Anterior Superior _ Axial normal Y.
Definition: ImageComponent.h:106
Right Anterior Inferior _ Axial normal Y.
Definition: ImageComponent.h:91
SingleImageComponent * axialSlices
Definition: ImageComponent.h:225
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: Component.h:287
#define CAMITK_API
Definition: CamiTKAPI.h:49
Left Anterior Superior _ Axial normal Z.
Definition: ImageComponent.h:107
Definition: ImageComponent.h:66
Definition: ImageComponent.h:89
Right Posterior Superior _ Axial normal X.
Definition: ImageComponent.h:108
Left Anterior Superior _ Axial normal X.
Definition: ImageComponent.h:105
Right Posterior Inferior _ Axial normal Z.
Definition: ImageComponent.h:98
Right Anterior Inferior _ Axial normal X.
Definition: ImageComponent.h:90
Left Posterior Inferior _ Axial normal Z.
Definition: ImageComponent.h:101
Right Posterior Superior _ Axial normal Z.
Definition: ImageComponent.h:110
Right Anterior Superior _ Axial normal Z.
Definition: ImageComponent.h:104
SingleImageComponent * coronalSlices
Definition: ImageComponent.h:227
MedicalDataOrigin
: There is no convension concerning the origin of the data.
Definition: ImageComponent.h:88
vtkSmartPointer< vtkImageData > originalImageData
the core Image Volume that is managed here
Definition: ImageComponent.h:223
SingleImageComponent * arbitrarySlices
Definition: ImageComponent.h:228
vtkSmartPointer< vtkWindowLevelLookupTable > lut
the current lookup table
Definition: ImageComponent.h:235
Left Posterior Inferior _ Axial normal Y.
Definition: ImageComponent.h:100