Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmlMitkRenderingManager Class Reference

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

#include <QmlMitkRenderingManager.h>

Inheritance diagram for QmlMitkRenderingManager:
Collaboration diagram for QmlMitkRenderingManager:

Public Member Functions

 mitkClassMacro (QmlMitkRenderingManager, mitk::RenderingManager)
 
virtual ~QmlMitkRenderingManager ()
 
virtual bool event (QEvent *event)
 
- 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 ()
 
virtual void DoMonitorRendering ()
 
virtual void DoFinishAbortRendering ()
 
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

 QmlMitkRenderingManager ()
 
virtual void GenerateRenderingRequestEvent ()
 
virtual void StartOrResetTimer ()
 
- 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
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/Qml specific implementation of mitk::RenderingManager.

This implementation defines a QmlMitkRenderingRequestEvent to realize the rendering request process. The event is put into Qt's event loop to receive it back in the GUI thread where we are allowed to do rendering.

Definition at line 39 of file QmlMitkRenderingManager.h.

Constructor & Destructor Documentation

QmlMitkRenderingManager::~QmlMitkRenderingManager ( )
virtual

Definition at line 32 of file QmlMitkRenderingManager.cpp.

QmlMitkRenderingManager::QmlMitkRenderingManager ( )
protected

Definition at line 26 of file QmlMitkRenderingManager.cpp.

Member Function Documentation

bool QmlMitkRenderingManager::event ( QEvent *  event)
virtual
void QmlMitkRenderingManager::GenerateRenderingRequestEvent ( )
protectedvirtual

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 38 of file QmlMitkRenderingManager.cpp.

QmlMitkRenderingManager::mitkClassMacro ( QmlMitkRenderingManager  ,
mitk::RenderingManager   
)
static Pointer QmlMitkRenderingManager::New ( )
staticprotected
void QmlMitkRenderingManager::StartOrResetTimer ( )
protectedvirtual

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

Reimplemented from mitk::RenderingManager.

Definition at line 46 of file QmlMitkRenderingManager.cpp.

void QmlMitkRenderingManager::TimerCallback ( )
protectedslot

Definition at line 54 of file QmlMitkRenderingManager.cpp.

Member Data Documentation

int QmlMitkRenderingManager::pendingTimerCallbacks
protected

Definition at line 59 of file QmlMitkRenderingManager.h.


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