23 #include <itkObject.h>
24 #include <itkWeakPointer.h>
Organizes the rendering process.
Central node class of the MITK data tree, associating a data object with properties and mappers.
Base class for mapper-specific rendering resources.
itk::TimeStamp & GetLastGenerateDataTime()
Get a reference to the last-generate-data timestamp.
BaseLocalStorage(const BaseLocalStorage &)=delete
itk::TimeStamp m_LastGenerateDataTime
Timestamp of last update of stored data.
bool IsGenerateDataRequired(mitk::BaseRenderer *renderer, mitk::Mapper *mapper, mitk::DataNode *dataNode) const
Check whether GenerateDataForRenderer() needs to be called.
void UpdateGenerateDataTime()
Mark the stored data as up-to-date.
virtual ~BaseLocalStorage()=default
BaseLocalStorage & operator=(const BaseLocalStorage &)=delete
BaseLocalStorage()=default
Base class of all mappers, Vtk as well as OpenGL mappers.
virtual void GenerateDataForRenderer(BaseRenderer *)
Generate the data needed for rendering into renderer.
virtual void ResetMapper(BaseRenderer *)
Reset the mapper (i.e., make sure that nothing is displayed) if no valid data is present....
mitkClassMacroItkParent(Mapper, itk::Object)
virtual void MitkRender(mitk::BaseRenderer *renderer, mitk::VtkPropRenderer::RenderType type)=0
Responsible for calling the appropriate render functions.
virtual void Update(BaseRenderer *renderer)
Calculate the time step for the current renderer and generate rendering data.
virtual bool IsLODEnabled(BaseRenderer *) const
Return whether this Mapper currently allows for Level-of-Detail rendering.
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=nullptr, bool overwrite=false)
Set default values of properties used by this mapper on the given node.
mitk::DataNode * m_DataNode
virtual DataNode * GetDataNode() const
Get the DataNode containing the data to map.
Mapper()
explicit constructor which disallows implicit conversions
virtual void CalculateTimeStep(BaseRenderer *renderer)
Updates the time step, which is sometimes needed in subclasses.
virtual void ApplyColorAndOpacityProperties(mitk::BaseRenderer *renderer, vtkActor *actor=nullptr)=0
Apply color and opacity properties read from the PropertyList to the rendering actor.
~Mapper() override
virtual destructor in order to derive from this class
TimeStepType GetTimestep() const
Return the current time step as calculated from the renderer.
RenderType
Enumeration of render pass types.
Find image slices visible on a given plane.
std::size_t TimeStepType
Type for time step indices (non-negative integers starting from 0).