Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Manager for coordinating the rendering process. More...
#include <mitkRenderingManager.h>
Classes | |
struct | RenderWindowCallbacks |
Public Types | |
enum | RequestType { REQUEST_UPDATE_ALL, REQUEST_UPDATE_2DWINDOWS, REQUEST_UPDATE_3DWINDOWS } |
typedef RenderingManager | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef std::vector< vtkRenderWindow * > | RenderWindowVector |
typedef std::vector< float > | FloatVector |
typedef std::vector< bool > | BoolVector |
typedef itk::SmartPointer< DataStorage > | DataStoragePointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
void | AddRenderWindow (vtkRenderWindow *renderWindow) |
void | RemoveRenderWindow (vtkRenderWindow *renderWindow) |
const RenderWindowVector & | GetAllRegisteredRenderWindows () |
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 SliceNavigationController * | GetTimeNavigationController () const |
SliceNavigationController * | GetTimeNavigationController () |
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 () |
virtual void | StartOrResetTimer () |
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) |
FloatVector & | GetShadingValues () |
PropertyList::Pointer | GetPropertyList () const |
BaseProperty * | GetProperty (const char *propertyKey) const |
void | SetProperty (const char *propertyKey, BaseProperty *propertyValue) |
void | SetDataStorage (mitk::DataStorage *storage) |
Setter / Getter for internal DataStorage. More... | |
mitk::DataStorage * | GetDataStorage () |
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) |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
static void | SetFactory (RenderingManagerFactory *factory) |
static const RenderingManagerFactory * | GetFactory () |
static bool | HasFactory () |
static RenderingManager * | GetInstance () |
static bool | IsInstantiated () |
Protected Types | |
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 *, RenderWindowCallbacks > | RenderWindowCallbacksList |
Protected Member Functions | |
RenderingManager () | |
virtual void | GenerateRenderingRequestEvent ()=0 |
virtual void | InitializePropertyList () |
Static Protected Member Functions | |
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) |
Static Protected Attributes | |
static RenderingManager::Pointer | s_Instance |
static RenderingManagerFactory * | s_RenderingManagerFactory |
Manager for coordinating the rendering process.
RenderingManager is a central instance retrieving and executing RenderWindow update requests. Its main purpose is to coordinate distributed requests which cannot be aware of each other - lacking the knowledge of whether they are really necessary or not. For example, two objects might determine that a specific RenderWindow needs to be updated. This would result in one unnecessary update, if both executed the update on their own.
The RenderingManager addresses this by letting each such object request an update, and waiting for other objects to possibly issue the same request. The actual update will then only be executed at a well-defined point in the main event loop (this may be each time after event processing is done).
Convinience methods for updating all RenderWindows which have been registered with the RenderingManager exist. If theses methods are not used, it is not required to register (add) RenderWindows prior to using the RenderingManager.
The methods ForceImmediateUpdate() and ForceImmediateUpdateAll() can be used to force the RenderWindow update execution without any delay, bypassing the request functionality.
The interface of RenderingManager is platform independent. Platform specific subclasses have to be implemented, though, to supply an appropriate event issueing for controlling the update execution process. See method documentation for a description of how this can be done.
Definition at line 79 of file mitkRenderingManager.h.
typedef std::vector<bool> mitk::RenderingManager::BoolVector |
Definition at line 86 of file mitkRenderingManager.h.
typedef itk::SmartPointer<const Self> mitk::RenderingManager::ConstPointer |
Definition at line 82 of file mitkRenderingManager.h.
Definition at line 88 of file mitkRenderingManager.h.
typedef std::vector<float> mitk::RenderingManager::FloatVector |
Definition at line 85 of file mitkRenderingManager.h.
Definition at line 82 of file mitkRenderingManager.h.
|
protected |
Definition at line 314 of file mitkRenderingManager.h.
|
protected |
Definition at line 313 of file mitkRenderingManager.h.
|
protected |
Definition at line 346 of file mitkRenderingManager.h.
|
protected |
Definition at line 336 of file mitkRenderingManager.h.
typedef std::vector<vtkRenderWindow *> mitk::RenderingManager::RenderWindowVector |
Definition at line 82 of file mitkRenderingManager.h.
Definition at line 82 of file mitkRenderingManager.h.
typedef itk::Object mitk::RenderingManager::Superclass |
Definition at line 82 of file mitkRenderingManager.h.
|
protected |
Enumerator | |
---|---|
RENDERING_INACTIVE | |
RENDERING_REQUESTED | |
RENDERING_INPROGRESS |
Definition at line 296 of file mitkRenderingManager.h.
Enumerator | |
---|---|
REQUEST_UPDATE_ALL | |
REQUEST_UPDATE_2DWINDOWS | |
REQUEST_UPDATE_3DWINDOWS |
Definition at line 90 of file mitkRenderingManager.h.
|
virtual |
Definition at line 59 of file mitkRenderingManager.cpp.
References m_AllRenderWindows, and m_RenderWindowCallbacksList.
|
protected |
Definition at line 42 of file mitkRenderingManager.cpp.
void mitk::RenderingManager::AbortRendering | ( | ) |
Definition at line 612 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), m_RenderingAbortedMap, m_RenderWindowList, and RENDERING_INPROGRESS.
void mitk::RenderingManager::AddRenderWindow | ( | vtkRenderWindow * | renderWindow | ) |
Adds a RenderWindow. This is required if the methods RequestUpdateAll or ForceImmediateUpdate are to be used.
Definition at line 122 of file mitkRenderingManager.cpp.
References mitk::RenderingManager::RenderWindowCallbacks::commands, mitk::BaseRenderer::GetInstance(), m_AllRenderWindows, m_DataStorage, m_RenderWindowCallbacksList, m_RenderWindowList, mitk::New(), RENDERING_INACTIVE, RenderingEndCallback(), RenderingProgressCallback(), RenderingStartCallback(), and mitk::BaseRenderer::SetDataStorage().
Referenced by mitk::RenderWindowBase::Initialize().
|
inlinevirtual |
Reimplemented in QmitkRenderingManager.
Definition at line 235 of file mitkRenderingManager.h.
|
inlinevirtual |
Reimplemented in QmitkRenderingManager.
Definition at line 234 of file mitkRenderingManager.h.
Referenced by RenderingProgressCallback().
|
inlinevirtual |
Definition at line 233 of file mitkRenderingManager.h.
void mitk::RenderingManager::ExecutePendingHighResRenderingRequest | ( | ) |
To be called by a sub-class from a timer callback
Definition at line 637 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetNumberOfVisibleLODEnabledMappers(), m_NextLODMap, m_RenderWindowList, and RequestUpdate().
Referenced by QmitkRenderingManager::TimerCallback().
|
virtual |
Executes all pending requests. This method has to be called by the system whenever a RenderingManager induced request event occurs in the system pipeline (see concrete RenderingManager implementations).
Definition at line 521 of file mitkRenderingManager.cpp.
References ForceImmediateUpdate(), m_RenderWindowList, m_UpdatePending, and RENDERING_REQUESTED.
Referenced by QmitkRenderingManager::event(), QmitkProgressBar::SlotAddStepsToDo(), and QmitkProgressBar::SlotProgress().
void mitk::RenderingManager::ForceImmediateUpdate | ( | vtkRenderWindow * | renderWindow | ) |
Immediately executes an update of the specified RenderWindow.
Definition at line 216 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), m_RenderWindowList, m_UpdatePending, mitk::VtkPropRenderer::PrepareRender(), and RENDERING_INACTIVE.
Referenced by ExecutePendingRequests(), QmitkStdMultiWidget::ForceImmediateUpdate(), ForceImmediateUpdateAll(), mitk::RegionGrowingTool::OnMouseMoved(), mitk::MovieGenerator::WriteCurrentFrameToMovie(), and mitk::MovieGenerator::WriteMovie().
void mitk::RenderingManager::ForceImmediateUpdateAll | ( | RequestType | type = REQUEST_UPDATE_ALL | ) |
Immediately executes an update of all registered RenderWindows. If only 2D or 3D windows should be updated, this can be specified via the parameter requestType.
Definition at line 265 of file mitkRenderingManager.cpp.
References ForceImmediateUpdate(), mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetMapperID(), m_RenderWindowList, REQUEST_UPDATE_2DWINDOWS, REQUEST_UPDATE_3DWINDOWS, and REQUEST_UPDATE_ALL.
|
protectedpure virtual |
Abstract method for generating a system specific event for rendering request. This method is called whenever an update is requested
Implemented in QmitkRenderingManager, and QmlMitkRenderingManager.
Referenced by RequestUpdate().
const RenderingManager::RenderWindowVector & mitk::RenderingManager::GetAllRegisteredRenderWindows | ( | ) |
Get a list of all registered RenderWindows
Definition at line 188 of file mitkRenderingManager.cpp.
References m_AllRenderWindows.
Referenced by mitk::DisplayInteractor::CheckRotationPossible(), mitk::DisplayInteractor::CheckSwivelPossible(), QmitkBoundingObjectWidget::CreateBoundingObject(), and mitk::OverlayManager::GetInstance().
|
inlinevirtual |
Definition at line 82 of file mitkRenderingManager.h.
|
virtual |
bool mitk::RenderingManager::GetClippingPlaneStatus | ( | ) |
Definition at line 679 of file mitkRenderingManager.cpp.
References m_ClippingPlaneEnabled.
mitk::DataStorage * mitk::RenderingManager::GetDataStorage | ( | ) |
Setter / Getter for internal DataStorage.
Sets / returns the mitk::DataStorage that is used internally. This instance holds all mitk::DataNodes that are rendered by the registered BaseRenderers.
If this DataStorage is changed at runtime by calling SetDataStorage(), all currently registered BaseRenderers are automatically given the correct instance. When a new BaseRenderer is added, it is automatically initialized with the currently active DataStorage.
Definition at line 726 of file mitkRenderingManager.cpp.
References m_DataStorage.
|
static |
Get the object factory which produces the platform specific RenderingManager instances.
Definition at line 80 of file mitkRenderingManager.cpp.
References s_RenderingManagerFactory.
Referenced by New().
|
virtual |
|
static |
Get the RenderingManager singleton instance.
Definition at line 101 of file mitkRenderingManager.cpp.
References mitk::RenderingManagerFactory::CreateRenderingManager(), s_Instance, and s_RenderingManagerFactory.
Referenced by QmitkSliceBasedInterpolatorWidget::AcceptAllInterpolations(), QmitkSlicesInterpolator::AcceptAllInterpolations(), mitk::BinaryThresholdTool::AcceptCurrentThresholdValue(), mitk::BinaryThresholdULTool::AcceptCurrentThresholdValue(), mitk::RenderingTestHelper::AddNodeToStorage(), mitk::VtkOverlay::AddToRenderer(), mitk::RenderingTestHelper::AddToStorage(), QmitkDataStorageTreeModel::AdjustLayerProperty(), mitk::OtsuTool3D::CalculatePreview(), QmitkBSplineRegistrationView::CalculateTransformation(), QmitkStdMultiWidget::changeLayoutToBig3D(), QmitkStdMultiWidget::changeLayoutToWidget1(), QmitkStdMultiWidget::changeLayoutToWidget2(), QmitkStdMultiWidget::changeLayoutToWidget3(), QmitkAdaptiveRegionGrowingToolGUI::ChangeLevelWindow(), QmitkLevelWindowWidgetContextMenu::changeScaleRange(), QmitkSurfaceBasedInterpolatorWidget::ChangeSurfaceColor(), QmitkSlicesInterpolator::ChangeSurfaceColor(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), QmitkToFPointSetWidget::CleanUpWidget(), QmitkPointListView::ClearPointList(), QmitkDataManagerView::ColorChanged(), QmitkDataManagerView::ColormapActionToggled(), mitk::PickingTool::ConfirmSegmentation(), mitk::FastMarchingTool3D::ConfirmSegmentation(), mitk::FastMarchingTool::ConfirmSegmentation(), QmitkBoundingObjectWidget::CreateBoundingObject(), QmlMitkRenderWindowItem::createPlaneNode(), QmitkStdMultiWidgetEditor::CreateQtPartControl(), mitk::AffineBaseDataInteractor3D::DataNodeChanged(), mitk::BinaryThresholdTool::Deactivated(), mitk::BinaryThresholdULTool::Deactivated(), mitk::FastMarchingTool3D::Deactivated(), mitk::FastMarchingTool::Deactivated(), mitk::AffineImageCropperInteractor::DeformObject(), mitk::WatershedTool::DoIt(), QmitkColorTransferFunctionCanvas::DoubleClickOnHandle(), QmlMitkColorTransferFunctionCanvas::DoubleClickOnHandle(), QmitkDataStorageTreeModel::dropMimeData(), QmitkToolReferenceDataSelectionBox::EnsureOnlyReferenceImageIsVisibile(), QmitkPropertyDelegate::eventFilter(), mitk::DiffSliceOperationApplier::ExecuteOperation(), mitk::DiffImageApplier::ExecuteOperation(), mitk::GPUVolumeMapper3D::GenerateDataCPU(), mitk::GPUVolumeMapper3D::GenerateDataGPU(), mitk::OverlayManager::GetInstance(), mitk::SliceNavigationController::GetRenderingManager(), QmlMitkDatamanager::globalReinit(), QmitkDataManagerView::GlobalReinit(), QmlMitkStdMultiItem::init(), InitGLEW(), mitk::RenderWindowBase::Initialize(), QmlMitkImageNavigator::initialize(), mitk::InteractionTestHelper::Initialize(), InitializeWindows(), QmitkSliceWidget::InitWidget(), mitk::SegmentationSink::InsertBelowGroupNode(), mitk::ContourModelInteractor::IsHovering(), mitk::ContourModelLiveWireInteractor::IsHovering(), QmitkTransferFunctionCanvas::keyPressEvent(), QmlMitkTransferFunctionCanvas::keyPressEvent(), mitk::WorkbenchUtil::LoadFiles(), main(), QmitkDataManagerView::MakeAllNodesInvisible(), mitkDispatcherTest(), mitkRenderingManagerTest(), mitk::CompositeMapper::MitkRenderOpaqueGeometry(), mitkSurfaceVtkMapper3DTest(), mitkViewportRenderingTest(), mitk::PaintbrushTool::MouseMoved(), QmitkTransferFunctionCanvas::mouseMoveEvent(), QmlMitkTransferFunctionCanvas::mouseMoveEvent(), QmlMitkSliderLevelWindowItem::mouseMoveEvent(), QmitkSliderLevelWindowWidget::mouseMoveEvent(), QmitkTransferFunctionCanvas::mousePressEvent(), QmlMitkTransferFunctionCanvas::mousePressEvent(), QmitkTransferFunctionCanvas::mouseReleaseEvent(), QmlMitkTransferFunctionCanvas::mouseReleaseEvent(), QmlMitkStdMultiItem::moveCrossToPosition(), QmitkPointListViewWidget::MoveSelectedPointDown(), QmitkPointListModel::MoveSelectedPointDown(), QmitkPointListViewWidget::MoveSelectedPointUp(), QmitkPointListModel::MoveSelectedPointUp(), QmitkSlicesInterpolator::On3DInterpolationActivated(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), QmitkSliceBasedInterpolatorWidget::OnAcceptInterpolationClicked(), QmitkSlicesInterpolator::OnAcceptInterpolationClicked(), mitk::LiveWireTool2D::OnAddPoint(), mitk::FastMarchingTool3D::OnAddPoint(), mitk::FastMarchingTool::OnAddPoint(), QmitkPropertyListPopup::onBoolPropertyClicked(), QmitkPointListWidget::OnBtnLoadPoints(), mitk::ContourModelInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnCheckPointClick(), QmitkPropertyListPopup::onColorClicked(), QmitkColorPropertyEditor::onColorSelected(), QmitkToFSurfaceGenerationWidget::OnCompute3DDataCheckboxChecked(), mitk::FastMarchingTool3D::OnDelete(), mitk::FastMarchingTool::OnDelete(), mitk::ContourModelLiveWireInteractor::OnDeletePoint(), QmitkTransferFunctionGeneratorWidget::OnDeltaLevelWindow(), QmitkTransferFunctionGeneratorWidget::OnDeltaThreshold(), mitk::ContourModelInteractor::OnFinishEditing(), mitk::ContourModelLiveWireInteractor::OnFinishEditing(), mitk::LiveWireTool2D::OnInitLiveWire(), QmitkSlicesInterpolator::OnInterpolationActivated(), mitk::PaintbrushTool::OnInvertLogic(), QmitkBoundingObjectWidget::OnItemDataChanged(), mitk::LiveWireTool2D::OnLastSegmentDelete(), QmitkPointListView::OnListViewSelectionChanged(), QmitkTransferFunctionGeneratorWidget::OnLoadPreset(), mitk::ContourTool::OnMouseMoved(), mitk::CorrectorTool2D::OnMouseMoved(), mitk::RegionGrowingTool::OnMouseMoved(), mitk::SetRegionTool::OnMousePressed(), mitk::ContourTool::OnMousePressed(), mitk::RegionGrowingTool::OnMousePressedOutside(), mitk::SetRegionTool::OnMouseReleased(), mitk::ContourTool::OnMouseReleased(), mitk::PaintbrushTool::OnMouseReleased(), mitk::CorrectorTool2D::OnMouseReleased(), mitk::ContourModelInteractor::OnMoveContour(), mitk::ContourModelInteractor::OnMovePoint(), mitk::ContourModelLiveWireInteractor::OnMovePoint(), QmitkStdMultiWidgetEditor::OnPreferencesChanged(), QmitkInteractiveTransformationWidget::OnResetGeometry(), QmitkToFVisualisationSettingsWidget::OnSetXValueColor(), QmitkNavigationToolCreationWidget::OnShowAdvancedOptions(), QmitkSliceBasedInterpolatorWidget::OnSliceChanged(), QmitkSurfaceStampWidget::OnStamp(), QmitkMaskStampWidget::OnStamp(), QmitkSurfaceBasedInterpolatorWidget::OnToggleWidgetActivation(), QmitkSliceBasedInterpolatorWidget::OnToggleWidgetActivation(), QmitkNumberPropertySlider::onValueChanged(), QmitkNumberPropertyEditor::onValueChanged(), QmitkPythonVariableStackTableView::OnVariableStackDoubleClicked(), QmitkPropertyListPopup::onVisibleClicked(), QmitkDataManagerView::OpacityChanged(), mitk::InteractionTestHelper::PlaybackInteraction(), QmitkNumberPropertyEditor::PropertyChanged(), QmitkSelectableGLWidget::QmitkSelectableGLWidget(), QmitkStdMultiWidget::QmitkStdMultiWidget(), mitk::LimitedLinearUndo::Redo(), mitk::UndoController::Redo(), QmitkFiducialRegistrationWidget::Register(), QmitkNavigationToolCreationAdvancedWidget::ReInitialize(), QmlMitkDatamanager::reinitNode(), mitk::VtkOverlay::RemoveFromRenderer(), QmitkPointListViewWidget::RemoveSelectedPoint(), QmitkPointListModel::RemoveSelectedPoint(), mitk::FastMarchingTool3D::Reset(), mitk::FastMarchingTool::Reset(), QmitkLabelSetWidget::ResetAllTableWidgetItems(), mitk::AffineBaseDataInteractor3D::RestoreNodeProperties(), QmitkInteractiveTransformationWidget::Rotate(), mitk::DisplayInteractor::Rotate(), mitk::CameraRotationController::RotateCamera(), mitk::AffineBaseDataInteractor3D::RotateGeometry(), mitk::OtsuTool3D::RunSegmentation(), mitk::AffineBaseDataInteractor3D::ScaleGeometry(), QmitkPropertyItemModel::setData(), QmitkDataStorageTreeModel::setData(), QmitkPropertiesTableModel::setData(), QmitkDataStorageTableModel::setData(), QmitkLevelWindowWidgetContextMenu::setDefaultLevelWindow(), QmitkLevelWindowWidgetContextMenu::setDefaultScaleRange(), QmitkBoundingObjectWidget::setEnabled(), QmlMitkColorTransferFunctionCanvas::setGreyValue(), QmlMitkPiecewiseFunctionCanvas::setGreyValue(), QmlMitkSliderLevelWindowItem::setLevel(), QmitkLineEditLevelWindowWidget::SetLevelValue(), QmlMitkProperties::setLod(), mitk::RenderingTestHelper::SetMapperIDToRender3D(), QmitkLevelWindowWidgetContextMenu::setMaximumWindow(), QmlMitkProperties::setMode(), QmlMitkPiecewiseFunctionCanvas::setOpacity(), QmitkLevelWindowWidgetContextMenu::setPreset(), QmlMitkProperties::setRendering(), mitk::InteractionTestHelper::SetTimeStep(), Step8::SetupWidgets(), mitk::RenderingTestHelper::SetViewDirection(), QmlMitkSliderLevelWindowItem::setWindow(), QmitkLineEditLevelWindowWidget::SetWindowValue(), QmitkTransferFunctionCanvas::SetX(), QmlMitkTransferFunctionCanvas::SetX(), QmitkTransferFunctionWidget::SetXValueColor(), QmitkTransferFunctionWidget::SetXValueGradient(), QmitkTransferFunctionWidget::SetXValueScalar(), QmitkTransferFunctionCanvas::SetY(), QmlMitkTransferFunctionCanvas::SetY(), QmitkTransferFunctionWidget::SetYValueGradient(), QmitkTransferFunctionWidget::SetYValueScalar(), QmitkSlicesInterpolator::Show3DInterpolationResult(), QmitkSurfaceBasedInterpolatorWidget::ShowInterpolationResult(), mitk::OtsuTool3D::ShowMultiLabelResultNode(), QmitkDataManagerView::ShowOnlySelectedNodes(), QmitkProgressBar::SlotAddStepsToDo(), QmitkProgressBar::SlotProgress(), Step7::StartRegionGrowing(), Step6::StartRegionGrowing(), mitk::PickingTool::StartRegionGrowing(), QmitkSurfaceBasedInterpolatorWidget::StopUpdateInterpolationTimer(), QmitkSlicesInterpolator::StopUpdateInterpolationTimer(), QmitkDataManagerView::SurfaceRepresentationActionToggled(), mitk::DisplayInteractor::Swivel(), QmitkDataManagerView::TextureInterpolationToggled(), QmlMitkStdMultiItem::togglePlanes(), QmlMitkDatamanager::toggleVisibility(), QmitkDataManagerView::ToggleVisibilityOfSelectedNodes(), QmitkInteractiveTransformationWidget::Translate(), mitk::AffineBaseDataInteractor3D::TranslateGeometry(), mitk::LimitedLinearUndo::Undo(), mitk::UndoController::Undo(), mitk::FastMarchingTool3D::Update(), mitk::FastMarchingTool::Update(), mitk::TubeGraphDataInteractor::UpdateActivation(), QmitkLabelSetWidget::UpdateAllTableWidgetItems(), QmitkSliceWidget::UpdateGL(), mitk::BinaryThresholdTool::UpdatePreview(), mitk::BinaryThresholdULTool::UpdatePreview(), QmitkVideoBackground::UpdateVideo(), QmitkSliceBasedInterpolatorWidget::UpdateVisibleSuggestion(), QmitkSlicesInterpolator::UpdateVisibleSuggestion(), mitk::OtsuTool3D::UpdateVolumePreview(), QmitkLevelWindowWidgetContextMenu::useAllGreyvaluesFromImage(), QmitkLevelWindowWidgetContextMenu::useOptimizedLevelWindow(), mitk::SegTool2D::WriteBackSegmentationResult(), mitk::MovieGenerator::WriteCurrentFrameToMovie(), mitk::MovieGenerator::WriteMovie(), and mitk::InteractionTestHelper::~InteractionTestHelper().
|
virtual |
En-/Disable LOD abort mechanism.
|
virtual |
En-/Disable LOD increase globally.
int mitk::RenderingManager::GetNextLOD | ( | BaseRenderer * | renderer | ) |
Definition at line 625 of file mitkRenderingManager.cpp.
References m_NextLODMap.
Referenced by mitk::GPUVolumeMapper3D::GenerateDataCPU().
BaseProperty * mitk::RenderingManager::GetProperty | ( | const char * | propertyKey | ) | const |
Returns a property from m_PropertyList
Definition at line 702 of file mitkRenderingManager.cpp.
References m_PropertyList.
PropertyList::Pointer mitk::RenderingManager::GetPropertyList | ( | ) | const |
Returns a property list
Definition at line 701 of file mitkRenderingManager.cpp.
References m_PropertyList.
Referenced by QmitkOverlayController::AddOverlay().
bool mitk::RenderingManager::GetShading | ( | unsigned int | lod | ) |
Definition at line 667 of file mitkRenderingManager.cpp.
References m_MaxLOD, and m_ShadingEnabled.
RenderingManager::FloatVector & mitk::RenderingManager::GetShadingValues | ( | ) |
Definition at line 688 of file mitkRenderingManager.cpp.
References m_ShadingValues.
|
inlinestatic |
Definition at line 82 of file mitkRenderingManager.h.
const SliceNavigationController * mitk::RenderingManager::GetTimeNavigationController | ( | ) | const |
Gets the (global) SliceNavigationController responsible for time-slicing.
Definition at line 511 of file mitkRenderingManager.cpp.
References m_TimeNavigationController.
Referenced by mitk::WatershedTool::DoIt(), QmlMitkImageNavigator::initialize(), mitk::InteractionTestHelper::Initialize(), InitializeWindows(), QmitkStdMultiWidget::QmitkStdMultiWidget(), mitk::OtsuTool3D::RunSegmentation(), mitk::InteractionTestHelper::SetTimeStep(), and mitk::InteractionTestHelper::~InteractionTestHelper().
SliceNavigationController * mitk::RenderingManager::GetTimeNavigationController | ( | ) |
Gets the (global) SliceNavigationController responsible for time-slicing.
Definition at line 516 of file mitkRenderingManager.cpp.
References m_TimeNavigationController.
|
static |
Returns true if a factory has already been set.
Definition at line 81 of file mitkRenderingManager.cpp.
References s_RenderingManagerFactory.
Referenced by mitk::TestingRenderingManagerFactory::TestingRenderingManagerFactory().
|
protectedvirtual |
Definition at line 689 of file mitkRenderingManager.cpp.
References m_PropertyList, mitk::BoolProperty::New(), mitk::PropertyList::New(), and SetProperty().
|
virtual |
Initializes the specified window to the geometry of the given DataNode. Set "initializeGlobalTimeSNC" to true in order to use this geometry as global TimeGeometry. PLATFORM SPECIFIC. Initializes the specified window to the given geometry. Set "initializeGlobalTimeSNC" to true in order to use this geometry as global TimeGeometry. PLATFORM SPECIFIC.
Definition at line 419 of file mitkRenderingManager.cpp.
References mitk::BaseGeometry::Clone(), and mitk::ProportionalTimeGeometry::New().
|
virtual |
Definition at line 428 of file mitkRenderingManager.cpp.
References mitk::eps, mitk::TimeGeometry::GetBoundingBoxInWorld(), mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetMapperID(), m_TimeNavigationController, and RequestUpdate().
|
virtual |
Initializes the specified window to the default viewing direction (geomtry information is NOT changed). PLATFORM SPECIFIC.
Definition at line 462 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetSliceNavigationController(), RequestUpdate(), mitk::SliceNavigationController::SetViewDirectionToDefault(), and mitk::SliceNavigationController::Update().
|
virtual |
Initializes the windows specified by requestType to the geometry of the given DataStorage. Initializes the windows specified by requestType to the given geometry. PLATFORM SPECIFIC. TODO: HOW IS THIS PLATFORM SPECIFIC? Throws an exception if bounding box has 0 extent due to exceeding double precision range.
Definition at line 300 of file mitkRenderingManager.cpp.
References mitk::BaseGeometry::Clone(), and mitk::ProportionalTimeGeometry::New().
Referenced by mitk::RenderingTestHelper::AddNodeToStorage(), mitk::RenderingTestHelper::AddToStorage(), QmlMitkRenderWindowItem::createPlaneNode(), QmitkStdMultiWidgetEditor::CreateQtPartControl(), QmitkDataStorageTreeModel::dropMimeData(), QmitkStdMultiWidget::InitializeStandardViews(), InitializeViewsByBoundingObjects(), main(), mitkSurfaceVtkMapper3DTest(), mitkViewportRenderingTest(), QmitkToFSurfaceGenerationWidget::OnCompute3DDataCheckboxChecked(), QmitkNavigationToolCreationWidget::OnShowAdvancedOptions(), QmitkPythonVariableStackTableView::OnVariableStackDoubleClicked(), QmlMitkDatamanager::reinitNode(), mitk::RenderingTestHelper::SetMapperIDToRender3D(), Step8::SetupWidgets(), and mitk::RenderingTestHelper::SetViewDirection().
|
virtual |
Definition at line 309 of file mitkRenderingManager.cpp.
References mitk::TimeGeometry::Clone(), mitk::eps, mitk::Equal(), mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetMapperID(), m_ConstrainedPanningZooming, m_RenderWindowList, m_TimeNavigationController, MITK_DEBUG, mitkThrow, REQUEST_UPDATE_2DWINDOWS, REQUEST_UPDATE_3DWINDOWS, REQUEST_UPDATE_ALL, RequestUpdateAll(), and mitk::BaseRenderer::SetConstrainZoomingAndPanning().
|
virtual |
Initializes the windows to the default viewing direction (geomtry information is NOT changed). PLATFORM SPECIFIC.
Definition at line 392 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetMapperID(), mitk::BaseRenderer::GetSliceNavigationController(), m_RenderWindowList, REQUEST_UPDATE_2DWINDOWS, REQUEST_UPDATE_3DWINDOWS, REQUEST_UPDATE_ALL, RequestUpdateAll(), mitk::SliceNavigationController::SetViewDirectionToDefault(), and mitk::SliceNavigationController::Update().
|
virtual |
Initializes the renderwindows by the aggregated geometry of all objects that are held in the data storage. This is basically a global reinit.
The | data storage from which the bounding object can be retrieved |
Definition at line 281 of file mitkRenderingManager.cpp.
References mitk::DataStorage::ComputeBoundingGeometry3D(), mitk::DataStorage::GetSubset(), InitializeViews(), mitk::BoolProperty::New(), mitk::NodePredicateNot::New(), and mitk::NodePredicateProperty::New().
Referenced by QmlMitkDatamanager::globalReinit(), QmitkDataManagerView::GlobalReinit(), QmlMitkStdMultiItem::init(), mitk::WorkbenchUtil::LoadFiles(), QmitkStdMultiWidgetEditor::OnPreferencesChanged(), mitk::InteractionTestHelper::PlaybackInteraction(), QmitkFiducialRegistrationWidget::Register(), QmitkNavigationToolCreationAdvancedWidget::ReInitialize(), QmitkStdMultiWidget::ResetCrosshair(), and mitk::InteractionTestHelper::SetTimeStep().
|
static |
Returns true if the singleton instance does already exist.
Definition at line 114 of file mitkRenderingManager.cpp.
References s_Instance.
bool mitk::RenderingManager::IsRendering | ( | ) | const |
Definition at line 599 of file mitkRenderingManager.cpp.
References m_RenderWindowList, and RENDERING_INPROGRESS.
|
virtual |
|
virtual |
En-/Disable LOD abort mechanism.
|
virtual |
|
virtual |
En-/Disable LOD increase globally.
|
static |
Definition at line 93 of file mitkRenderingManager.cpp.
References mitk::RenderingManagerFactory::CreateRenderingManager(), and GetFactory().
Referenced by mitkRenderingManagerTest().
void mitk::RenderingManager::RemoveRenderWindow | ( | vtkRenderWindow * | renderWindow | ) |
Removes a RenderWindow.
Definition at line 163 of file mitkRenderingManager.cpp.
References m_AllRenderWindows, m_RenderWindowCallbacksList, and m_RenderWindowList.
|
staticprotected |
Definition at line 570 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetNumberOfVisibleLODEnabledMappers(), mitk::BaseRenderer::GetRenderingManager(), mitk::BaseRenderer::GetRenderWindow(), m_NextLODMap, m_RenderWindowList, RENDERING_INACTIVE, and StartOrResetTimer().
Referenced by AddRenderWindow().
|
staticprotected |
Definition at line 551 of file mitkRenderingManager.cpp.
References DoMonitorRendering(), mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetNumberOfVisibleLODEnabledMappers(), mitk::BaseRenderer::GetRenderingManager(), and m_LODAbortMechanismEnabled.
Referenced by AddRenderWindow().
|
staticprotected |
Definition at line 537 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetRenderingManager(), m_RenderWindowList, m_UpdatePending, and RENDERING_INPROGRESS.
Referenced by AddRenderWindow().
void mitk::RenderingManager::RequestUpdate | ( | vtkRenderWindow * | renderWindow | ) |
Requests an update for the specified RenderWindow, to be executed as soon as the main loop is ready for rendering.
Definition at line 193 of file mitkRenderingManager.cpp.
References GenerateRenderingRequestEvent(), m_RenderWindowList, m_UpdatePending, and RENDERING_REQUESTED.
Referenced by mitk::VtkOverlay::AddToRenderer(), QmitkSurfaceBasedInterpolatorWidget::ChangeSurfaceColor(), QmitkSlicesInterpolator::ChangeSurfaceColor(), ExecutePendingHighResRenderingRequest(), InitializeView(), QmitkSliceWidget::InitWidget(), mitk::ContourModelInteractor::IsHovering(), mitk::ContourModelLiveWireInteractor::IsHovering(), mitk::PaintbrushTool::MouseMoved(), mitk::DisplayInteractor::Move(), mitk::LiveWireTool2D::OnAddPoint(), mitk::ContourModelInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnDeletePoint(), mitk::ContourModelInteractor::OnFinishEditing(), mitk::ContourModelLiveWireInteractor::OnFinishEditing(), mitk::LiveWireTool2D::OnInitLiveWire(), mitk::LiveWireTool2D::OnLastSegmentDelete(), mitk::ContourTool::OnMouseMoved(), mitk::CorrectorTool2D::OnMouseMoved(), mitk::LiveWireTool2D::OnMouseMoved(), mitk::SetRegionTool::OnMousePressed(), mitk::ContourTool::OnMousePressed(), mitk::RegionGrowingTool::OnMousePressedOutside(), mitk::SetRegionTool::OnMouseReleased(), mitk::ContourTool::OnMouseReleased(), mitk::PaintbrushTool::OnMouseReleased(), mitk::CorrectorTool2D::OnMouseReleased(), mitk::ContourModelInteractor::OnMoveContour(), mitk::ContourModelInteractor::OnMovePoint(), mitk::ContourModelLiveWireInteractor::OnMovePoint(), QmitkRenderWindow::paintEvent(), mitk::VtkOverlay::RemoveFromRenderer(), QmitkStdMultiWidget::RequestUpdate(), RequestUpdateAll(), mitk::CameraRotationController::RotateCamera(), QmitkSurfaceBasedInterpolatorWidget::StopUpdateInterpolationTimer(), QmitkSlicesInterpolator::StopUpdateInterpolationTimer(), QmitkSliceWidget::UpdateGL(), and QmitkVideoBackground::UpdateVideo().
void mitk::RenderingManager::RequestUpdateAll | ( | RequestType | type = REQUEST_UPDATE_ALL | ) |
Requests all currently registered RenderWindows to be updated. If only 2D or 3D windows should be updated, this can be specified via the parameter requestType.
Definition at line 251 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetMapperID(), m_RenderWindowList, REQUEST_UPDATE_2DWINDOWS, REQUEST_UPDATE_3DWINDOWS, REQUEST_UPDATE_ALL, and RequestUpdate().
Referenced by QmitkSliceBasedInterpolatorWidget::AcceptAllInterpolations(), QmitkSlicesInterpolator::AcceptAllInterpolations(), mitk::BinaryThresholdTool::AcceptCurrentThresholdValue(), mitk::BinaryThresholdULTool::AcceptCurrentThresholdValue(), mitk::PlanarFigureInteractor::AddInitialPoint(), mitk::SinglePointDataInteractor::AddPoint(), mitk::PlanarFigureInteractor::AddPoint(), mitk::PointSetDataInteractor::AddPoint(), QmitkDataStorageTreeModel::AdjustLayerProperty(), mitk::OtsuTool3D::CalculatePreview(), QmitkBSplineRegistrationView::CalculateTransformation(), QmitkAdaptiveRegionGrowingToolGUI::ChangeLevelWindow(), QmitkLevelWindowWidgetContextMenu::changeScaleRange(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), QmitkToFPointSetWidget::CleanUpWidget(), QmitkPointListView::ClearPointList(), QmitkDataManagerView::ColorChanged(), QmitkDataManagerView::ColormapActionToggled(), mitk::PickingTool::ConfirmSegmentation(), mitk::FastMarchingTool3D::ConfirmSegmentation(), mitk::FastMarchingTool::ConfirmSegmentation(), QmitkBoundingObjectWidget::CreateBoundingObject(), mitk::AffineBaseDataInteractor3D::DataNodeChanged(), mitk::BinaryThresholdTool::Deactivated(), mitk::BinaryThresholdULTool::Deactivated(), mitk::FastMarchingTool3D::Deactivated(), mitk::FastMarchingTool::Deactivated(), mitk::SurfaceDeformationDataInteractor3D::DeformObject(), mitk::AffineImageCropperInteractor::DeformObject(), mitk::PlanarFigureInteractor::DeleteFigure(), mitk::AffineImageCropperInteractor::DeselectObject(), mitk::SurfaceDeformationDataInteractor3D::DeselectObject(), mitk::ClippingPlaneInteractor3D::DeselectObject(), mitk::AffineBaseDataInteractor3D::DeselectObject(), mitk::TubeGraphDataInteractor::DeselectTube(), mitk::WatershedTool::DoIt(), QmitkColorTransferFunctionCanvas::DoubleClickOnHandle(), QmlMitkColorTransferFunctionCanvas::DoubleClickOnHandle(), QmitkDataStorageTreeModel::dropMimeData(), mitk::PlanarFigureInteractor::EndHovering(), mitk::PlanarFigureInteractor::EndInteraction(), QmitkToolReferenceDataSelectionBox::EnsureOnlyReferenceImageIsVisibile(), QmitkPropertyDelegate::eventFilter(), mitk::DiffSliceOperationApplier::ExecuteOperation(), mitk::DiffImageApplier::ExecuteOperation(), mitk::PlanarFigureInteractor::FinalizeFigure(), mitk::PointSetDataInteractor::FinishMove(), mitk::PlanarFigureInteractor::HidePreviewPoint(), InitializeViews(), mitk::SegmentationSink::InsertBelowGroupNode(), QmitkTransferFunctionCanvas::keyPressEvent(), QmlMitkTransferFunctionCanvas::keyPressEvent(), main(), QmitkDataManagerView::MakeAllNodesInvisible(), QmitkTransferFunctionCanvas::mouseMoveEvent(), QmlMitkTransferFunctionCanvas::mouseMoveEvent(), QmlMitkSliderLevelWindowItem::mouseMoveEvent(), QmitkSliderLevelWindowWidget::mouseMoveEvent(), QmitkTransferFunctionCanvas::mousePressEvent(), QmlMitkTransferFunctionCanvas::mousePressEvent(), QmitkTransferFunctionCanvas::mouseReleaseEvent(), QmlMitkTransferFunctionCanvas::mouseReleaseEvent(), QmlMitkStdMultiItem::moveCrossToPosition(), QmitkStdMultiWidget::MoveCrossToPosition(), mitk::PlanarFigureInteractor::MoveCurrentPoint(), mitk::PointSetDataInteractor::MovePoint(), QmitkPointListViewWidget::MoveSelectedPointDown(), QmitkPointListModel::MoveSelectedPointDown(), QmitkPointListViewWidget::MoveSelectedPointUp(), QmitkPointListModel::MoveSelectedPointUp(), QmitkSlicesInterpolator::On3DInterpolationActivated(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), QmitkSliceBasedInterpolatorWidget::OnAcceptInterpolationClicked(), QmitkSlicesInterpolator::OnAcceptInterpolationClicked(), mitk::FastMarchingTool3D::OnAddPoint(), mitk::FastMarchingTool::OnAddPoint(), QmitkPropertyListPopup::onBoolPropertyClicked(), QmitkPointListWidget::OnBtnLoadPoints(), QmitkPropertyListPopup::onColorClicked(), QmitkColorPropertyEditor::onColorSelected(), mitk::FastMarchingTool3D::OnDelete(), mitk::FastMarchingTool::OnDelete(), QmitkTransferFunctionGeneratorWidget::OnDeltaLevelWindow(), QmitkTransferFunctionGeneratorWidget::OnDeltaThreshold(), QmitkSlicesInterpolator::OnInterpolationActivated(), mitk::PaintbrushTool::OnInvertLogic(), QmitkBoundingObjectWidget::OnItemDataChanged(), QmitkPointListView::OnListViewSelectionChanged(), QmitkTransferFunctionGeneratorWidget::OnLoadPreset(), QmitkStdMultiWidgetEditor::OnPreferencesChanged(), QmitkInteractiveTransformationWidget::OnResetGeometry(), QmitkToFVisualisationSettingsWidget::OnSetXValueColor(), QmitkSliceBasedInterpolatorWidget::OnSliceChanged(), QmitkSurfaceStampWidget::OnStamp(), QmitkMaskStampWidget::OnStamp(), QmitkSurfaceBasedInterpolatorWidget::OnToggleWidgetActivation(), QmitkSliceBasedInterpolatorWidget::OnToggleWidgetActivation(), QmitkNumberPropertySlider::onValueChanged(), QmitkNumberPropertyEditor::onValueChanged(), QmitkPythonVariableStackTableView::OnVariableStackDoubleClicked(), QmitkPropertyListPopup::onVisibleClicked(), QmitkDataManagerView::OpacityChanged(), QmitkNumberPropertyEditor::PropertyChanged(), mitk::LimitedLinearUndo::Redo(), mitk::UndoController::Redo(), mitk::PointSetDataInteractor::RemovePoint(), QmitkPointListViewWidget::RemoveSelectedPoint(), QmitkPointListModel::RemoveSelectedPoint(), mitk::PlanarFigureInteractor::RemoveSelectedPoint(), mitk::FastMarchingTool3D::Reset(), mitk::FastMarchingTool::Reset(), QmitkLabelSetWidget::ResetAllTableWidgetItems(), mitk::AffineBaseDataInteractor3D::RestoreNodeProperties(), QmitkInteractiveTransformationWidget::Rotate(), mitk::DisplayInteractor::Rotate(), mitk::AffineBaseDataInteractor3D::RotateGeometry(), mitk::ClippingPlaneInteractor3D::RotateObject(), mitk::AffineImageCropperInteractor::RotateObject(), mitk::AffineBaseDataInteractor3D::RotateObject(), mitk::OtsuTool3D::RunSegmentation(), mitk::AffineBaseDataInteractor3D::ScaleGeometry(), mitk::SurfaceDeformationDataInteractor3D::ScaleRadius(), mitk::AffineImageCropperInteractor::ScaleRadius(), mitk::AffineImageCropperInteractor::SelectObject(), mitk::SurfaceDeformationDataInteractor3D::SelectObject(), mitk::ClippingPlaneInteractor3D::SelectObject(), mitk::AffineBaseDataInteractor3D::SelectObject(), mitk::PointSetDataInteractor::SelectPoint(), mitk::TubeGraphDataInteractor::SelectTube(), mitk::SliceNavigationController::SendSlice(), mitk::SliceNavigationController::SendTime(), QmitkPropertyItemModel::setData(), QmitkDataStorageTreeModel::setData(), QmitkPropertiesTableModel::setData(), QmitkDataStorageTableModel::setData(), QmitkLevelWindowWidgetContextMenu::setDefaultLevelWindow(), QmitkLevelWindowWidgetContextMenu::setDefaultScaleRange(), QmitkBoundingObjectWidget::setEnabled(), QmlMitkColorTransferFunctionCanvas::setGreyValue(), QmlMitkPiecewiseFunctionCanvas::setGreyValue(), QmlMitkSliderLevelWindowItem::setLevel(), QmitkLineEditLevelWindowWidget::SetLevelValue(), QmlMitkProperties::setLod(), QmitkLevelWindowWidgetContextMenu::setMaximumWindow(), QmlMitkProperties::setMode(), QmlMitkPiecewiseFunctionCanvas::setOpacity(), QmitkLevelWindowWidgetContextMenu::setPreset(), mitk::PlanarFigureInteractor::SetPreviewPointPosition(), QmlMitkProperties::setRendering(), mitk::CameraController::SetStandardView(), QmitkStdMultiWidget::SetWidgetPlanesVisibility(), QmlMitkSliderLevelWindowItem::setWindow(), QmitkLineEditLevelWindowWidget::SetWindowValue(), QmitkTransferFunctionCanvas::SetX(), QmlMitkTransferFunctionCanvas::SetX(), QmitkTransferFunctionWidget::SetXValueColor(), QmitkTransferFunctionWidget::SetXValueGradient(), QmitkTransferFunctionWidget::SetXValueScalar(), QmitkTransferFunctionCanvas::SetY(), QmlMitkTransferFunctionCanvas::SetY(), QmitkTransferFunctionWidget::SetYValueGradient(), QmitkTransferFunctionWidget::SetYValueScalar(), QmitkSlicesInterpolator::Show3DInterpolationResult(), QmitkSurfaceBasedInterpolatorWidget::ShowInterpolationResult(), mitk::OtsuTool3D::ShowMultiLabelResultNode(), QmitkDataManagerView::ShowOnlySelectedNodes(), mitk::PlanarFigureInteractor::StartHovering(), Step7::StartRegionGrowing(), Step6::StartRegionGrowing(), mitk::PickingTool::StartRegionGrowing(), QmitkDataManagerView::SurfaceRepresentationActionToggled(), mitk::DisplayInteractor::Swivel(), QmitkDataManagerView::TextureInterpolationToggled(), QmlMitkStdMultiItem::togglePlanes(), QmlMitkDatamanager::toggleVisibility(), QmitkDataManagerView::ToggleVisibilityOfSelectedNodes(), QmitkInteractiveTransformationWidget::Translate(), mitk::AffineBaseDataInteractor3D::TranslateGeometry(), mitk::ClippingPlaneInteractor3D::TranslateObject(), mitk::AffineImageCropperInteractor::TranslateObject(), mitk::LimitedLinearUndo::Undo(), mitk::UndoController::Undo(), mitk::FastMarchingTool3D::Update(), mitk::FastMarchingTool::Update(), mitk::TubeGraphDataInteractor::UpdateActivation(), QmitkLabelSetWidget::UpdateAllTableWidgetItems(), mitk::BinaryThresholdTool::UpdatePreview(), mitk::BinaryThresholdULTool::UpdatePreview(), QmitkSliceBasedInterpolatorWidget::UpdateVisibleSuggestion(), QmitkSlicesInterpolator::UpdateVisibleSuggestion(), mitk::OtsuTool3D::UpdateVolumePreview(), QmitkLevelWindowWidgetContextMenu::useAllGreyvaluesFromImage(), QmitkLevelWindowWidgetContextMenu::useOptimizedLevelWindow(), and mitk::SegTool2D::WriteBackSegmentationResult().
void mitk::RenderingManager::SetClippingPlaneStatus | ( | bool | status | ) |
Definition at line 678 of file mitkRenderingManager.cpp.
References m_ClippingPlaneEnabled.
|
virtual |
Referenced by QmitkStdMultiWidgetEditor::OnPreferencesChanged().
void mitk::RenderingManager::SetDataStorage | ( | mitk::DataStorage * | storage | ) |
Setter / Getter for internal DataStorage.
Sets / returns the mitk::DataStorage that is used internally. This instance holds all mitk::DataNodes that are rendered by the registered BaseRenderers.
If this DataStorage is changed at runtime by calling SetDataStorage(), all currently registered BaseRenderers are automatically given the correct instance. When a new BaseRenderer is added, it is automatically initialized with the currently active DataStorage.
Definition at line 712 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), m_AllRenderWindows, m_DataStorage, and mitk::BaseRenderer::SetDataStorage().
|
static |
Set the object factory which produces the desired platform specific RenderingManager singleton instance.
Definition at line 79 of file mitkRenderingManager.cpp.
References s_RenderingManagerFactory.
Referenced by QmitkRenderingManagerFactory::QmitkRenderingManagerFactory(), QmlMitkRenderingManagerFactory::QmlMitkRenderingManagerFactory(), and mitk::TestingRenderingManagerFactory::TestingRenderingManagerFactory().
|
virtual |
En-/Disable LOD abort mechanism.
|
virtual |
En-/Disable LOD increase globally.
void mitk::RenderingManager::SetMaximumLOD | ( | unsigned int | max | ) |
Set current LOD (NULL means all renderers)
Definition at line 655 of file mitkRenderingManager.cpp.
void mitk::RenderingManager::SetProperty | ( | const char * | propertyKey, |
BaseProperty * | propertyValue | ||
) |
Sets or adds (if not present) a property in m_PropertyList
Definition at line 707 of file mitkRenderingManager.cpp.
References m_PropertyList.
Referenced by InitializePropertyList().
void mitk::RenderingManager::SetRenderWindowFocus | ( | vtkRenderWindow * | focusWindow | ) |
Sets a flag to the given renderwindow to indicated that it has the focus e.g. has been clicked recently.
focusWindow |
Definition at line 727 of file mitkRenderingManager.cpp.
References m_RenderWindowList, and MITK_ERROR.
Referenced by QmitkStdMultiWidget::changeLayoutToBig3D(), QmitkStdMultiWidget::changeLayoutToWidget1(), QmitkStdMultiWidget::changeLayoutToWidget2(), and QmitkStdMultiWidget::changeLayoutToWidget3().
void mitk::RenderingManager::SetShading | ( | bool | state, |
unsigned int | lod | ||
) |
Definition at line 657 of file mitkRenderingManager.cpp.
References m_MaxLOD, and m_ShadingEnabled.
void mitk::RenderingManager::SetShadingValues | ( | float | ambient, |
float | diffuse, | ||
float | specular, | ||
float | specpower | ||
) |
Definition at line 680 of file mitkRenderingManager.cpp.
References m_ShadingValues.
|
inlinevirtual |
Force a sub-class to start a timer for a pending hires-rendering request
Reimplemented in QmitkRenderingManager, and QmlMitkRenderingManager.
Definition at line 228 of file mitkRenderingManager.h.
Referenced by RenderingEndCallback().
|
protected |
Definition at line 339 of file mitkRenderingManager.h.
Referenced by AddRenderWindow(), GetAllRegisteredRenderWindows(), RemoveRenderWindow(), SetDataStorage(), and ~RenderingManager().
|
protected |
Definition at line 328 of file mitkRenderingManager.h.
Referenced by GetClippingPlaneStatus(), and SetClippingPlaneStatus().
|
protected |
Definition at line 359 of file mitkRenderingManager.h.
Referenced by InitializeViews().
|
protected |
Definition at line 357 of file mitkRenderingManager.h.
Referenced by AddRenderWindow(), GetDataStorage(), and SetDataStorage().
|
protected |
Definition at line 324 of file mitkRenderingManager.h.
Referenced by RenderingProgressCallback().
|
protected |
Definition at line 322 of file mitkRenderingManager.h.
|
protected |
Definition at line 320 of file mitkRenderingManager.h.
Referenced by GetShading(), SetMaximumLOD(), and SetShading().
|
protected |
Definition at line 318 of file mitkRenderingManager.h.
Referenced by ExecutePendingHighResRenderingRequest(), GetNextLOD(), and RenderingEndCallback().
|
protected |
Definition at line 355 of file mitkRenderingManager.h.
Referenced by GetProperty(), GetPropertyList(), InitializePropertyList(), and SetProperty().
|
protected |
Definition at line 316 of file mitkRenderingManager.h.
Referenced by AbortRendering().
|
protected |
Definition at line 348 of file mitkRenderingManager.h.
Referenced by AddRenderWindow(), RemoveRenderWindow(), and ~RenderingManager().
|
protected |
Definition at line 338 of file mitkRenderingManager.h.
Referenced by AbortRendering(), AddRenderWindow(), ExecutePendingHighResRenderingRequest(), ExecutePendingRequests(), ForceImmediateUpdate(), ForceImmediateUpdateAll(), InitializeViews(), IsRendering(), RemoveRenderWindow(), RenderingEndCallback(), RenderingStartCallback(), RequestUpdate(), RequestUpdateAll(), and SetRenderWindowFocus().
|
protected |
Definition at line 326 of file mitkRenderingManager.h.
Referenced by GetShading(), and SetShading().
|
protected |
Definition at line 330 of file mitkRenderingManager.h.
Referenced by GetShadingValues(), and SetShadingValues().
|
protected |
Definition at line 350 of file mitkRenderingManager.h.
Referenced by GetTimeNavigationController(), InitializeView(), and InitializeViews().
|
protected |
Definition at line 311 of file mitkRenderingManager.h.
Referenced by ExecutePendingRequests(), ForceImmediateUpdate(), RenderingStartCallback(), and RequestUpdate().
|
staticprotected |
Definition at line 352 of file mitkRenderingManager.h.
Referenced by GetInstance(), and IsInstantiated().
|
staticprotected |
Definition at line 353 of file mitkRenderingManager.h.
Referenced by GetFactory(), GetInstance(), HasFactory(), and SetFactory().