18 #ifndef COMPOSITEMAPPER_H_HEADER_INCLUDED
19 #define COMPOSITEMAPPER_H_HEADER_INCLUDED
34 itkFactorylessNewMacro(
Self)
48 itkFactorylessNewMacro(
Self)
53 m_ImgMapper->MitkRenderOverlay(renderer);
54 m_OdfMapper->MitkRenderOverlay(renderer);
59 m_ImgMapper->MitkRenderOpaqueGeometry(renderer);
60 m_OdfMapper->MitkRenderOpaqueGeometry(renderer);
69 m_ImgMapper->MitkRenderTranslucentGeometry(renderer);
70 m_OdfMapper->MitkRenderTranslucentGeometry(renderer);
75 m_ImgMapper->MitkRenderVolumetricGeometry(renderer);
76 m_OdfMapper->MitkRenderVolumetricGeometry(renderer);
82 m_ImgMapper->SetDataNode(node);
83 m_OdfMapper->SetDataNode(node);
94 return m_OdfMapper->HasVtkProp(prop, renderer);
99 m_ImgMapper->ReleaseGraphicsResources(renderer);
100 m_OdfMapper->ReleaseGraphicsResources(renderer);
117 return m_ImgMapper->IsLODEnabled(renderer) || m_OdfMapper->IsLODEnabled(renderer);
123 assembly->AddPart( m_OdfMapper->GetVtkProp(renderer));
124 assembly->AddPart( m_ImgMapper->GetVtkProp(renderer));
132 m_OdfMapper->Update(renderer);
138 m_ImgMapper->GenerateDataForRenderer(renderer);
void SetWindowBounds(ScalarType lowerBound, ScalarType upperBound, bool expandRangesIfNecessary=true)
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=NULL, bool overwrite=false)
Set the default properties for general image rendering.
virtual void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override
Generate the data needed for rendering into renderer.
void ReleaseGraphicsResources(mitk::BaseRenderer *renderer) override
Release vtk-based graphics resources that are being consumed by this mapper.
mitk::ImageVtkMapper2D::Pointer GetImageMapper()
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=NULL, bool overwrite=false)
vtkProp * GetVtkProp(mitk::BaseRenderer *renderer) override
void SetDataNode(DataNode *node) override
Set the DataNode containing the data to map.
bool IsLODEnabled(BaseRenderer *renderer) const override
virtual void MitkRenderTranslucentGeometry(BaseRenderer *renderer) override
Checks visiblity and renders transparent geometry.
Organizes the rendering process.
DataCollection - Class to facilitate loading/accessing structured data.
Base class of all Vtk Mappers in order to display primitives by exploiting Vtk functionality.
Base class of all mappers, Vtk as well as OpenGL mappers.
bool HasVtkProp(const vtkProp *prop, BaseRenderer *renderer) override
Returns true if this mapper owns the specified vtkProp for the given BaseRenderer.
virtual void MitkRenderVolumetricGeometry(BaseRenderer *renderer) override
Checks visibility and renders volumes.
void SetRangeMinMax(ScalarType min, ScalarType max)
The LevelWindow class Class to store level/window values.
Composite pattern for combination of different mappers.
Mapper to resample and display 2D slices of a 3D image.
void AddProperty(const char *propertyKey, BaseProperty *property, const mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
Add the property (instance of BaseProperty) if it does not exist (or always ifoverwrite istrue) with ...
virtual void MitkRenderOverlay(BaseRenderer *renderer)
Checks visibility and renders the overlay.
virtual void GenerateDataForRenderer(mitk::BaseRenderer *renderer) override
Does the actual resampling, without rendering the image yet. All the data is generated inside this me...
static RenderingManager * GetInstance()
mitk::DataNode * m_DataNode
virtual void Update(mitk::BaseRenderer *renderer) override
Calls the time step of the input data for the specified renderer and checks whether the time step is ...
friend class CompositeMapper
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=NULL, bool overwrite=false)
virtual void MitkRenderOpaqueGeometry(BaseRenderer *renderer) override
Checks visibility and renders untransparent geometry.
mitkClassMacro(CopyImageMapper2D, ImageVtkMapper2D)
Class for nodes of the DataTree.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.