Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitk::BaseRenderer Class Referenceabstract

#include <mitkBaseRenderer.h>

Inheritance diagram for mitk::BaseRenderer:
Collaboration diagram for mitk::BaseRenderer:

Public Types

enum  StandardMapperSlot { Standard2D, Standard3D }
 Defines which kind of mapper (e.g. 2D or 3D) should be used. More...
 
typedef std::map< vtkRenderWindow *, BaseRenderer * > BaseRendererMapType
 
typedef BaseRenderer Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

virtual std::vector< std::string > GetClassHierarchy () const
 
virtual const char * GetClassName () const
 
 BaseRenderer (const char *name=nullptr, vtkRenderWindow *renderWindow=nullptr)
 
void RemoveAllLocalStorages ()
 
void RegisterLocalStorageHandler (BaseLocalStorageHandler *lsh)
 
void UnregisterLocalStorageHandler (BaseLocalStorageHandler *lsh)
 
virtual void SetDataStorage (DataStorage *storage)
 
virtual DataStorage::Pointer GetDataStorage () const
 
vtkRenderWindow * GetRenderWindow () const
 
vtkRenderer * GetVtkRenderer () const
 
Dispatcher::Pointer GetDispatcher () const
 Get the dispatcher, which handles events for this base renderer. More...
 
virtual void Resize (int w, int h)
 Set a new size for the render window. More...
 
virtual void InitRenderer (vtkRenderWindow *renderwindow)
 Initialize the base renderer with a vtk render window. Set the new renderer for the camera controller. More...
 
virtual void InitSize (int w, int h)
 Set the initial size for the render window. More...
 
virtual void DrawOverlayMouse (Point2D &)
 
virtual void SetWorldTimeGeometry (const TimeGeometry *geometry)
 Set the world time geometry using the given TimeGeometry. More...
 
virtual const TimeGeometryGetWorldTimeGeometry ()
 
virtual void SetInteractionReferenceGeometry (const TimeGeometry *geometry)
 Set the interaction reference world time geometry using the given TimeGeometry. More...
 
virtual const TimeGeometryGetInteractionReferenceGeometry ()
 Get the current interaction reference geometry. More...
 
virtual bool GetReferenceGeometryAligned ()
 Return if the reference geometry aligns with the base renderer's world geometry. If true, the interaction reference geometry aligns with the base renderer's current world geometry. False otherwise. More...
 
virtual const BaseGeometryGetCurrentWorldGeometry ()
 Get the current time-extracted 3D-geometry. More...
 
virtual const PlaneGeometryGetCurrentWorldPlaneGeometry ()
 Get the current slice-extracted 2D-geometry. More...
 
virtual bool SetWorldGeometryToDataStorageBounds ()
 
virtual void SetSlice (unsigned int slice)
 Set the slice that should be used for geometry extraction. More...
 
virtual unsigned int GetSlice () const
 
virtual void SetTimeStep (unsigned int timeStep)
 Set the timestep that should be used for geometry extraction. More...
 
virtual unsigned int GetTimeStep () const
 
TimeStepType GetTimeStep (const BaseData *data) const
 Get the timestep of a BaseData object which exists at the time of the currently displayed content. More...
 
ScalarType GetTime () const
 Get the time in ms of the currently display content (geometry). More...
 
virtual void SetGeometry (const itk::EventObject &geometrySliceEvent)
 Set the world time geometry using the geometry of the given event. More...
 
virtual void UpdateGeometry (const itk::EventObject &geometrySliceEvent)
 Set the current world plane geometry using the existing current world geometry. More...
 
virtual void SetGeometrySlice (const itk::EventObject &geometrySliceEvent)
 Set the current slice using "SetSlice" and update the current world geometry and the current world plane geometry. More...
 
virtual void SetGeometryTime (const itk::EventObject &geometryTimeEvent)
 Set the current time using "SetTimeStep" and update the current world geometry and the current world plane geometry. More...
 
