Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkRenderingManager Class Reference

Qt specific implementation of mitk::RenderingManager. More...

#include <QmitkRenderingManager.h>

Inheritance diagram for QmitkRenderingManager:
Collaboration diagram for QmitkRenderingManager:

Public Member Functions

 mitkClassMacro (QmitkRenderingManager, mitk::RenderingManager)
 
 ~QmitkRenderingManager () override
 
void DoMonitorRendering () override
 
void DoFinishAbortRendering () override
 
bool event (QEvent *event) override
 
- Public Member Functions inherited from mitk::RenderingManager
virtual std::vector< std::string > GetClassHierarchy () const
 
virtual const char * GetClassName () const
 
void AddRenderWindow (vtkRenderWindow *renderWindow)
 
void RemoveRenderWindow (vtkRenderWindow *renderWindow)
 
const RenderWindowVectorGetAllRegisteredRenderWindows ()
 
void RequestUpdate (vtkRenderWindow *renderWindow)
 
void ForceImmediateUpdate (vtkRenderWindow *renderWindow)
 
void RequestUpdateAll (RequestType type=REQUEST_UPDATE_ALL)
 
void ForceImmediateUpdateAll (RequestType type=REQUEST_UPDATE_ALL)
 
virtual void InitializeViewsByBoundingObjects (const DataStorage *dataStorage)
 Initialize the render windows by the aggregated geometry of all objects that are held in the data storage. More...
 
virtual void InitializeViewByBoundingObjects (vtkRenderWindow *renderWindow, const DataStorage *dataStorage, bool resetCamera=true)
 Initialize the given render window by the aggregated geometry of all objects that are held in the data storage. More...
 
virtual bool InitializeViews (const BaseGeometry *geometry, RequestType type=REQUEST_UPDATE_ALL, bool resetCamera=true)
 Initialize the render windows specified by "type" to the given geometry. More...
 
virtual bool InitializeViews (const TimeGeometry *geometry, RequestType type=REQUEST_UPDATE_ALL, bool resetCamera=true)
 Initialize the render windows specified by "type" to the given geometry. More...
 
virtual bool InitializeViews (RequestType type=REQUEST_UPDATE_ALL)
 Initialize the render windows specified by "type" to the default viewing direction without updating the geometry information. More...
 
virtual bool InitializeView (vtkRenderWindow *renderWindow, const BaseGeometry *geometry, bool resetCamera=true)
 Initialize the specified render window to the given geometry. More...
 
virtual bool InitializeView (vtkRenderWindow *renderWindow, const TimeGeometry *geometry, bool resetCamera=true)
 Initialize the specified render window to the given geometry. More...
 
virtual bool InitializeView (vtkRenderWindow *renderWindow)
 Initialize the specified render window to the default viewing direction without updating the geometry information. More...
 
const TimeNavigationControllerGetTimeNavigationController () const
 
TimeNavigationControllerGetTimeNavigationController ()
 
 ~RenderingManager () override
 
virtual void ExecutePendingRequests ()
 
bool IsRendering () const
 
void AbortRendering ()
 
virtual void SetLODIncreaseBlocked (bool _arg)
 
virtual bool GetLODIncreaseBlocked ()
 
virtual void LODIncreaseBlockedOn ()
 
virtual void LODIncreaseBlockedOff ()
 
virtual void SetLODAbortMechanismEnabled (bool _arg)
 
virtual bool GetLODAbortMechanismEnabled ()
 
virtual void LODAbortMechanismEnabledOn ()
 
virtual void LODAbortMechanismEnabledOff ()
 
void ExecutePendingHighResRenderingRequest ()
 
virtual void DoStartRendering ()
 
int GetNextLOD (BaseRenderer *renderer)
 
void SetMaximumLOD (unsigned int max)
 
void SetShading (bool state, unsigned int lod)
 
bool GetShading (unsigned int lod)
 
void SetClippingPlaneStatus (bool status)
 
bool GetClippingPlaneStatus ()
 
void SetShadingValues (float ambient, float diffuse, float specular, float specpower)
 
FloatVectorGetShadingValues ()
 
PropertyList::Pointer GetPropertyList () const
 
BasePropertyGetProperty (const char *propertyKey) const
 
void SetProperty (const char *propertyKey, BaseProperty *propertyValue)
 
void SetDataStorage (DataStorage *storage)
 Setter for internal DataStorage. More...
 
virtual DataStorageGetDataStorage ()
 Getter for internal DataStorage. More...
 
virtual DataStorageGetDataStorage () const
 
void SetRenderWindowFocus (vtkRenderWindow *focusWindow)
 Sets a flag to the given renderwindow to indicated that it has the focus e.g. has been clicked recently. More...
 
virtual vtkRenderWindow * GetFocusedRenderWindow ()
 
virtual void SetConstrainedPanningZooming (bool _arg)
 
virtual bool GetConstrainedPanningZooming () const
 
void SetAntiAliasing (AntiAliasing antiAliasing)
 
virtual AntiAliasing GetAntiAliasing () const
 

Protected Slots

void TimerCallback ()
 

Protected Member Functions

 QmitkRenderingManager ()
 
