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>
73 Q_PROPERTY(QString imageName READ getImageName WRITE setImageName)
76 Q_PROPERTY(QVariantMap imageSize READ getImageSize)
79 Q_PROPERTY(QVector3D voxelSize READ getVoxelSize)
82 Q_PROPERTY(QVector3D origin READ getImageOrigin)
85 Q_PROPERTY(QString imageType READ getDataType)
88 Q_PROPERTY(
bool viewIn3D READ getViewIn3D WRITE setViewIn3D);
131 ImageComponent(vtkSmartPointer<vtkImageData> anImageData,
const QString &name,
bool copy=
false)
138 virtual
void setSelected(const
bool b, const
bool recursive=false);
141 QString getImageName() const;
142 void setImageName(const QString& );
145 vtkSmartPointer<vtkImageData> getImageData();
154 void getLastPixelPicked(
int * x,
int * y,
int * z );
160 int getNumberOfColors() const;
163 double getMinColor() const;
166 double getMaxColor() const;
169 int getNumberOfSlices() const;
172 virtual
void setLut(vtkSmartPointer<vtkWindowLevelLookupTable> lookupTable);
175 virtual vtkSmartPointer<vtkWindowLevelLookupTable> getLut();
179 virtual
void refresh() const;
196 virtual
void replaceImageData(vtkSmartPointer<vtkImageData> anImageData,
bool copy=false);
199 QVariantMap getImageSize() const;
200 QString getDataType() const;
201 QVector3D getVoxelSize() const;
202 QVector3D getImageOrigin() const;
203 bool getViewIn3D() const;
204 void setViewIn3D(
bool);
208 virtual
void setImageData(vtkSmartPointer<vtkImageData> anImageData,
bool copy);
213 virtual
void initRepresentation() {};
216 void initLookupTable();
219 void buildImageComponents();
221 void updateImageComponents();
225 vtkSmartPointer<vtkPolyData> getBoundingBox();
242 vtkSmartPointer<vtkWindowLevelLookupTable>
lut;
245 int currentPixelPicked[3];
264 #endif //IMAGE_COMPONENT_H
Right Posterior Superior _ Axial normal Y.
Definition: ImageComponent.h:115
SingleImageComponent * sagittalSlices
Definition: ImageComponent.h:233
Right Anterior Superior _ Axial normal X.
Definition: ImageComponent.h:108
Exception class to handle abortion in component instanciation.
Definition: AbortException.h:44
MeshComponent * volumeRenderingChild
When an action computes volume rendering for an image, it stores the corresponding actor as a prop of...
Definition: ImageComponent.h:239
Right Anterior Inferior _ Axial normal Z.
Definition: ImageComponent.h:98
vtkSmartPointer< vtkImageData > getImageData()
get the image volume managed by this Component
Definition: ImageComponent.h:258
This Component manages a set of images, destined to be seen in a single orientation only (axial OR sa...
Definition: SingleImageComponent.h:56
Right Posterior Inferior _ Axial normal X.
Definition: ImageComponent.h:102
Left Anterior Inferior _ Axial normal Y.
Definition: ImageComponent.h:100
Left Anterior Inferior _ Axial normal Z.
Definition: ImageComponent.h:101
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:44
Left Posterior Inferior _ Axial normal X.
Definition: ImageComponent.h:105
Left Anterior Inferior _ Axial normal X.
Definition: ImageComponent.h:99
Right Posterior Inferior _ Axial normal Y.
Definition: ImageComponent.h:103
Left Posterior Superior _ Axial normal X.
Definition: ImageComponent.h:117
Right Anterior Superior _ Axial normal Y.
Definition: ImageComponent.h:109
Left Anterior Superior _ Axial normal Y.
Definition: ImageComponent.h:112
Right Anterior Inferior _ Axial normal Y.
Definition: ImageComponent.h:97
SingleImageComponent * axialSlices
Definition: ImageComponent.h:232
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:292
#define CAMITK_API
Definition: CamiTKAPI.h:49
Left Anterior Superior _ Axial normal Z.
Definition: ImageComponent.h:113
Definition: ImageComponent.h:69
Definition: ImageComponent.h:95
CamiTK CamiTKDir txt file(STRINGS"${FIND_CAMITK_USER_BASE_DIR}/CamiTK/CamiTKDir.txt"FIND_CAMITK_USER_DIR_LAST_INSTALL) endif() find_program(CAMITK_CONFIG_EXECUTABLE NAMES camitk-config-debug camitk-config PATH_SUFFIXES"bin"PATHS"$
Definition: FindCamiTK.cmake:80
Right Posterior Superior _ Axial normal X.
Definition: ImageComponent.h:114
Left Anterior Superior _ Axial normal X.
Definition: ImageComponent.h:111
Right Posterior Inferior _ Axial normal Z.
Definition: ImageComponent.h:104
Right Anterior Inferior _ Axial normal X.
Definition: ImageComponent.h:96
Left Posterior Inferior _ Axial normal Z.
Definition: ImageComponent.h:107
Right Posterior Superior _ Axial normal Z.
Definition: ImageComponent.h:116
Right Anterior Superior _ Axial normal Z.
Definition: ImageComponent.h:110
SingleImageComponent * coronalSlices
Definition: ImageComponent.h:234
MedicalDataOrigin
: There is no convension concerning the origin of the data.
Definition: ImageComponent.h:94
vtkSmartPointer< vtkImageData > originalImageData
the core Image Volume that is managed here
Definition: ImageComponent.h:230
SingleImageComponent * arbitrarySlices
Definition: ImageComponent.h:235
vtkSmartPointer< vtkWindowLevelLookupTable > lut
the current lookup table
Definition: ImageComponent.h:242
Left Posterior Inferior _ Axial normal Y.
Definition: ImageComponent.h:106