virtual DataNodeGetCurrentWorldPlaneGeometryNode ()
 
void SendUpdateSlice ()
 Modify the update time of the current world plane geometry and force reslicing. More...
 
virtual unsigned long GetCurrentWorldPlaneGeometryUpdateTime ()
 Get timestamp of the update time of the current world plane geometry. More...
 
virtual unsigned long GetTimeStepUpdateTime ()
 Get timestamp of the update time of the current timestep. More...
 
virtual void PickWorldPoint (const Point2D &diplayPosition, Point3D &worldPosition) const =0
 Pick a world coordinate (x,y,z) given a display coordinate (x,y). More...
 
virtual DataNodePickObject (const Point2D &, Point3D &) const
 Determines the object (mitk::DataNode) closest to the current position by means of picking. More...
 
virtual MapperSlotId GetMapperID ()
 Get the currently used mapperID. More...
 
virtual MapperSlotId GetMapperID () const
 
virtual void SetMapperID (MapperSlotId id)
 Set the used mapperID. More...
 
virtual int * GetSize () const
 
virtual int * GetViewportSize () const
 
void SetSliceNavigationController (SliceNavigationController *SlicenavigationController)
 
virtual CameraControllerGetCameraController ()
 
virtual SliceNavigationControllerGetSliceNavigationController ()
 
virtual CameraRotationControllerGetCameraRotationController ()
 
virtual bool GetEmptyWorldGeometry ()
 
virtual bool GetKeepDisplayedRegion ()
 Getter/Setter for defining if the displayed region should be shifted or rescaled if the render window is resized. More...
 
virtual void SetKeepDisplayedRegion (bool _arg)
 
const char * GetName () const
 Return the name of the base renderer. More...
 
int GetSizeX () const
 Return the size in x-direction of the base renderer. More...
 
int GetSizeY () const
 Return the size in y-direction of the base renderer. More...
 
const double * GetBounds () const
 Return the bounds of the bounding box of the current world geometry (time-extracted 3D-geometry). More...
 
void RequestUpdate ()
 
void ForceImmediateUpdate ()
 
unsigned int GetNumberOfVisibleLODEnabledMappers () const
 Return the number of mappers which are visible and have level-of-detail rendering enabled. More...
 
void DisplayToWorld (const Point2D &displayPoint, Point3D &worldIndex) const
 Convert a display point to the 3D world index using the geometry of the renderWindow. More...
 
void DisplayToPlane (const Point2D &displayPoint, Point2D &planePointInMM) const
 Convert a display point to the 2D world index, mapped onto the display plane using the geometry of the renderWindow. More...
 
void WorldToDisplay (const Point3D &worldIndex, Point2D &displayPoint) const
 Convert a 3D world index to the display point using the geometry of the renderWindow. More...
 
void WorldToView (const Point3D &worldIndex, Point2D &viewPoint) const
 Convert a 3D world index to the point on the viewport using the geometry of the renderWindow. More...
 
void PlaneToDisplay (const Point2D &planePointInMM, Point2D &displayPoint) const
 Convert a 2D plane coordinate to the display point using the geometry of the renderWindow. More...
 
void PlaneToView (const Point2D &planePointInMM, Point2D &viewPoint) const
 Convert a 2D plane coordinate to the point on the viewport using the geometry of the renderWindow. More...
 
double GetScaleFactorMMPerDisplayUnit () const
 
Point2D GetDisplaySizeInMM () const
 
Point2D GetViewportSizeInMM () const
 
Point2D GetOriginInMM () const
 
virtual bool GetConstrainZoomingAndPanning () const
 
virtual void SetConstrainZoomingAndPanning (bool constrain)
 

Static Public Member Functions

static BaseRendererGetInstance (vtkRenderWindow *renderWindow)
 
static void AddInstance (vtkRenderWindow *renderWindow, BaseRenderer *baseRenderer)
 
static void RemoveInstance (vtkRenderWindow *renderWindow)
 
static BaseRendererGetByName (const std::string &name)
 
static vtkRenderWindow * GetRenderWindowByName (const std::string &name)
 
static BaseRendererMapType GetSpecificRenderWindows (MapperSlotId mapper)
 Get a map of specific RenderWindows. More...
 
static BaseRendererMapType GetAll2DRenderWindows ()
 Convenience function: Get a map of all 2D RenderWindows. More...
 
static BaseRendererMapType GetAll3DRenderWindows ()
 Convenience function: Get a map of all 3D RenderWindows. More...
 
static const char * GetStaticNameOfClass ()
 

Static Public Attributes

static BaseRendererMapType baseRendererMap
 

Protected Types

typedef std::set< Mapper * > LODEnabledMappersType
 

Protected Member Functions

 ~BaseRenderer () override
 
virtual void Update ()=0
 
void UpdateCurrentGeometries ()
 
virtual void SetCurrentWorldPlaneGeometry (const PlaneGeometry *geometry2d)
 
virtual void SetCurrentWorldGeometry (const BaseGeometry *geometry)
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 

Protected Attributes

vtkRenderWindow * m_RenderWindow
 
vtkRenderer * m_VtkRenderer
 
MapperSlotId m_MapperID
 
DataStorage::Pointer m_DataStorage
 
unsigned long m_LastUpdateTime
 
CameraController::Pointer m_CameraController
 
CameraRotationController::Pointer m_CameraRotationController
 
SliceNavigationController::Pointer m_SliceNavigationController
 
PlaneGeometryData::Pointer m_CurrentWorldPlaneGeometryData
 
DataNode::Pointer m_CurrentWorldPlaneGeometryNode
 
unsigned long m_CurrentWorldPlaneGeometryTransformTime
 
std::string m_Name
 
double m_Bounds [6]
 
bool m_EmptyWorldGeometry
 
unsigned int m_NumberOfVisibleLODEnabledMappers
 
std::list< BaseLocalStorageHandler * > m_RegisteredLocalStorageHandlers
 
bool m_ConstrainZoomingAndPanning
 

Detailed Description

Definition at line 56 of file mitkBaseRenderer.h.

Member Typedef Documentation

◆ BaseRendererMapType

typedef std::map<vtkRenderWindow*, BaseRenderer*> mitk::BaseRenderer::BaseRendererMapType

Definition at line 60 of file mitkBaseRenderer.h.

◆ ConstPointer

Definition at line 94 of file mitkBaseRenderer.h.

◆ LODEnabledMappersType

typedef std::set<Mapper*> mitk::BaseRenderer::LODEnabledMappersType
protected

Definition at line 496 of file mitkBaseRenderer.h.

◆ Pointer

◆ Self

Definition at line 94 of file mitkBaseRenderer.h.

◆ Superclass

typedef itk::Object mitk::BaseRenderer::Superclass

Definition at line 94 of file mitkBaseRenderer.h.

Member Enumeration Documentation

◆ StandardMapperSlot

Defines which kind of mapper (e.g. 2D or 3D) should be used.

Enumerator
Standard2D 
Standard3D 

Definition at line 66 of file mitkBaseRenderer.h.

Constructor & Destructor Documentation

◆ BaseRenderer()

mitk::BaseRenderer::BaseRenderer ( const char *  name = nullptr,
vtkRenderWindow *  renderWindow = nullptr 
)

◆ ~BaseRenderer()

mitk::BaseRenderer::~BaseRenderer ( )
overrideprotected

Member Function Documentation

◆ AddInstance()

static void mitk::BaseRenderer::AddInstance ( vtkRenderWindow *  renderWindow,
BaseRenderer baseRenderer 
)
static

◆ DisplayToPlane()

void mitk::BaseRenderer::DisplayToPlane ( const Point2D displayPoint,
Point2D planePointInMM 
) const

Convert a display point to the 2D world index, mapped onto the display plane using the geometry of the renderWindow.

◆ DisplayToWorld()

void mitk::BaseRenderer::DisplayToWorld ( const Point2D displayPoint,
Point3D worldIndex 
) const

Convert a display point to the 3D world index using the geometry of the renderWindow.

◆ DrawOverlayMouse()

virtual void mitk::BaseRenderer::DrawOverlayMouse ( Point2D )
inlinevirtual

Definition at line 140 of file mitkBaseRenderer.h.

References MITK_INFO.

◆ ForceImmediateUpdate()

void mitk::BaseRenderer::ForceImmediateUpdate ( )

◆ GetAll2DRenderWindows()

static BaseRendererMapType mitk::BaseRenderer::GetAll2DRenderWindows ( )
static

Convenience function: Get a map of all 2D RenderWindows.

◆ GetAll3DRenderWindows()

static BaseRendererMapType mitk::BaseRenderer::GetAll3DRenderWindows ( )
static

Convenience function: Get a map of all 3D RenderWindows.

◆ GetBounds()

const double* mitk::BaseRenderer::GetBounds ( ) const

Return the bounds of the bounding box of the current world geometry (time-extracted 3D-geometry).

If the geometry is empty, the bounds are set to zero.

◆ GetByName()

static BaseRenderer* mitk::BaseRenderer::GetByName ( const std::string &  name)
static

◆ GetCameraController()

virtual CameraController* mitk::BaseRenderer::GetCameraController ( )
virtual

◆ GetCameraRotationController()

virtual CameraRotationController* mitk::BaseRenderer::GetCameraRotationController ( )
virtual

◆ GetClassHierarchy()

virtual std::vector<std::string> mitk::BaseRenderer::GetClassHierarchy ( ) const
inlinevirtual

Reimplemented in mitk::VtkPropRenderer.

Definition at line 94 of file mitkBaseRenderer.h.

◆ GetClassName()

virtual const char* mitk::BaseRenderer::GetClassName ( ) const
virtual

Reimplemented in mitk::VtkPropRenderer.

◆ GetConstrainZoomingAndPanning()

virtual bool mitk::BaseRenderer::GetConstrainZoomingAndPanning ( ) const
virtual

◆ GetCurrentWorldGeometry()

virtual const BaseGeometry* mitk::BaseRenderer::GetCurrentWorldGeometry ( )
virtual

Get the current time-extracted 3D-geometry.

◆ GetCurrentWorldPlaneGeometry()

virtual const PlaneGeometry* mitk::BaseRenderer::GetCurrentWorldPlaneGeometry ( )
virtual

Get the current slice-extracted 2D-geometry.

◆ GetCurrentWorldPlaneGeometryNode()

virtual DataNode* mitk::BaseRenderer::GetCurrentWorldPlaneGeometryNode ( )
virtual

◆ GetCurrentWorldPlaneGeometryUpdateTime()

virtual unsigned long mitk::BaseRenderer::GetCurrentWorldPlaneGeometryUpdateTime ( )
virtual

Get timestamp of the update time of the current world plane geometry.

◆ GetDataStorage()

virtual DataStorage::Pointer mitk::BaseRenderer::GetDataStorage ( ) const
inlinevirtual

Definition at line 104 of file mitkBaseRenderer.h.

◆ GetDispatcher()

Dispatcher::Pointer mitk::BaseRenderer::GetDispatcher ( ) const

Get the dispatcher, which handles events for this base renderer.

◆ GetDisplaySizeInMM()

Point2D mitk::BaseRenderer::GetDisplaySizeInMM ( ) const

◆ GetEmptyWorldGeometry()

virtual bool mitk::BaseRenderer::GetEmptyWorldGeometry ( )
virtual

◆ GetInstance()

static BaseRenderer* mitk::BaseRenderer::GetInstance ( vtkRenderWindow *  renderWindow)
static