void GenerateRenderingRequestEvent () override
 
void StartOrResetTimer () override
 
- Protected Member Functions inherited from mitk::RenderingManager
 RenderingManager ()
 
virtual void InitializePropertyList ()
 

Static Protected Member Functions

static Pointer New ()
 
- Static Protected Member Functions inherited from mitk::RenderingManager
static void RenderingStartCallback (vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
 
static void RenderingProgressCallback (vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
 
static void RenderingEndCallback (vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
 

Protected Attributes

int pendingTimerCallbacks
 
- Protected Attributes inherited from mitk::RenderingManager
bool m_UpdatePending
 
RendererBoolMap m_RenderingAbortedMap
 
RendererIntMap m_NextLODMap
 
unsigned int m_MaxLOD
 
bool m_LODIncreaseBlocked
 
bool m_LODAbortMechanismEnabled
 
BoolVector m_ShadingEnabled
 
bool m_ClippingPlaneEnabled
 
FloatVector m_ShadingValues
 
RenderWindowList m_RenderWindowList
 
RenderWindowVector m_AllRenderWindows
 
RenderWindowCallbacksList m_RenderWindowCallbacksList
 
itk::SmartPointer< TimeNavigationControllerm_TimeNavigationController
 
PropertyList::Pointer m_PropertyList
 
DataStoragePointer m_DataStorage
 
bool m_ConstrainedPanningZooming
 

Additional Inherited Members

- Public Types inherited from mitk::RenderingManager
enum  RequestType { REQUEST_UPDATE_ALL, REQUEST_UPDATE_2DWINDOWS, REQUEST_UPDATE_3DWINDOWS }
 
typedef RenderingManager Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef std::vector< vtkRenderWindow * > RenderWindowVector
 
typedef std::vector< float > FloatVector
 
typedef std::vector< bool > BoolVector
 
typedef itk::SmartPointer< DataStorageDataStoragePointer
 
- Static Public Member Functions inherited from mitk::RenderingManager
static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
static void SetFactory (RenderingManagerFactory *factory)
 
static const RenderingManagerFactoryGetFactory ()
 
static bool HasFactory ()
 
static RenderingManagerGetInstance ()
 
static bool IsInstantiated ()
 
- Protected Types inherited from mitk::RenderingManager
enum  { RENDERING_INACTIVE, RENDERING_REQUESTED, RENDERING_INPROGRESS }
 
typedef std::map< BaseRenderer *, unsigned int > RendererIntMap
 
typedef std::map< BaseRenderer *, bool > RendererBoolMap
 
typedef std::map< vtkRenderWindow *, int > RenderWindowList
 
typedef std::map< vtkRenderWindow *, RenderWindowCallbacksRenderWindowCallbacksList
 
- Static Protected Attributes inherited from mitk::RenderingManager
static RenderingManager::Pointer s_Instance
 
static RenderingManagerFactorys_RenderingManagerFactory
 

Detailed Description

Qt specific implementation of mitk::RenderingManager.

This implementation defines a QmitkRenderingRequestEvent to realize the rendering request process. The event must be handled by the Qmitk interface to Qt (QmitkRenderWindow).

Note: it may be necessary to remove all pending RenderingRequestEvents from the system's event processing pipeline during system shutdown to make sure that dangling events do not lead to unexpected behavior.

Definition at line 38 of file QmitkRenderingManager.h.

Constructor & Destructor Documentation

◆ ~QmitkRenderingManager()

QmitkRenderingManager::~QmitkRenderingManager ( )
override

◆ QmitkRenderingManager()

QmitkRenderingManager::QmitkRenderingManager ( )
protected

Member Function Documentation

◆ DoFinishAbortRendering()

void QmitkRenderingManager::DoFinishAbortRendering ( )
overridevirtual

Reimplemented from mitk::RenderingManager.

◆ DoMonitorRendering()

void QmitkRenderingManager::DoMonitorRendering ( )
overridevirtual

Reimplemented from mitk::RenderingManager.

◆ event()

bool QmitkRenderingManager::event ( QEvent *  event)
override

◆ GenerateRenderingRequestEvent()

void QmitkRenderingManager::GenerateRenderingRequestEvent ( )
overrideprotectedvirtual

Abstract method for generating a system specific event for rendering request. This method is called whenever an update is requested

Implements mitk::RenderingManager.

◆ mitkClassMacro()

QmitkRenderingManager::mitkClassMacro ( QmitkRenderingManager  ,
mitk::RenderingManager   
)

◆ New()

static Pointer QmitkRenderingManager::New ( )
staticprotected

◆ StartOrResetTimer()

void QmitkRenderingManager::StartOrResetTimer ( )
overrideprotectedvirtual

Force a sub-class to start a timer for a pending hires-rendering request

Reimplemented from mitk::RenderingManager.

◆ TimerCallback

void QmitkRenderingManager::TimerCallback ( )
protectedslot

Member Data Documentation

◆ pendingTimerCallbacks

int QmitkRenderingManager::pendingTimerCallbacks
protected

Definition at line 60 of file QmitkRenderingManager.h.


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