26 #ifndef IMAGE_COMPONENT_H 27 #define IMAGE_COMPONENT_H 35 #include <vtkPolyData.h> 36 #include <vtkSmartPointer.h> 37 #include <vtkImageData.h> 38 #include <vtkTransform.h> 39 #include <vtkImageFlip.h> 40 #include <vtkWindowLevelLookupTable.h> 41 #include <vtkMatrix4x4.h> 49 class QStandardItemModel;
91 virtual void setSelected(
const bool b,
const bool recursive =
false );
94 QString getImageName()
const;
95 void setImageName(
const QString& );
99 return originalImageData;
107 vtkSmartPointer<vtkImageData> getImageDataWithFrameTransform();
111 return initialOrientation;
122 void getLastPixelPicked(
int * x,
int * y,
int * z );
126 void getLastPointPickedImageCoords(
double * x,
double * y,
double * z );
130 void getLastPointPickedWorldCoords(
double * x,
double * y,
double * z );
137 int getNumberOfColors()
const;
140 double getMinColor()
const;
143 double getMaxColor()
const;
148 int getActualNumberOfColors()
const;
151 double getActualMinColor()
const;
154 double getActualMaxColor()
const;
157 int getNumberOfSlices()
const;
160 virtual void setLut( vtkSmartPointer<vtkWindowLevelLookupTable> lookupTable );
163 virtual vtkSmartPointer<vtkWindowLevelLookupTable> getLut();
167 virtual void refresh()
const;
192 QVariantMap getImageSize()
const;
194 QString getDataType()
const;
195 QVector3D getVoxelSize()
const;
196 QVector3D getImageOrigin()
const;
197 bool getViewIn3D()
const;
198 void setViewIn3D(
bool );
206 virtual void updateProperty( QString, QVariant );
211 virtual unsigned int getNumberOfPropertyWidget();
214 virtual QWidget * getPropertyWidgetAt(
unsigned int i, QWidget* parent = 0 );
218 return rotationMatrix;
230 virtual void setImageData( vtkSmartPointer<vtkImageData> anImageData,
233 vtkSmartPointer<vtkMatrix4x4> initialTransformMatrix = NULL);
245 virtual void updateImageProperties();
253 void initLookupTable();
256 void buildImageComponents();
258 void updateImageComponents();
262 vtkSmartPointer<vtkPolyData> getBoundingBox();
277 vtkSmartPointer<vtkWindowLevelLookupTable>
lut;
280 double currentPixelPicked[3];
325 #endif //IMAGE_COMPONENT_H SingleImageComponent * sagittalSlices
Definition: ImageComponent.h:268
QTableView * selectionView
Tab displaying data selected point in the property explorer.
Definition: ImageComponent.h:299
Exception class to handle abortion in component instanciation.
Definition: AbortException.h:43
vtkSmartPointer< vtkTransform > initialFrameTransform
The initial frame of the image at opening.
Definition: ImageComponent.h:316
QStandardItemModel * model
Model to display data.
Definition: ImageComponent.h:302
MeshComponent * volumeRenderingChild
When an action computes volume rendering for an image, it stores the corresponding actor as a prop of...
Definition: ImageComponent.h:274
ImageOrientationHelper::PossibleImageOrientations getInitialOrientation() const
Get the initial image orientation.
Definition: ImageComponent.h:110
This Component manages a set of images, destined to be seen in a single orientation only (axial OR sa...
Definition: SingleImageComponent.h:55
Definition: Action.cpp:40
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:51
virtual void initRepresentation()
the concrete building of the 3D objects (Slice/Geometry): none in this case!
Definition: ImageComponent.h:250
SingleImageComponent * axialSlices
Definition: ImageComponent.h:267
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:299
vtkSmartPointer< vtkMatrix4x4 > rotationMatrix
The rotation matrix, that might have been altered by the user Will be saved in header file informatio...
Definition: ImageComponent.h:320
#define CAMITK_API
Definition: CamiTKAPI.h:49
ImageOrientationHelper::PossibleImageOrientations initialOrientation
Initial image orientation.
Definition: ImageComponent.h:305
The manager of the Image Volume data.
Definition: ImageComponent.h:69
PossibleImageOrientations
For each axis (x, y or z), 6 possibilities:
Definition: ImageOrientationHelper.h:52
const vtkSmartPointer< vtkMatrix4x4 > getRotationMatrix()
Definition: ImageComponent.h:217
Direct Orientations X: Right to Left, Y: Anterior to Posterior, Z: Inferior to Superiror.
Definition: ImageOrientationHelper.h:55
vtkSmartPointer< vtkTransform > initialImageDataTransform
The initial transform to the vtkImageData.
Definition: ImageComponent.h:310
SingleImageComponent * coronalSlices
Definition: ImageComponent.h:269
vtkSmartPointer< vtkImageData > originalImageData
the core Image Volume that is managed here
Definition: ImageComponent.h:265
vtkSmartPointer< vtkImageData > getImageData() const
get the image volume managed by this Component
Definition: ImageComponent.h:98
SingleImageComponent * arbitrarySlices
Definition: ImageComponent.h:270
vtkSmartPointer< vtkWindowLevelLookupTable > lut
the current lookup table
Definition: ImageComponent.h:277