◆ GetInteractionReferenceGeometry()

virtual const TimeGeometry* mitk::BaseRenderer::GetInteractionReferenceGeometry ( )
virtual

Get the current interaction reference geometry.

◆ GetKeepDisplayedRegion()

virtual bool mitk::BaseRenderer::GetKeepDisplayedRegion ( )
virtual

Getter/Setter for defining if the displayed region should be shifted or rescaled if the render window is resized.

◆ GetMapperID() [1/2]

virtual MapperSlotId mitk::BaseRenderer::GetMapperID ( )
virtual

Get the currently used mapperID.

◆ GetMapperID() [2/2]

virtual MapperSlotId mitk::BaseRenderer::GetMapperID ( ) const
virtual

◆ GetName()

const char* mitk::BaseRenderer::GetName ( ) const
inline

Return the name of the base renderer.

Definition at line 326 of file mitkBaseRenderer.h.

◆ GetNumberOfVisibleLODEnabledMappers()

unsigned int mitk::BaseRenderer::GetNumberOfVisibleLODEnabledMappers ( ) const

Return the number of mappers which are visible and have level-of-detail rendering enabled.

◆ GetOriginInMM()

Point2D mitk::BaseRenderer::GetOriginInMM ( ) const

◆ GetReferenceGeometryAligned()

virtual bool mitk::BaseRenderer::GetReferenceGeometryAligned ( )
virtual

Return if the reference geometry aligns with the base renderer's world geometry. If true, the interaction reference geometry aligns with the base renderer's current world geometry. False otherwise.

◆ GetRenderWindow()

vtkRenderWindow* mitk::BaseRenderer::GetRenderWindow ( ) const
inline

Definition at line 109 of file mitkBaseRenderer.h.

◆ GetRenderWindowByName()

static vtkRenderWindow* mitk::BaseRenderer::GetRenderWindowByName ( const std::string &  name)
static

◆ GetScaleFactorMMPerDisplayUnit()

double mitk::BaseRenderer::GetScaleFactorMMPerDisplayUnit ( ) const

◆ GetSize()

virtual int* mitk::BaseRenderer::GetSize ( ) const
virtual

◆ GetSizeX()

int mitk::BaseRenderer::GetSizeX ( ) const
inline

Return the size in x-direction of the base renderer.

Definition at line 334 of file mitkBaseRenderer.h.

◆ GetSizeY()

int mitk::BaseRenderer::GetSizeY ( ) const
inline

Return the size in y-direction of the base renderer.

Definition at line 342 of file mitkBaseRenderer.h.

◆ GetSlice()

virtual unsigned int mitk::BaseRenderer::GetSlice ( ) const
virtual

◆ GetSliceNavigationController()

virtual SliceNavigationController* mitk::BaseRenderer::GetSliceNavigationController ( )
virtual

◆ GetSpecificRenderWindows()

static BaseRendererMapType mitk::BaseRenderer::GetSpecificRenderWindows ( MapperSlotId  mapper)
static

Get a map of specific RenderWindows.

◆ GetStaticNameOfClass()

static const char* mitk::BaseRenderer::GetStaticNameOfClass ( )
inlinestatic

Definition at line 94 of file mitkBaseRenderer.h.

◆ GetTime()

ScalarType mitk::BaseRenderer::GetTime ( ) const

Get the time in ms of the currently display content (geometry).

◆ GetTimeStep() [1/2]

virtual unsigned int mitk::BaseRenderer::GetTimeStep ( ) const
virtual

◆ GetTimeStep() [2/2]

TimeStepType mitk::BaseRenderer::GetTimeStep ( const BaseData data) const

Get the timestep of a BaseData object which exists at the time of the currently displayed content.

Returns -1 if there is no data at the current time.

◆ GetTimeStepUpdateTime()

virtual unsigned long mitk::BaseRenderer::GetTimeStepUpdateTime ( )
virtual

