Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Public Attributes | List of all members
camitk::InterfaceBitMap Class Referenceabstract

This class describes what are the methods to implement for a BitMap. More...

#include <InterfaceBitMap.h>

Inherited by camitk::Component, and camitk::Slice.

Public Member Functions

virtual bool addProp (const QString &, vtkSmartPointer< vtkProp >)=0
 insert an additional prop, defining it by its name (default visibility = false) More...
 
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 unsigned int getNumberOfProp () const =0
 return the number of additional prop 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 vtkSmartPointer< vtkProp > getProp (const QString &)=0
 Return the vtkProp (actors, volumes and annotations) corresponding to the given name. More...
 
virtual vtkSmartPointer< vtkProp > getProp (unsigned int)=0
 return an additional prop by its index More...
 
virtual int getSlice () const =0
 Return the index of the current displayed slice. More...
 
virtual void pixelPicked (double, double, double)=0
 Return 2D Axes at the proper slice origin. More...
 
virtual bool removeProp (const QString &)=0
 remove a given additional prop. 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 (int s)=0
 Set the current slice index. 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 updatePickPlane ()=0
 
virtual ~InterfaceBitMap ()=default
 virtual destructor More...
 

Public Attributes

QMap< QString, vtkSmartPointer< vtkProp > > extraProp
 The additional map for prop (include at least "label" and "glyph". More...
 

Detailed Description

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

See also
Slice

Constructor & Destructor Documentation

◆ ~InterfaceBitMap()

virtual camitk::InterfaceBitMap::~InterfaceBitMap ( )
virtualdefault

virtual destructor

Member Function Documentation

◆ addProp()

virtual bool camitk::InterfaceBitMap::addProp ( const QString &  ,
vtkSmartPointer< vtkProp >   
)
pure virtual

insert an additional prop, defining it by its name (default visibility = false)

Returns
true if the additional prop was added (i.e. another additional prop of the same name does not exist)

Implemented in camitk::Component, and camitk::Slice.

◆ get2DImageActor()

virtual vtkSmartPointer<vtkImageActor> camitk::InterfaceBitMap::get2DImageActor ( ) const
pure virtual

Return the vtkImageActor (vtkProp) representing a slice to be displayed in 2D viewers.

Implemented in camitk::Slice.

Referenced by camitk::InteractiveViewer::keyPressEvent(), camitk::InteractiveViewer::refresh(), and camitk::InteractiveViewer::toggleInterpolation().

◆ get3DImageActor()

virtual vtkSmartPointer<vtkImageActor> camitk::InterfaceBitMap::get3DImageActor ( ) const
pure virtual

Return the vtkImageActor (vtkProp) representing a slice to be displayed in 3D viewers.

Implemented in camitk::Slice.

◆ getImageData()

virtual vtkSmartPointer<vtkImageData> camitk::InterfaceBitMap::getImageData ( ) const
pure virtual

Returns the encapsultaed data structure: the image as a vtkImageData.

Implemented in camitk::Slice, and camitk::ImageComponent.

Referenced by camitk::SingleImageComponent::initRepresentation().

◆ getNumberOfColors()

virtual int camitk::InterfaceBitMap::getNumberOfColors ( ) const
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.

◆ getNumberOfProp()

virtual unsigned int camitk::InterfaceBitMap::getNumberOfProp ( ) const
pure virtual

return the number of additional prop

Implemented in camitk::Component, and camitk::Slice.

◆ getNumberOfSlices()

virtual int camitk::InterfaceBitMap::getNumberOfSlices ( ) const
pure virtual

◆ getPickPlaneActor()

virtual vtkSmartPointer<vtkActor> camitk::InterfaceBitMap::getPickPlaneActor ( ) const
pure virtual

Return the vtkActor used to pick pixels in the slices.

Implemented in camitk::Slice.

Referenced by camitk::InteractiveViewer::keyPressEvent(), and camitk::InteractiveViewer::refresh().

◆ getPixelActor()

virtual vtkSmartPointer<vtkActor> camitk::InterfaceBitMap::getPixelActor ( )
pure virtual

Return the vtkActor used to pick pixels in the slices.

Implemented in camitk::Slice.

◆ getProp() [1/2]

virtual vtkSmartPointer<vtkProp> camitk::InterfaceBitMap::getProp ( const QString &  )
pure virtual

Return the vtkProp (actors, volumes and annotations) corresponding to the given name.

Implemented in camitk::Component, and camitk::Slice.

◆ getProp() [2/2]

virtual vtkSmartPointer<vtkProp> camitk::InterfaceBitMap::getProp ( unsigned  int)
pure virtual

return an additional prop by its index

Implemented in camitk::Component, and camitk::Slice.

◆ getSlice()

virtual int camitk::InterfaceBitMap::getSlice ( ) const
pure virtual

Return the index of the current displayed slice.

Implemented in camitk::Component, and camitk::Slice.

Referenced by camitk::Component::getSlice().

◆ pixelPicked()

virtual void camitk::InterfaceBitMap::pixelPicked ( double  ,
double  ,
double   
)
pure virtual

Return 2D Axes at the proper slice origin.

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, and camitk::SingleImageComponent.

Referenced by camitk::InteractiveViewer::picked().

◆ removeProp()

virtual bool camitk::InterfaceBitMap::removeProp ( const QString &  )
pure virtual

remove a given additional prop.

Returns
true if effictively done

Implemented in camitk::Component, and camitk::Slice.

◆ setImageWorldTransform()

virtual void camitk::InterfaceBitMap::setImageWorldTransform ( vtkSmartPointer< vtkTransform >  )
pure virtual

set the transformation for 3D image representation

Implemented in camitk::Slice.

Referenced by camitk::SingleImageComponent::initRepresentation().

◆ setOriginalVolume()

virtual void camitk::InterfaceBitMap::setOriginalVolume ( vtkSmartPointer< vtkImageData >  )
pure virtual

set the original volume image data (the source vtkImageData before any reslice) and refresh the vtk pipeline

Implemented in camitk::Slice.

◆ setPixelRealPosition()

virtual void camitk::InterfaceBitMap::setPixelRealPosition ( double  ,
double  ,
double   
)
pure virtual

move the pixel selection green indicator (pixelActor) to the given real position

Implemented in camitk::Slice.

◆ setSlice() [1/2]

virtual void camitk::InterfaceBitMap::setSlice ( int  s)
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.

Parameters
sthe index of the slice to display (base 0).

Implemented in camitk::Slice.

◆ setSlice() [2/2]

virtual void camitk::InterfaceBitMap::setSlice ( double  x,
double  y,
double  z 
)
pure virtual

Set the slice corresponding to the given image coordinates (in RAI convention)

Implemented in camitk::Slice.

◆ updatePickPlane()

virtual void camitk::InterfaceBitMap::updatePickPlane ( )
pure virtual

Implemented in camitk::Slice.

Member Data Documentation

◆ extraProp

QMap<QString, vtkSmartPointer<vtkProp> > camitk::InterfaceBitMap::extraProp

The additional map for prop (include at least "label" and "glyph".


The documentation for this class was generated from the following file: