Medical Imaging Interaction Toolkit  2016.11.0
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)
virtual ~QmitkRenderingManager ()
virtual void DoMonitorRendering () override
virtual void DoFinishAbortRendering () override
virtual 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 bool InitializeViews (const BaseGeometry *geometry, RequestType type=REQUEST_UPDATE_ALL, bool preserveRoughOrientationInWorldSpace=false)
virtual bool InitializeViews (const TimeGeometry *geometry, RequestType type=REQUEST_UPDATE_ALL, bool preserveRoughOrientationInWorldSpace=false)
virtual bool InitializeViews (RequestType type=REQUEST_UPDATE_ALL)
virtual bool InitializeView (vtkRenderWindow *renderWindow, const BaseGeometry *geometry, bool initializeGlobalTimeSNC=false)
virtual bool InitializeView (vtkRenderWindow *renderWindow, const TimeGeometry *geometry, bool initializeGlobalTimeSNC=false)
virtual bool InitializeView (vtkRenderWindow *renderWindow)
virtual void InitializeViewsByBoundingObjects (const DataStorage *)
 Initializes the renderwindows by the aggregated geometry of all objects that are held in the data storage. This is basically a global reinit. More...
const SliceNavigationControllerGetTimeNavigationController () const
SliceNavigationControllerGetTimeNavigationController ()
virtual ~RenderingManager ()
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 (mitk::DataStorage *storage)
 Setter / Getter for internal DataStorage. More...
mitk::DataStorageGetDataStorage ()
 Setter / Getter for internal DataStorage. More...
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)

Protected Slots

void TimerCallback ()

Protected Member Functions

 QmitkRenderingManager ()
virtual void GenerateRenderingRequestEvent () override
virtual 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< SliceNavigationControllerm_TimeNavigationController
PropertyList::Pointer m_PropertyList
DataStoragePointer m_DataStorage
bool m_ConstrainedPanningZooming

Additional Inherited Members

- Public Types inherited from mitk::RenderingManager
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
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 42 of file QmitkRenderingManager.h.

Constructor & Destructor Documentation

QmitkRenderingManager::~QmitkRenderingManager ( )

Definition at line 39 of file QmitkRenderingManager.cpp.

QmitkRenderingManager::QmitkRenderingManager ( )

Definition at line 26 of file QmitkRenderingManager.cpp.

References pendingTimerCallbacks.

Member Function Documentation

void QmitkRenderingManager::DoFinishAbortRendering ( )

Reimplemented from mitk::RenderingManager.

Definition at line 35 of file QmitkRenderingManager.cpp.

void QmitkRenderingManager::DoMonitorRendering ( )

Reimplemented from mitk::RenderingManager.

Definition at line 31 of file QmitkRenderingManager.cpp.

bool QmitkRenderingManager::event ( QEvent *  event)
void QmitkRenderingManager::GenerateRenderingRequestEvent ( )

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

Implements mitk::RenderingManager.

Definition at line 43 of file QmitkRenderingManager.cpp.

QmitkRenderingManager::mitkClassMacro ( QmitkRenderingManager  ,
static Pointer QmitkRenderingManager::New ( )
void QmitkRenderingManager::StartOrResetTimer ( )

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

Reimplemented from mitk::RenderingManager.

Definition at line 48 of file QmitkRenderingManager.cpp.

References pendingTimerCallbacks, and TimerCallback().

void QmitkRenderingManager::TimerCallback ( )

Member Data Documentation

int QmitkRenderingManager::pendingTimerCallbacks

Definition at line 64 of file QmitkRenderingManager.h.

Referenced by QmitkRenderingManager(), StartOrResetTimer(), and TimerCallback().

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