Get timestamp of the update time of the current timestep.

◆ GetViewportSize()

virtual int* mitk::BaseRenderer::GetViewportSize ( ) const
virtual

◆ GetViewportSizeInMM()

Point2D mitk::BaseRenderer::GetViewportSizeInMM ( ) const

◆ GetVtkRenderer()

vtkRenderer* mitk::BaseRenderer::GetVtkRenderer ( ) const
inline

Definition at line 114 of file mitkBaseRenderer.h.

◆ GetWorldTimeGeometry()

virtual const TimeGeometry* mitk::BaseRenderer::GetWorldTimeGeometry ( )
virtual

◆ InitRenderer()

virtual void mitk::BaseRenderer::InitRenderer ( vtkRenderWindow *  renderwindow)
virtual

Initialize the base renderer with a vtk render window. Set the new renderer for the camera controller.

Reimplemented in mitk::VtkPropRenderer.

◆ InitSize()

virtual void mitk::BaseRenderer::InitSize ( int  w,
int  h 
)
virtual

Set the initial size for the render window.

Reimplemented in mitk::VtkPropRenderer.

◆ PickObject()

virtual DataNode* mitk::BaseRenderer::PickObject ( const Point2D ,
Point3D  
) const
inlinevirtual

Determines the object (mitk::DataNode) closest to the current position by means of picking.

Warning
Implementation currently empty for 2D rendering; intended to be implemented for 3D renderers.

Reimplemented in mitk::VtkPropRenderer.

Definition at line 291 of file mitkBaseRenderer.h.

◆ PickWorldPoint()

virtual void mitk::BaseRenderer::PickWorldPoint ( const Point2D diplayPosition,
Point3D worldPosition 
) const
pure virtual

Pick a world coordinate (x,y,z) given a display coordinate (x,y).

Warning
Not implemented; has to be overwritten in subclasses.

Implemented in mitk::VtkPropRenderer.

◆ PlaneToDisplay()

void mitk::BaseRenderer::PlaneToDisplay ( const Point2D planePointInMM,
Point2D displayPoint 
) const

Convert a 2D plane coordinate to the display point using the geometry of the renderWindow.

◆ PlaneToView()

void mitk::BaseRenderer::PlaneToView ( const Point2D planePointInMM,
Point2D viewPoint 
) const

Convert a 2D plane coordinate to the point on the viewport using the geometry of the renderWindow.

◆ PrintSelf()

void mitk::BaseRenderer::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

◆ RegisterLocalStorageHandler()

◆ RemoveAllLocalStorages()

void mitk::BaseRenderer::RemoveAllLocalStorages ( )

◆ RemoveInstance()

static void mitk::BaseRenderer::RemoveInstance ( vtkRenderWindow *  renderWindow)
static

◆ RequestUpdate()

void mitk::BaseRenderer::RequestUpdate ( )

◆ Resize()

virtual void mitk::BaseRenderer::Resize ( int  w,
int  h 
)
virtual

Set a new size for the render window.

Reimplemented in mitk::VtkPropRenderer.

◆ SendUpdateSlice()

void mitk::BaseRenderer::SendUpdateSlice ( )

Modify the update time of the current world plane geometry and force reslicing.

◆ SetConstrainZoomingAndPanning()

virtual void mitk::BaseRenderer::SetConstrainZoomingAndPanning ( bool  constrain)
virtual

◆ SetCurrentWorldGeometry()

virtual void mitk::BaseRenderer::SetCurrentWorldGeometry ( const BaseGeometry geometry)
protectedvirtual

◆ SetCurrentWorldPlaneGeometry()

virtual void mitk::BaseRenderer::SetCurrentWorldPlaneGeometry ( const PlaneGeometry geometry2d)
protectedvirtual

◆ SetDataStorage()

virtual void mitk::BaseRenderer::SetDataStorage ( DataStorage storage)
virtual

