This class describes what are the methods to implement for a BitMap. More...
#include <InterfaceBitMap.h>
Public Member Functions | |
virtual vtkSmartPointer< vtkImageActor > | get2DImageActor () const =0 |
Return the vtkImageActor (vtkProp) representing a slice to be displayed in 2D viewers. More... | |
virtual vtkSmartPointer< vtkImageActor > | get3DImageActor () const =0 |
Return the vtkImageActor (vtkProp) representing a slice to be displayed in 3D viewers. More... | |
virtual vtkSmartPointer< vtkImageData > | getImageData () const =0 |
Returns the encapsultaed data structure: the image as a vtkImageData. More... | |
virtual int | getNumberOfColors () const =0 |
Return the number of colors in the images. More... | |
virtual int | getNumberOfSlices () const =0 |
Return the number of slices in the image data set. More... | |
virtual vtkSmartPointer< vtkActor > | getPickPlaneActor () const =0 |
Return the vtkActor used to pick pixels in the slices. More... | |
virtual vtkSmartPointer< vtkActor > | getPixelActor ()=0 |
Return the vtkActor used to pick pixels in the slices. More... | |
virtual int | getSlice () const =0 |
Return the index of the current displayed slice. More... | |
virtual void | pixelPicked (double, double, double)=0 |
This method is called when the associated plane has been picked in the InteractiveViewer, the given coordinates is position where the plane was picked. More... | |
virtual void | setArbitraryTransform (vtkSmartPointer< vtkTransform >)=0 |
Set the pointer to the image transformation. More... | |
virtual void | setImageWorldTransform (vtkSmartPointer< vtkTransform >)=0 |
set the transformation for 3D image representation More... | |
virtual void | setOriginalVolume (vtkSmartPointer< vtkImageData >)=0 |
set the original volume image data (the source vtkImageData before any reslice) and refresh the vtk pipeline More... | |
virtual void | setPixelRealPosition (double, double, double)=0 |
move the pixel selection green indicator (pixelActor) to the given real position More... | |
virtual void | setSlice (double x, double y, double z)=0 |
Set the slice corresponding to the given image coordinates (in RAI convention) More... | |
virtual void | setSlice (int s)=0 |
Set the current slice index. More... | |
virtual void | updatePickPlane ()=0 |
update the position of the plane surrounding the currently selected slice More... | |
virtual | ~InterfaceBitMap ()=default |
virtual destructor More... | |
manage extra prop associated with an InterfaceBitMap | |
TODO
| |
virtual vtkSmartPointer< vtkProp > | getProp (const QString &)=0 |
Return the vtkProp (actors, volumes and annotations) corresponding to the given name. More... | |
virtual unsigned int | getNumberOfProp () const =0 |
return the number of additional prop More... | |
virtual vtkSmartPointer< vtkProp > | getProp (unsigned int)=0 |
return an additional prop by its index More... | |
virtual bool | addProp (const QString &, vtkSmartPointer< vtkProp >)=0 |
insert an additional prop, defining it by its name (default visibility = false) More... | |
virtual bool | removeProp (const QString &)=0 |
remove a given additional prop. More... | |
This class describes what are the methods to implement for a BitMap.
An InterfaceBitMap is a kind of simplifier/wrapper for vtkImageData.
This class defines an "interface" (in the OOP/java meaning of the term). See the introduction of GoF: "Program to an interface, not an implementation." To see what Erich Gamma has to say about it: http://www.artima.com/lejava/articles/designprinciplesP.html To see what Bjarne Stroustrup has to say about it: http://www.artima.com/intv/modern.html
|
virtualdefault |
virtual destructor
|
pure virtual |
insert an additional prop, defining it by its name (default visibility = false)
Implemented in camitk::Component, and camitk::Slice.
|
pure virtual |
Return the vtkImageActor (vtkProp) representing a slice to be displayed in 2D viewers.
Implemented in camitk::Slice.
|
pure virtual |
Return the vtkImageActor (vtkProp) representing a slice to be displayed in 3D viewers.
Implemented in camitk::Slice.
Referenced by camitk::InteractiveViewer::refresh().
|
pure virtual |
Returns the encapsultaed data structure: the image as a vtkImageData.
Implemented in camitk::Slice, and camitk::ImageComponent.
|
pure virtual |
Return the number of colors in the images.
If color is coded on 1 byte, the images are on 256 grey level. If color is coded on 2 bytes, the images are on 4096 grey level (not 65536).
Implemented in camitk::Slice, and camitk::ImageComponent.
|
pure virtual |
return the number of additional prop
Implemented in camitk::Slice, and camitk::Component.
|
pure virtual |
Return the number of slices in the image data set.
Implemented in camitk::Slice, camitk::ImageComponent, and camitk::ArbitrarySingleImageComponent.
Referenced by camitk::ImageComponent::getNumberOfSlices(), and camitk::InteractiveViewer::refresh().
|
pure virtual |
Return the vtkActor used to pick pixels in the slices.
Implemented in camitk::Slice.
|
pure virtual |
Return the vtkActor used to pick pixels in the slices.
Implemented in camitk::Slice.
Referenced by camitk::InteractiveViewer::refresh(), camitk::ArbitrarySingleImageComponent::setTransformRotation(), and camitk::ArbitrarySingleImageComponent::setTransformTranslation().
|
pure virtual |
Return the vtkProp (actors, volumes and annotations) corresponding to the given name.
Implemented in camitk::Slice.
|
pure virtual |
return an additional prop by its index
Implemented in camitk::Slice, and camitk::Component.
|
pure virtual |
Return the index of the current displayed slice.
Implemented in camitk::Slice, camitk::ArbitrarySingleImageComponent, and camitk::Component.
Referenced by camitk::Component::getSlice().
|
pure virtual |
This method is called when the associated plane has been picked in the InteractiveViewer, the given coordinates is position where the plane was picked.
Implemented in camitk::Slice, camitk::SingleImageComponent, camitk::ArbitrarySingleImageComponent, and camitk::ImageComponent.
|
pure virtual |
remove a given additional prop.
Implemented in camitk::Component, and camitk::Slice.
|
pure virtual |
Set the pointer to the image transformation.
this should be done once, at initialization, using the frame transformation (getTransform)
Implemented in camitk::Slice.
Referenced by camitk::ArbitrarySingleImageComponent::ArbitrarySingleImageComponent(), and camitk::ArbitrarySingleImageComponent::setTransform().
|
pure virtual |
set the transformation for 3D image representation
Implemented in camitk::Slice.
Referenced by camitk::SingleImageComponent::initRepresentation().
|
pure virtual |
set the original volume image data (the source vtkImageData before any reslice) and refresh the vtk pipeline
Implemented in camitk::Slice.
|
pure virtual |
move the pixel selection green indicator (pixelActor) to the given real position
Implemented in camitk::Slice.
Referenced by camitk::ArbitrarySingleImageComponent::setSlice().
|
pure virtual |
Set the slice corresponding to the given image coordinates (in RAI convention)
Implemented in camitk::ArbitrarySingleImageComponent, and camitk::Slice.
|
pure virtual |
Set the current slice index.
If the slice index is less than the first slice index, the first slice is displayed. If the slice index is more than the last slice index, the last slice is displayed.
s | the index of the slice to display (base 0). |
Implemented in camitk::ArbitrarySingleImageComponent, and camitk::Slice.
|
pure virtual |
update the position of the plane surrounding the currently selected slice
Implemented in camitk::Slice.
Referenced by camitk::ArbitrarySingleImageComponent::setTransformRotation(), and camitk::ArbitrarySingleImageComponent::setTransformTranslation().