13 #ifndef mitkDoseImageVtkMapper2D_h
14 #define mitkDoseImageVtkMapper2D_h
26 #include <vtkSmartPointer.h>
27 #include <vtkPropAssembly.h>
28 #include <vtkCellArray.h>
31 class vtkPolyDataMapper;
35 class vtkImageExtractComponents;
36 class vtkImageReslice;
37 class vtkImageChangeInformation;
41 class vtkMitkApplyLevelWindowToRGBFilter;
119 itkFactorylessNewMacro(Self);
Organizes the rendering process.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Internal class holding the mapper, actor, etc. for each of the 3 2D render windows.
vtkSmartPointer< vtkLookupTable > m_ColorLookupTable
vtkSmartPointer< vtkTexture > m_Texture
The texture which is used to render the current slice.
~LocalStorage() override
Default deconstructor of the local storage.
mitk::ScalarType * m_mmPerPixel
mmPerPixel relation between pixel and mm. (World spacing).
vtkSmartPointer< vtkImageExtractComponents > m_VectorComponentExtractor
vtkSmartPointer< vtkPlaneSource > m_Plane
Plane on which the slice is rendered as texture.
vtkSmartPointer< vtkImageData > m_ReslicedImage
Current slice of a 2D render window.
vtkSmartPointer< vtkActor > m_Actor
Actor of a 2D render window.
vtkSmartPointer< vtkPolyDataMapper > m_Mapper
Mapper of a 2D render window.
LocalStorage()
Default constructor of the local storage.
vtkSmartPointer< vtkLookupTable > m_BinaryLookupTable
mitk::ExtractSliceFilter::Pointer m_Reslicer
The actual reslicer (one per renderer)
vtkSmartPointer< vtkMitkLevelWindowFilter > m_LevelWindowFilter
This filter is used to apply the level window to Grayvalue and RBG(A) images.
vtkSmartPointer< vtkPolyData > m_EmptyPolyData
Empty vtkPolyData that is set when rendering geometry does not intersect the image geometry.
itk::TimeStamp m_LastUpdateTime
Timestamp of last update of stored data.
vtkSmartPointer< vtkLookupTable > m_DefaultLookupTable
The lookuptables for colors and level window.
vtkSmartPointer< vtkPropAssembly > m_Actors
vtkSmartPointer< vtkPolyData > m_OutlinePolyData
PolyData object containing all lines/points needed for outlining the contour. This container is used ...
vtkSmartPointer< vtkMitkThickSlicesFilter > m_TSFilter
Filter for thick slices.
Mapper to resample and display 2D slices of a 3D image.
void TransformActor(mitk::BaseRenderer *renderer)
Transforms the actor to the actual position in 3D.
void ApplyLevelWindow(mitk::BaseRenderer *renderer)
ApplyLevelWindow Apply the level window for the given renderer.
void ApplyLookuptable(mitk::BaseRenderer *renderer)
This method applies (or modifies) the lookuptable for all types of images.
vtkSmartPointer< vtkPolyData > CreateOutlinePolyData(mitk::BaseRenderer *renderer)
Generates a vtkPolyData object containing the outline of a given binary slice.
void ApplyColor(mitk::BaseRenderer *renderer)
Set the color of the image/polydata.
const mitk::Image * GetInput(void)
Get the input Image to be mapped.
void ApplyOpacity(mitk::BaseRenderer *renderer)
Set the opacity of the actor.
vtkProp * GetVtkProp(mitk::BaseRenderer *renderer) override
Returns the VTK prop assembly used for rendering in the given renderer.
mitk::LocalStorageHandler< LocalStorage > m_LSH
The LocalStorageHandler holds all (three) LocalStorages for the three 2D render windows.
float CalculateLayerDepth(mitk::BaseRenderer *renderer)
This method uses the vtkCamera clipping range and the layer property to calculate the depth of the ob...
void ApplyRenderingMode(mitk::BaseRenderer *renderer)
Switches between different rendering modes (e.g. lookup table or transfer function).
void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override
Does the actual resampling, without rendering the image yet. All the data is generated inside this me...
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
Set the default properties for dose image rendering on a DataNode.
~DoseImageVtkMapper2D() override
void ApplyColorTransferFunction(mitk::BaseRenderer *renderer)
This method applies a color transfer function. Internally, a vtkColorTransferFunction is used....
void GeneratePlane(mitk::BaseRenderer *renderer, double planeBounds[6])
Generates a plane according to the size of the resliced image in millimeters.
void Update(mitk::BaseRenderer *renderer) override
Checks whether this mapper needs to update itself and generate data.
mitkClassMacro(DoseImageVtkMapper2D, VtkMapper)
bool RenderingGeometryIntersectsImage(const PlaneGeometry *renderingGeometry, SlicedGeometry3D *imageGeometry)
Calculates whether the given rendering geometry intersects the given SlicedGeometry3D.
LocalStorage * GetLocalStorage(mitk::BaseRenderer *renderer)
Get the LocalStorage corresponding to the current renderer.
Image class for storing multi-dimensional medical image data.
Stores values needed for the representation/visualization of dose iso levels.
Base class for mapper-specific rendering resources.
Describes the geometry of a plane object.
Describes the geometry of a data object consisting of slices.
Base class of all VTK-based Mappers for displaying primitives using VTK functionality.
Applies the gray-value or color/opacity level window to scalar or RGB(A) images.
Computes a thick slice projection from a 3D image stack.
Find image slices visible on a given plane.
double ScalarType
Scalar type used throughout MITK for geometric computations.