Reimplemented in mitk::VtkPropRenderer.

◆ SetGeometry()

virtual void mitk::BaseRenderer::SetGeometry ( const itk::EventObject &  geometrySliceEvent)
virtual

Set the world time geometry using the geometry of the given event.

The function is triggered by a SliceNavigationController::GeometrySendEvent.

◆ SetGeometrySlice()

virtual void mitk::BaseRenderer::SetGeometrySlice ( const itk::EventObject &  geometrySliceEvent)
virtual

Set the current slice using "SetSlice" and update the current world geometry and the current world plane geometry.

The function is triggered by a SliceNavigationController::GeometrySliceEvent.

◆ SetGeometryTime()

virtual void mitk::BaseRenderer::SetGeometryTime ( const itk::EventObject &  geometryTimeEvent)
virtual

Set the current time using "SetTimeStep" and update the current world geometry and the current world plane geometry.

The function is triggered by a TimeNavigationController::TimeEvent.

◆ SetInteractionReferenceGeometry()

virtual void mitk::BaseRenderer::SetInteractionReferenceGeometry ( const TimeGeometry geometry)
virtual

Set the interaction reference world time geometry using the given TimeGeometry.

Setting a new interaction reference world time geometry also updates the alignment status of the reference geometry, which can be retrieved using 'GetReferenceGeometryAligned'. Using a nullptr as the interaction reference geomertry implies that no requirements on the geometry exist, thus in this case any check will result in 'ReferenceGeometryAligned' being true.

Parameters
geometryThe reference geometry used for render window interaction.

◆ SetKeepDisplayedRegion()

virtual void mitk::BaseRenderer::SetKeepDisplayedRegion ( bool  _arg)
virtual

◆ SetMapperID()

virtual void mitk::BaseRenderer::SetMapperID ( MapperSlotId  id)
virtual

Set the used mapperID.

Reimplemented in mitk::VtkPropRenderer.

◆ SetSlice()

virtual void mitk::BaseRenderer::SetSlice ( unsigned int  slice)
virtual

Set the slice that should be used for geometry extraction.

The slice defines the current slice-extracted 2D-geometry (CurrentWorldPlaneGeometry). Setting a new slice will update the current world geometry and the curent world plane geometry.

◆ SetSliceNavigationController()

void mitk::BaseRenderer::SetSliceNavigationController ( SliceNavigationController SlicenavigationController)

◆ SetTimeStep()

virtual void mitk::BaseRenderer::SetTimeStep ( unsigned int  timeStep)
virtual

Set the timestep that should be used for geometry extraction.

The timestep defines the current time-extracted 3D-geometry (CurrentWorldGeometry). Setting a new timestep will update the current world geometry and the curent world plane geometry.

◆ SetWorldGeometryToDataStorageBounds()

virtual bool mitk::BaseRenderer::SetWorldGeometryToDataStorageBounds ( )
inlinevirtual

Reimplemented in mitk::VtkPropRenderer.

Definition at line 190 of file mitkBaseRenderer.h.

◆ SetWorldTimeGeometry()

virtual void mitk::BaseRenderer::SetWorldTimeGeometry ( const TimeGeometry geometry)
virtual

Set the world time geometry using the given TimeGeometry.

Setting a new world time geometry updates the current world geometry and the curent world plane geometry, using the currently selected slice and timestep.

◆ UnregisterLocalStorageHandler()

◆ Update()

virtual void mitk::BaseRenderer::Update ( )
protectedpure virtual

Implemented in mitk::VtkPropRenderer.

◆ UpdateCurrentGeometries()

void mitk::BaseRenderer::UpdateCurrentGeometries ( )
protected

◆ UpdateGeometry()

virtual void mitk::BaseRenderer::UpdateGeometry ( const itk::EventObject &  geometrySliceEvent)
virtual

Set the current world plane geometry using the existing current world geometry.

The function is triggered by a SliceNavigationController::GeometryUpdateEvent.

◆ WorldToDisplay()

void mitk::BaseRenderer::WorldToDisplay ( const Point3D worldIndex,
Point2D displayPoint 
) const

Convert a 3D world index to the display point using the geometry of the renderWindow.

◆ WorldToView()

void mitk::BaseRenderer::WorldToView ( const Point3D worldIndex,
Point2D viewPoint 
) const

Convert a 3D world index to the point on the viewport using the geometry of the renderWindow.

Member Data Documentation

◆ baseRendererMap

BaseRendererMapType mitk::BaseRenderer::baseRendererMap
static

Definition at line 61 of file mitkBaseRenderer.h.

◆ m_Bounds

double mitk::BaseRenderer::m_Bounds[6]
protected

Definition at line 492 of file mitkBaseRenderer.h.

◆ m_CameraController

CameraController::Pointer mitk::BaseRenderer::m_CameraController
protected

Definition at line 423 of file mitkBaseRenderer.h.

◆ m_CameraRotationController

CameraRotationController::Pointer mitk::BaseRenderer::m_CameraRotationController
protected

Definition at line 424 of file mitkBaseRenderer.h.

◆ m_ConstrainZoomingAndPanning

bool mitk::BaseRenderer::m_ConstrainZoomingAndPanning
protected

Definition at line 502 of file mitkBaseRenderer.h.

◆ m_CurrentWorldPlaneGeometryData

PlaneGeometryData::Pointer mitk::BaseRenderer::m_CurrentWorldPlaneGeometryData
protected

Definition at line 486 of file mitkBaseRenderer.h.

◆ m_CurrentWorldPlaneGeometryNode

DataNode::Pointer mitk::BaseRenderer::m_CurrentWorldPlaneGeometryNode
protected

Definition at line 487 of file mitkBaseRenderer.h.

◆ m_CurrentWorldPlaneGeometryTransformTime

unsigned long mitk::BaseRenderer::m_CurrentWorldPlaneGeometryTransformTime
protected

Definition at line 488 of file mitkBaseRenderer.h.

◆ m_DataStorage

DataStorage::Pointer mitk::BaseRenderer::m_DataStorage
protected

Definition at line 420 of file mitkBaseRenderer.h.

◆ m_EmptyWorldGeometry

bool mitk::BaseRenderer::m_EmptyWorldGeometry
protected

Definition at line 494 of file mitkBaseRenderer.h.

◆ m_LastUpdateTime

unsigned long mitk::BaseRenderer::m_LastUpdateTime
protected

Definition at line 421 of file mitkBaseRenderer.h.

◆ m_MapperID

MapperSlotId mitk::BaseRenderer::m_MapperID
protected

Definition at line 419 of file mitkBaseRenderer.h.

◆ m_Name

std::string mitk::BaseRenderer::m_Name
protected

Definition at line 490 of file mitkBaseRenderer.h.

◆ m_NumberOfVisibleLODEnabledMappers

unsigned int mitk::BaseRenderer::m_NumberOfVisibleLODEnabledMappers
protected

Definition at line 498 of file mitkBaseRenderer.h.

◆ m_RegisteredLocalStorageHandlers

std::list<BaseLocalStorageHandler*> mitk::BaseRenderer::m_RegisteredLocalStorageHandlers
protected

Definition at line 500 of file mitkBaseRenderer.h.

◆ m_RenderWindow

vtkRenderWindow* mitk::BaseRenderer::m_RenderWindow
protected

Definition at line 416 of file mitkBaseRenderer.h.

◆ m_SliceNavigationController

SliceNavigationController::Pointer mitk::BaseRenderer::m_SliceNavigationController
protected

Definition at line 425 of file mitkBaseRenderer.h.

◆ m_VtkRenderer

vtkRenderer* mitk::BaseRenderer::m_VtkRenderer
protected

Definition at line 417 of file mitkBaseRenderer.h.


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