Medical Imaging Interaction Toolkit
2018.4.99-389bf124
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 () |
~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 () |
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) |
virtual AntiAliasing | GetAntiAliasing () |
void | SetAntiAliasing (AntiAliasing antiAliasing) |
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 76 of file mitkRenderingManager.h.
typedef std::vector<bool> mitk::RenderingManager::BoolVector |
Definition at line 83 of file mitkRenderingManager.h.
typedef itk::SmartPointer<const Self> mitk::RenderingManager::ConstPointer |
Definition at line 79 of file mitkRenderingManager.h.
Definition at line 85 of file mitkRenderingManager.h.
typedef std::vector<float> mitk::RenderingManager::FloatVector |
Definition at line 82 of file mitkRenderingManager.h.
Definition at line 79 of file mitkRenderingManager.h.
|
protected |
Definition at line 315 of file mitkRenderingManager.h.
|
protected |
Definition at line 314 of file mitkRenderingManager.h.
|
protected |
Definition at line 347 of file mitkRenderingManager.h.
|
protected |
Definition at line 337 of file mitkRenderingManager.h.
typedef std::vector<vtkRenderWindow *> mitk::RenderingManager::RenderWindowVector |
Definition at line 79 of file mitkRenderingManager.h.
Definition at line 79 of file mitkRenderingManager.h.
typedef itk::Object mitk::RenderingManager::Superclass |
Definition at line 79 of file mitkRenderingManager.h.
|
protected |
Enumerator | |
---|---|
RENDERING_INACTIVE | |
RENDERING_REQUESTED | |
RENDERING_INPROGRESS |
Definition at line 297 of file mitkRenderingManager.h.
Enumerator | |
---|---|
REQUEST_UPDATE_ALL | |
REQUEST_UPDATE_2DWINDOWS | |
REQUEST_UPDATE_3DWINDOWS |
Definition at line 87 of file mitkRenderingManager.h.
|
override |
Definition at line 57 of file mitkRenderingManager.cpp.
References m_AllRenderWindows, and m_RenderWindowCallbacksList.
|
protected |
Definition at line 39 of file mitkRenderingManager.cpp.
References mitk::FastApproximate, InitializePropertyList(), m_ShadingEnabled, and m_ShadingValues.
void mitk::RenderingManager::AbortRendering | ( | ) |
Definition at line 605 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 120 of file mitkRenderingManager.cpp.
References mitk::RenderingManager::RenderWindowCallbacks::commands, mitk::BaseRenderer::GetInstance(), m_AllRenderWindows, m_DataStorage, m_RenderWindowCallbacksList, m_RenderWindowList, RENDERING_INACTIVE, RenderingEndCallback(), RenderingProgressCallback(), RenderingStartCallback(), and mitk::BaseRenderer::SetDataStorage().
|
inlinevirtual |
Reimplemented in QmitkRenderingManager.
Definition at line 232 of file mitkRenderingManager.h.
References max().
|
inlinevirtual |
Reimplemented in QmitkRenderingManager.
Definition at line 231 of file mitkRenderingManager.h.
|
inlinevirtual |
Definition at line 230 of file mitkRenderingManager.h.
void mitk::RenderingManager::ExecutePendingHighResRenderingRequest | ( | ) |
To be called by a sub-class from a timer callback
Definition at line 630 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 519 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 214 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), m_RenderWindowList, m_UpdatePending, mitk::VtkPropRenderer::PrepareRender(), and RENDERING_INACTIVE.
Referenced by ExecutePendingRequests(), QmitkRenderWindowWidget::ForceImmediateUpdate(), mitk::BaseRenderer::ForceImmediateUpdate(), ForceImmediateUpdateAll(), mitk::RegionGrowingTool::OnMouseMoved(), QmitkRenderWindow::resizeGL(), 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 263 of file mitkRenderingManager.cpp.
References ForceImmediateUpdate(), mitk::BaseRenderer::GetInstance(), mitk::BaseRenderer::GetMapperID(), m_RenderWindowList, REQUEST_UPDATE_2DWINDOWS, REQUEST_UPDATE_3DWINDOWS, and REQUEST_UPDATE_ALL.
Referenced by mitk::GizmoInteractor::SetManipulatedObjectNode().
|
protectedpure virtual |
Abstract method for generating a system specific event for rendering request. This method is called whenever an update is requested
Implemented in mitk::TestingRenderingManager, and QmitkRenderingManager.
Referenced by RequestUpdate().
const RenderingManager::RenderWindowVector & mitk::RenderingManager::GetAllRegisteredRenderWindows | ( | ) |
Get a list of all registered RenderWindows
Definition at line 186 of file mitkRenderingManager.cpp.
References m_AllRenderWindows.
Referenced by mitk::DisplayInteractor::CheckRotationPossible(), mitk::DisplayActionEventBroadcast::CheckRotationPossible(), mitk::DisplayInteractor::CheckSwivelPossible(), mitk::DisplayActionEventBroadcast::CheckSwivelPossible(), QmitkBoundingObjectWidget::CreateBoundingObject(), QmitkDataNodeOpenInAction::SetControlledRenderer(), and mitk::DisplayInteractor::SetCrosshair().
|
virtual |
|
inlinevirtual |
Reimplemented in mitk::TestingRenderingManager.
Definition at line 79 of file mitkRenderingManager.h.
|
virtual |
Reimplemented in mitk::TestingRenderingManager.
bool mitk::RenderingManager::GetClippingPlaneStatus | ( | ) |
Definition at line 672 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 719 of file mitkRenderingManager.cpp.
References m_DataStorage.
|
static |
Get the object factory which produces the platform specific RenderingManager instances.
Definition at line 78 of file mitkRenderingManager.cpp.
References s_RenderingManagerFactory.
Referenced by New().
|
virtual |
|
static |
Get the RenderingManager singleton instance.
Definition at line 99 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(), QmitkRenderWindowWidget::ActivateCrosshair(), mitk::PlanarFigureInteractor::AddInitialPoint(), mitk::RenderingTestHelper::AddNodeToStorage(), QmitkOverlayController::AddOverlay(), mitk::SinglePointDataInteractor::AddPoint(), mitk::PlanarFigureInteractor::AddPoint(), mitk::PointSetDataInteractor::AddPoint(), mitk::VtkAnnotation::AddToRenderer(), mitk::RenderingTestHelper::AddToStorage(), QmitkDataStorageTreeModel::AdjustLayerProperty(), mitk::DisplayInteractor::AdjustLevelWindow(), mitk::BaseRenderer::BaseRenderer(), mitk::OtsuTool3D::CalculatePreview(), mitk::SegmentationInteractor::ChangeActiveLabel(), QmitkAdaptiveRegionGrowingToolGUI::ChangeLevelWindow(), QmitkSurfaceBasedInterpolatorWidget::ChangeSurfaceColor(), QmitkSlicesInterpolator::ChangeSurfaceColor(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), mitk::BoundingShapeInteractor::CheckOverHandles(), mitk::DisplayInteractor::CheckRotationPossible(), mitk::DisplayActionEventBroadcast::CheckRotationPossible(), mitk::DisplayInteractor::CheckSwivelPossible(), mitk::DisplayActionEventBroadcast::CheckSwivelPossible(), QmitkToFPointSetWidget::CleanUpWidget(), QmitkPointListView::ClearPointList(), mitk::LiveWireTool2D::ClearSegmentation(), mitk::PickingTool::ConfirmSegmentation(), mitk::FastMarchingTool3D::ConfirmSegmentation(), mitk::FastMarchingTool::ConfirmSegmentation(), QmitkAdaptiveRegionGrowingToolGUI::ConfirmSegmentation(), mitk::ExampleInteractor::ConnectActionsAndFunctions(), QmitkBoundingObjectWidget::CreateBoundingObject(), mitk::AffineBaseDataInteractor3D::DataNodeChanged(), mitk::BoundingShapeInteractor::DataNodeChanged(), mitk::BinaryThresholdTool::Deactivated(), mitk::BinaryThresholdULTool::Deactivated(), mitk::FastMarchingTool3D::Deactivated(), mitk::FastMarchingTool::Deactivated(), mitk::DisplayInteractor::DecreaseTimeStep(), mitk::DisplayActionEventBroadcast::DecreaseTimeStep(), mitk::SurfaceDeformationDataInteractor3D::DeformObject(), mitk::AffineImageCropperInteractor::DeformObject(), mitk::PlanarFigureInteractor::DeleteFigure(), mitk::BoundingShapeInteractor::DeselectHandles(), mitk::ClippingPlaneInteractor3D::DeselectObject(), mitk::SurfaceDeformationDataInteractor3D::DeselectObject(), mitk::AffineImageCropperInteractor::DeselectObject(), mitk::AffineBaseDataInteractor3D::DeselectObject(), mitk::BoundingShapeInteractor::DeselectObject(), mitk::TubeGraphDataInteractor::DeselectTube(), mitk::RenderWindowBase::Destroy(), mitk::WatershedTool::DoIt(), QmitkColorTransferFunctionCanvas::DoubleClickOnHandle(), QmitkDataStorageTreeModel::dropMimeData(), QmitkAdaptiveRegionGrowingToolGUI::EnableControls(), mitk::PlanarFigureInteractor::EndHovering(), mitk::PlanarFigureInteractor::EndInteraction(), QmitkToolReferenceDataSelectionBox::EnsureOnlyReferenceImageIsVisibile(), QmitkPropertyDelegate::eventFilter(), mitk::DiffSliceOperationApplier::ExecuteOperation(), mitk::DiffImageApplier::ExecuteOperation(), mitk::PlanarFigureInteractor::FinalizeFigure(), mitk::PointSetDataInteractor::FinishMove(), QmitkRenderWindowWidget::ForceImmediateUpdate(), mitk::BaseRenderer::ForceImmediateUpdate(), mitk::GPUVolumeMapper3D::GenerateDataCPU(), mitk::GPUVolumeMapper3D::GenerateDataRAY(), mitk::RenderWindowLayerController::HideDataNodeInAllRenderer(), mitk::PlanarFigureInteractor::HidePreviewPoint(), mitk::DisplayInteractor::IncreaseTimeStep(), mitk::DisplayActionEventBroadcast::IncreaseTimeStep(), mitk::RenderWindowBase::Initialize(), mitk::InteractionTestHelper::Initialize(), mitk::RenderingTestHelper::Initialize(), QmitkDataNodeShowSelectedNodesAction::InitializeAction(), QmitkDataNodeSurfaceRepresentationAction::InitializeAction(), QmitkDataNodeColorMapAction::InitializeAction(), QmitkDataNodeOpenInAction::InitializeAction(), mitk::RenderWindowViewDirectionController::InitializeViewByBoundingObjects(), InitializeWindows(), QmitkDataNodeTextureInterpolationAction::InitializeWithDataNode(), QmitkDataNodeColorAction::InitializeWithDataNode(), QmitkDataNodeOpacityAction::InitializeWithDataNode(), QmitkSliceWidget::InitWidget(), mitk::SegmentationSink::InsertBelowGroupNode(), mitk::RenderWindowLayerController::InsertLayerNode(), mitk::ContourModelInteractor::IsHovering(), mitk::ContourModelLiveWireInteractor::IsHovering(), QmitkTransferFunctionCanvas::keyPressEvent(), mitk::WorkbenchUtil::LoadFiles(), main(), mitkRenderingManagerTest(), mitkSurfaceVtkMapper3DTest(), mitkViewportRenderingTest(), mitk::PaintbrushTool::MouseMoved(), QmitkTransferFunctionCanvas::mouseMoveEvent(), QmitkSliderLevelWindowWidget::mouseMoveEvent(), QmitkTransferFunctionCanvas::mousePressEvent(), QmitkTransferFunctionCanvas::mouseReleaseEvent(), mitk::DisplayInteractor::Move(), mitk::PlanarFigureInteractor::MoveCurrentPoint(), mitk::RenderWindowLayerController::MoveNodeDown(), mitk::RenderWindowLayerController::MoveNodeToBack(), mitk::RenderWindowLayerController::MoveNodeToFront(), mitk::RenderWindowLayerController::MoveNodeToPosition(), mitk::RenderWindowLayerController::MoveNodeUp(), 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::OnBtnAddPointManually(), QmitkPointListWidget::OnBtnLoadPoints(), QmitkLevelWindowWidgetContextMenu::OnChangeScaleRange(), 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(), QmitkMxNMultiWidgetEditor::OnInteractionSchemeChanged(), QmitkSlicesInterpolator::OnInterpolationActivated(), mitk::PaintbrushTool::OnInvertLogic(), QmitkBoundingObjectWidget::OnItemDataChanged(), QmitkPointListView::OnListViewSelectionChanged(), QmitkTransferFunctionGeneratorWidget::OnLoadPreset(), QmitkNavigationToolManagementWidget::OnLoadStorage(), QmitkNavigationToolCreationWidget::OnLoadSurface(), QmitkNavigationToolManagementWidget::OnLoadTool(), 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(), QmitkInteractiveTransformationWidget::OnResetGeometryToIdentity(), QmitkInteractiveTransformationWidget::OnRevertChanges(), QmitkLevelWindowWidgetContextMenu::OnSetDefaultLevelWindow(), QmitkLevelWindowWidgetContextMenu::OnSetDefaultScaleRange(), QmitkLevelWindowWidgetContextMenu::OnSetMaximumWindow(), QmitkLevelWindowWidgetContextMenu::OnSetPreset(), QmitkToFVisualisationSettingsWidget::OnSetXValueColor(), QmitkSliceBasedInterpolatorWidget::OnSliceChanged(), QmitkSurfaceStampWidget::OnStamp(), QmitkMaskStampWidget::OnStamp(), QmitkNavigationToolCreationWidget::OnSurfaceUseToggled(), QmitkSurfaceBasedInterpolatorWidget::OnToggleWidgetActivation(), QmitkSliceBasedInterpolatorWidget::OnToggleWidgetActivation(), QmitkRenderWindowMenu::OnTSNumChanged(), QmitkLevelWindowWidgetContextMenu::OnUseAllGreyvaluesFromImage(), QmitkLevelWindowWidgetContextMenu::OnUseOptimizedLevelWindow(), QmitkNumberPropertySlider::onValueChanged(), QmitkNumberPropertyEditor::onValueChanged(), QmitkPythonVariableStackTableView::OnVariableStackDoubleClicked(), QmitkPropertyListPopup::onVisibleClicked(), QmitkInteractiveTransformationWidget::OnXTranslationValueChanged(), QmitkInteractiveTransformationWidget::OnYTranslationValueChanged(), QmitkInteractiveTransformationWidget::OnZTranslationValueChanged(), mitk::InteractionTestHelper::PlaybackInteraction(), mitk::Dispatcher::ProcessEvent(), QmitkNumberPropertyEditor::PropertyChanged(), QmitkStdMultiWidget::QmitkStdMultiWidget(), mitk::Dispatcher::QueueEvent(), mitk::LimitedLinearUndo::Redo(), mitk::UndoController::Redo(), QmitkFiducialRegistrationWidget::Register(), mitk::VtkAnnotation::RemoveFromRenderer(), mitk::RenderWindowLayerController::RemoveLayerNode(), mitk::PointSetDataInteractor::RemovePoint(), QmitkPointListViewWidget::RemoveSelectedPoint(), QmitkPointListModel::RemoveSelectedPoint(), mitk::PlanarFigureInteractor::RemoveSelectedPoint(), RenderingEndCallback(), RenderingProgressCallback(), RenderingStartCallback(), QmitkRenderWindowWidget::RequestUpdate(), mitk::BaseRenderer::RequestUpdate(), mitk::FastMarchingTool3D::Reset(), mitk::FastMarchingTool::Reset(), QmitkLabelSetWidget::ResetAllTableWidgetItems(), QmitkStdMultiWidget::ResetCrosshair(), QmitkMxNMultiWidget::ResetCrosshair(), mitk::RenderWindowLayerController::ResetRenderer(), mitk::VtkPropRenderer::Resize(), QmitkRenderWindow::resizeGL(), mitk::AffineBaseDataInteractor3D::RestoreNodeProperties(), mitk::BoundingShapeInteractor::RestoreNodeProperties(), QmitkInteractiveTransformationWidget::Rotate(), mitk::DisplayActionEventBroadcast::Rotate(), mitk::DisplayInteractor::Rotate(), mitk::CameraRotationController::RotateCamera(), mitk::AffineBaseDataInteractor3D::RotateGeometry(), mitk::ClippingPlaneInteractor3D::RotateObject(), mitk::AffineImageCropperInteractor::RotateObject(), mitk::AffineBaseDataInteractor3D::RotateObject(), HideAllAction::Run(), GlobalReinitAction::Run(), ToggleVisibilityAction::Run(), ReinitAction::Run(), mitk::OtsuTool3D::RunSegmentation(), QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation(), SaveSliceOrImageAsPNG(), mitk::AffineBaseDataInteractor3D::ScaleGeometry(), mitk::BoundingShapeInteractor::ScaleObject(), mitk::SurfaceDeformationDataInteractor3D::ScaleRadius(), mitk::AffineImageCropperInteractor::ScaleRadius(), mitk::BoundingShapeInteractor::SelectHandle(), mitk::ClippingPlaneInteractor3D::SelectObject(), mitk::SurfaceDeformationDataInteractor3D::SelectObject(), mitk::AffineImageCropperInteractor::SelectObject(), mitk::AffineBaseDataInteractor3D::SelectObject(), mitk::BoundingShapeInteractor::SelectObject(), mitk::PointSetDataInteractor::SelectPoint(), mitk::TubeGraphDataInteractor::SelectTube(), mitk::SliceNavigationController::SendSlice(), mitk::SliceNavigationController::SendTime(), SetAntiAliasing(), mitk::RenderWindowLayerController::SetBaseDataNode(), QmitkDataNodeOpenInAction::SetControlledRenderer(), mitk::DisplayInteractor::SetCrosshair(), QmitkPropertyItemModel::setData(), QmitkRenderWindowDataStorageListModel::setData(), QmitkRenderWindowDataStorageTreeModel::setData(), QmitkDataStorageLayerStackModel::setData(), QmitkDataStorageTreeModel::setData(), QmitkPropertiesTableModel::setData(), QmitkDataStorageTableModel::setData(), QmitkInteractiveTransformationWidget::SetDefaultRotation(), QmitkBoundingObjectWidget::setEnabled(), QmitkLineEditLevelWindowWidget::SetLevelValue(), mitk::GizmoInteractor::SetManipulatedObjectNode(), mitk::RenderingTestHelper::SetMapperIDToRender3D(), QmitkLabelSetWidget::SetOrganColors(), mitk::PlanarFigureInteractor::SetPreviewPointPosition(), mitk::CameraController::SetStandardView(), mitk::InteractionTestHelper::SetTimeStep(), Step8::SetupWidgets(), mitk::RenderingTestHelper::SetViewDirection(), mitk::RenderWindowLayerController::SetVisibilityOfDataNode(), QmitkStdMultiWidget::SetWidgetPlanesVisibility(), QmitkLineEditLevelWindowWidget::SetWindowValue(), QmitkTransferFunctionCanvas::SetX(), QmitkTransferFunctionWidget::SetXValueColor(), QmitkTransferFunctionWidget::SetXValueGradient(), QmitkTransferFunctionWidget::SetXValueScalar(), QmitkTransferFunctionCanvas::SetY(), QmitkTransferFunctionWidget::SetYValueGradient(), QmitkTransferFunctionWidget::SetYValueScalar(), QmitkSlicesInterpolator::Show3DInterpolationResult(), QmitkSurfaceBasedInterpolatorWidget::ShowInterpolationResult(), QmitkStdMultiWidgetEditor::ShowLevelWindowWidget(), mitk::OtsuTool3D::ShowMultiLabelResultNode(), QmitkNavigationToolCreationWidget::ShowToolPreview(), QmitkProgressBar::SlotAddStepsToDo(), QmitkProgressBar::SlotProgress(), mitk::PlanarFigureInteractor::StartHovering(), Step7::StartRegionGrowing(), Step6::StartRegionGrowing(), mitk::PickingTool::StartRegionGrowing(), QmitkSurfaceBasedInterpolatorWidget::StopUpdateInterpolationTimer(), QmitkSlicesInterpolator::StopUpdateInterpolationTimer(), mitk::DisplayActionEventBroadcast::Swivel(), mitk::DisplayInteractor::Swivel(), mitk::AffineBaseDataInteractor3D::TranslateGeometry(), mitk::ClippingPlaneInteractor3D::TranslateObject(), mitk::AffineImageCropperInteractor::TranslateObject(), mitk::BoundingShapeInteractor::TranslateObject(), mitk::LimitedLinearUndo::Undo(), mitk::UndoController::Undo(), mitk::PointSetDataInteractor::UnSelectAll(), mitk::PointSetDataInteractor::UnSelectPointAtPosition(), mitk::FastMarchingTool3D::Update(), mitk::FastMarchingTool::Update(), mitk::TubeGraphDataInteractor::UpdateActivation(), QmitkLabelSetWidget::UpdateAllTableWidgetItems(), QmitkLabelSetWidget::UpdateControls(), QmitkSliceWidget::UpdateGL(), mitk::BinaryThresholdTool::UpdatePreview(), mitk::BinaryThresholdULTool::UpdatePreview(), QmitkVideoBackground::UpdateVideo(), QmitkSliceBasedInterpolatorWidget::UpdateVisibleSuggestion(), QmitkSlicesInterpolator::UpdateVisibleSuggestion(), mitk::OtsuTool3D::UpdateVolumePreview(), mitk::SegTool2D::WriteBackSegmentationResult(), mitk::MovieGenerator::WriteCurrentFrameToMovie(), mitk::MovieGenerator::WriteMovie(), mitk::DisplayInteractor::Zoom(), mitk::InteractionTestHelper::~InteractionTestHelper(), mitk::LiveWireTool2D::~LiveWireTool2D(), and QmitkLabelSetWidget::~QmitkLabelSetWidget().
|
virtual |
En-/Disable LOD abort mechanism.
|
virtual |
En-/Disable LOD increase globally.
int mitk::RenderingManager::GetNextLOD | ( | BaseRenderer * | renderer | ) |
Definition at line 618 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 695 of file mitkRenderingManager.cpp.
References m_PropertyList.
PropertyList::Pointer mitk::RenderingManager::GetPropertyList | ( | ) | const |
Returns a property list
Definition at line 694 of file mitkRenderingManager.cpp.
References m_PropertyList.
bool mitk::RenderingManager::GetShading | ( | unsigned int | lod | ) |
Definition at line 660 of file mitkRenderingManager.cpp.
References m_MaxLOD, and m_ShadingEnabled.
RenderingManager::FloatVector & mitk::RenderingManager::GetShadingValues | ( | ) |
Definition at line 681 of file mitkRenderingManager.cpp.
References m_ShadingValues.
|
inlinestatic |
Definition at line 79 of file mitkRenderingManager.h.
const SliceNavigationController * mitk::RenderingManager::GetTimeNavigationController | ( | ) | const |
Gets the (global) SliceNavigationController responsible for time-slicing.
Definition at line 509 of file mitkRenderingManager.cpp.
References m_TimeNavigationController.
Referenced by mitk::DisplayInteractor::DecreaseTimeStep(), mitk::DisplayActionEventBroadcast::DecreaseTimeStep(), mitk::WatershedTool::DoIt(), mitk::DisplayInteractor::IncreaseTimeStep(), mitk::DisplayActionEventBroadcast::IncreaseTimeStep(), 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 514 of file mitkRenderingManager.cpp.
References m_TimeNavigationController.
|
static |
Returns true if a factory has already been set.
Definition at line 79 of file mitkRenderingManager.cpp.
Referenced by mitk::TestingRenderingManagerFactory::TestingRenderingManagerFactory().
|
protectedvirtual |
Definition at line 682 of file mitkRenderingManager.cpp.
References m_PropertyList, mitk::BoolProperty::New(), mitk::PropertyList::New(), and SetProperty().
Referenced by RenderingManager().
|
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 417 of file mitkRenderingManager.cpp.
References mitk::BaseGeometry::Clone(), and mitk::ProportionalTimeGeometry::New().
Referenced by QmitkDataNodeOpenInAction::InitializeAction(), mitk::RenderWindowViewDirectionController::InitializeViewByBoundingObjects(), and ReinitAction::Run().
|
virtual |
Definition at line 426 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 460 of file mitkRenderingManager.cpp.
References mitk::CameraController::Fit(), mitk::BaseRenderer::GetCameraController(), mitk::BaseRenderer::GetInstance(), mitk::BaseController::GetSlice(), mitk::BaseRenderer::GetSliceNavigationController(), mitk::Stepper::GetSteps(), RequestUpdate(), mitk::SliceNavigationController::SetInputWorldTimeGeometry(), mitk::Stepper::SetPos(), mitk::SliceNavigationController::SetViewDirectionToDefault(), mitk::CameraController::SetViewToAnterior(), mitk::BaseRenderer::Standard2D, 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 298 of file mitkRenderingManager.cpp.
References mitk::BaseGeometry::Clone(), and mitk::ProportionalTimeGeometry::New().
Referenced by QmitkRenderWindowWidget::ActivateCrosshair(), mitk::RenderingTestHelper::AddNodeToStorage(), mitk::RenderingTestHelper::AddToStorage(), QmitkDataStorageTreeModel::dropMimeData(), InitializeViewsByBoundingObjects(), main(), mitkViewportRenderingTest(), QmitkToFSurfaceGenerationWidget::OnCompute3DDataCheckboxChecked(), QmitkPythonVariableStackTableView::OnVariableStackDoubleClicked(), ReinitAction::Run(), SaveSliceOrImageAsPNG(), mitk::RenderingTestHelper::SetMapperIDToRender3D(), Step8::SetupWidgets(), mitk::RenderingTestHelper::SetViewDirection(), and QmitkStdMultiWidget::SetWidgetPlanesVisibility().
|
virtual |
Definition at line 307 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 390 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 279 of file mitkRenderingManager.cpp.
References mitk::DataStorage::ComputeBoundingGeometry3D(), mitk::DataStorage::GetSubset(), InitializeViews(), mitk::BoolProperty::New(), mitk::NodePredicateNot::New(), and mitk::NodePredicateProperty::New().
Referenced by mitk::WorkbenchUtil::LoadFiles(), mitkSurfaceVtkMapper3DTest(), QmitkMxNMultiWidgetEditor::OnInteractionSchemeChanged(), QmitkNavigationToolManagementWidget::OnLoadStorage(), QmitkNavigationToolCreationWidget::OnLoadSurface(), QmitkNavigationToolManagementWidget::OnLoadTool(), QmitkNavigationToolCreationWidget::OnSurfaceUseToggled(), mitk::InteractionTestHelper::PlaybackInteraction(), QmitkFiducialRegistrationWidget::Register(), QmitkStdMultiWidget::ResetCrosshair(), QmitkMxNMultiWidget::ResetCrosshair(), GlobalReinitAction::Run(), mitk::InteractionTestHelper::SetTimeStep(), QmitkStdMultiWidgetEditor::ShowLevelWindowWidget(), and QmitkNavigationToolCreationWidget::ShowToolPreview().
|
static |
Returns true if the singleton instance does already exist.
Definition at line 112 of file mitkRenderingManager.cpp.
bool mitk::RenderingManager::IsRendering | ( | ) | const |
Definition at line 592 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 91 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 161 of file mitkRenderingManager.cpp.
References m_AllRenderWindows, m_RenderWindowCallbacksList, and m_RenderWindowList.
Referenced by mitk::RenderWindowBase::Destroy().
|
staticprotected |
Definition at line 564 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), GetInstance(), and RENDERING_INACTIVE.
Referenced by AddRenderWindow().
|
staticprotected |
Definition at line 546 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), and GetInstance().
Referenced by AddRenderWindow().
|
staticprotected |
Definition at line 535 of file mitkRenderingManager.cpp.
References GetInstance(), 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 191 of file mitkRenderingManager.cpp.
References GenerateRenderingRequestEvent(), m_RenderWindowList, m_UpdatePending, and RENDERING_REQUESTED.
Referenced by QmitkRenderWindowWidget::ActivateCrosshair(), mitk::VtkAnnotation::AddToRenderer(), QmitkSurfaceBasedInterpolatorWidget::ChangeSurfaceColor(), QmitkSlicesInterpolator::ChangeSurfaceColor(), mitk::LiveWireTool2D::ClearSegmentation(), ExecutePendingHighResRenderingRequest(), QmitkDataNodeShowSelectedNodesAction::InitializeAction(), QmitkDataNodeSurfaceRepresentationAction::InitializeAction(), QmitkDataNodeColorMapAction::InitializeAction(), InitializeView(), QmitkDataNodeTextureInterpolationAction::InitializeWithDataNode(), QmitkDataNodeColorAction::InitializeWithDataNode(), QmitkDataNodeOpacityAction::InitializeWithDataNode(), QmitkSliceWidget::InitWidget(), mitk::RenderWindowLayerController::InsertLayerNode(), mitk::ContourModelInteractor::IsHovering(), mitk::ContourModelLiveWireInteractor::IsHovering(), mitk::PaintbrushTool::MouseMoved(), mitk::DisplayInteractor::Move(), mitk::RenderWindowLayerController::MoveNodeDown(), mitk::RenderWindowLayerController::MoveNodeToBack(), mitk::RenderWindowLayerController::MoveNodeToFront(), mitk::RenderWindowLayerController::MoveNodeToPosition(), mitk::RenderWindowLayerController::MoveNodeUp(), mitk::ContourModelInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnDeletePoint(), mitk::ContourModelInteractor::OnFinishEditing(), mitk::ContourModelLiveWireInteractor::OnFinishEditing(), mitk::ContourTool::OnMouseMoved(), mitk::CorrectorTool2D::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(), mitk::VtkAnnotation::RemoveFromRenderer(), mitk::RenderWindowLayerController::RemoveLayerNode(), QmitkRenderWindowWidget::RequestUpdate(), mitk::BaseRenderer::RequestUpdate(), RequestUpdateAll(), mitk::RenderWindowLayerController::ResetRenderer(), mitk::VtkPropRenderer::Resize(), mitk::CameraRotationController::RotateCamera(), HideAllAction::Run(), ToggleVisibilityAction::Run(), mitk::RenderWindowLayerController::SetBaseDataNode(), QmitkRenderWindowDataStorageListModel::setData(), QmitkRenderWindowDataStorageTreeModel::setData(), QmitkDataStorageLayerStackModel::setData(), mitk::RenderWindowLayerController::SetVisibilityOfDataNode(), QmitkSurfaceBasedInterpolatorWidget::StopUpdateInterpolationTimer(), QmitkSlicesInterpolator::StopUpdateInterpolationTimer(), QmitkSliceWidget::UpdateGL(), QmitkVideoBackground::UpdateVideo(), and mitk::DisplayInteractor::Zoom().
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 249 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::DisplayInteractor::AdjustLevelWindow(), mitk::OtsuTool3D::CalculatePreview(), mitk::SegmentationInteractor::ChangeActiveLabel(), QmitkAdaptiveRegionGrowingToolGUI::ChangeLevelWindow(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), mitk::BoundingShapeInteractor::CheckOverHandles(), QmitkToFPointSetWidget::CleanUpWidget(), QmitkPointListView::ClearPointList(), mitk::PickingTool::ConfirmSegmentation(), mitk::FastMarchingTool3D::ConfirmSegmentation(), mitk::FastMarchingTool::ConfirmSegmentation(), QmitkAdaptiveRegionGrowingToolGUI::ConfirmSegmentation(), mitk::ExampleInteractor::ConnectActionsAndFunctions(), QmitkBoundingObjectWidget::CreateBoundingObject(), mitk::AffineBaseDataInteractor3D::DataNodeChanged(), mitk::BoundingShapeInteractor::DataNodeChanged(), mitk::BinaryThresholdTool::Deactivated(), mitk::BinaryThresholdULTool::Deactivated(), mitk::FastMarchingTool3D::Deactivated(), mitk::FastMarchingTool::Deactivated(), mitk::SurfaceDeformationDataInteractor3D::DeformObject(), mitk::AffineImageCropperInteractor::DeformObject(), mitk::PlanarFigureInteractor::DeleteFigure(), mitk::BoundingShapeInteractor::DeselectHandles(), mitk::ClippingPlaneInteractor3D::DeselectObject(), mitk::AffineImageCropperInteractor::DeselectObject(), mitk::SurfaceDeformationDataInteractor3D::DeselectObject(), mitk::AffineBaseDataInteractor3D::DeselectObject(), mitk::BoundingShapeInteractor::DeselectObject(), mitk::TubeGraphDataInteractor::DeselectTube(), mitk::WatershedTool::DoIt(), QmitkColorTransferFunctionCanvas::DoubleClickOnHandle(), QmitkDataStorageTreeModel::dropMimeData(), QmitkAdaptiveRegionGrowingToolGUI::EnableControls(), mitk::PlanarFigureInteractor::EndHovering(), mitk::PlanarFigureInteractor::EndInteraction(), QmitkToolReferenceDataSelectionBox::EnsureOnlyReferenceImageIsVisibile(), QmitkPropertyDelegate::eventFilter(), mitk::DiffSliceOperationApplier::ExecuteOperation(), mitk::DiffImageApplier::ExecuteOperation(), mitk::PlanarFigureInteractor::FinalizeFigure(), mitk::PointSetDataInteractor::FinishMove(), mitk::RenderWindowLayerController::HideDataNodeInAllRenderer(), mitk::PlanarFigureInteractor::HidePreviewPoint(), QmitkDataNodeShowSelectedNodesAction::InitializeAction(), QmitkDataNodeSurfaceRepresentationAction::InitializeAction(), QmitkDataNodeColorMapAction::InitializeAction(), InitializeViews(), QmitkDataNodeTextureInterpolationAction::InitializeWithDataNode(), QmitkDataNodeColorAction::InitializeWithDataNode(), QmitkDataNodeOpacityAction::InitializeWithDataNode(), mitk::SegmentationSink::InsertBelowGroupNode(), QmitkTransferFunctionCanvas::keyPressEvent(), main(), QmitkTransferFunctionCanvas::mouseMoveEvent(), QmitkSliderLevelWindowWidget::mouseMoveEvent(), QmitkTransferFunctionCanvas::mousePressEvent(), QmitkTransferFunctionCanvas::mouseReleaseEvent(), 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::OnBtnAddPointManually(), QmitkPointListWidget::OnBtnLoadPoints(), QmitkLevelWindowWidgetContextMenu::OnChangeScaleRange(), QmitkPropertyListPopup::onColorClicked(), QmitkColorPropertyEditor::onColorSelected(), mitk::FastMarchingTool3D::OnDelete(), mitk::FastMarchingTool::OnDelete(), QmitkTransferFunctionGeneratorWidget::OnDeltaLevelWindow(), QmitkTransferFunctionGeneratorWidget::OnDeltaThreshold(), QmitkMxNMultiWidgetEditor::OnInteractionSchemeChanged(), QmitkSlicesInterpolator::OnInterpolationActivated(), mitk::PaintbrushTool::OnInvertLogic(), QmitkBoundingObjectWidget::OnItemDataChanged(), QmitkPointListView::OnListViewSelectionChanged(), QmitkTransferFunctionGeneratorWidget::OnLoadPreset(), QmitkInteractiveTransformationWidget::OnResetGeometryToIdentity(), QmitkInteractiveTransformationWidget::OnRevertChanges(), QmitkLevelWindowWidgetContextMenu::OnSetDefaultLevelWindow(), QmitkLevelWindowWidgetContextMenu::OnSetDefaultScaleRange(), QmitkLevelWindowWidgetContextMenu::OnSetMaximumWindow(), QmitkLevelWindowWidgetContextMenu::OnSetPreset(), QmitkToFVisualisationSettingsWidget::OnSetXValueColor(), QmitkSliceBasedInterpolatorWidget::OnSliceChanged(), QmitkSurfaceStampWidget::OnStamp(), QmitkMaskStampWidget::OnStamp(), QmitkSurfaceBasedInterpolatorWidget::OnToggleWidgetActivation(), QmitkSliceBasedInterpolatorWidget::OnToggleWidgetActivation(), QmitkRenderWindowMenu::OnTSNumChanged(), QmitkLevelWindowWidgetContextMenu::OnUseAllGreyvaluesFromImage(), QmitkLevelWindowWidgetContextMenu::OnUseOptimizedLevelWindow(), QmitkNumberPropertySlider::onValueChanged(), QmitkNumberPropertyEditor::onValueChanged(), QmitkPythonVariableStackTableView::OnVariableStackDoubleClicked(), QmitkPropertyListPopup::onVisibleClicked(), QmitkInteractiveTransformationWidget::OnXTranslationValueChanged(), QmitkInteractiveTransformationWidget::OnYTranslationValueChanged(), QmitkInteractiveTransformationWidget::OnZTranslationValueChanged(), QmitkNumberPropertyEditor::PropertyChanged(), mitk::Dispatcher::QueueEvent(), 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(), mitk::BoundingShapeInteractor::RestoreNodeProperties(), QmitkInteractiveTransformationWidget::Rotate(), mitk::DisplayActionEventBroadcast::Rotate(), mitk::DisplayInteractor::Rotate(), mitk::AffineBaseDataInteractor3D::RotateGeometry(), mitk::ClippingPlaneInteractor3D::RotateObject(), mitk::AffineImageCropperInteractor::RotateObject(), mitk::AffineBaseDataInteractor3D::RotateObject(), HideAllAction::Run(), ToggleVisibilityAction::Run(), mitk::OtsuTool3D::RunSegmentation(), QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation(), mitk::AffineBaseDataInteractor3D::ScaleGeometry(), mitk::BoundingShapeInteractor::ScaleObject(), mitk::SurfaceDeformationDataInteractor3D::ScaleRadius(), mitk::AffineImageCropperInteractor::ScaleRadius(), mitk::BoundingShapeInteractor::SelectHandle(), mitk::AffineImageCropperInteractor::SelectObject(), mitk::SurfaceDeformationDataInteractor3D::SelectObject(), mitk::ClippingPlaneInteractor3D::SelectObject(), mitk::AffineBaseDataInteractor3D::SelectObject(), mitk::BoundingShapeInteractor::SelectObject(), mitk::PointSetDataInteractor::SelectPoint(), mitk::TubeGraphDataInteractor::SelectTube(), mitk::SliceNavigationController::SendSlice(), mitk::SliceNavigationController::SendTime(), QmitkPropertyItemModel::setData(), QmitkDataStorageTreeModel::setData(), QmitkPropertiesTableModel::setData(), QmitkDataStorageTableModel::setData(), QmitkInteractiveTransformationWidget::SetDefaultRotation(), QmitkBoundingObjectWidget::setEnabled(), QmitkLineEditLevelWindowWidget::SetLevelValue(), mitk::GizmoInteractor::SetManipulatedObjectNode(), QmitkLabelSetWidget::SetOrganColors(), mitk::PlanarFigureInteractor::SetPreviewPointPosition(), mitk::CameraController::SetStandardView(), QmitkStdMultiWidget::SetWidgetPlanesVisibility(), QmitkLineEditLevelWindowWidget::SetWindowValue(), QmitkTransferFunctionCanvas::SetX(), QmitkTransferFunctionWidget::SetXValueColor(), QmitkTransferFunctionWidget::SetXValueGradient(), QmitkTransferFunctionWidget::SetXValueScalar(), QmitkTransferFunctionCanvas::SetY(), QmitkTransferFunctionWidget::SetYValueGradient(), QmitkTransferFunctionWidget::SetYValueScalar(), QmitkSlicesInterpolator::Show3DInterpolationResult(), QmitkSurfaceBasedInterpolatorWidget::ShowInterpolationResult(), QmitkStdMultiWidgetEditor::ShowLevelWindowWidget(), mitk::OtsuTool3D::ShowMultiLabelResultNode(), mitk::PlanarFigureInteractor::StartHovering(), Step7::StartRegionGrowing(), Step6::StartRegionGrowing(), mitk::PickingTool::StartRegionGrowing(), mitk::DisplayActionEventBroadcast::Swivel(), mitk::DisplayInteractor::Swivel(), mitk::AffineBaseDataInteractor3D::TranslateGeometry(), mitk::ClippingPlaneInteractor3D::TranslateObject(), mitk::AffineImageCropperInteractor::TranslateObject(), mitk::BoundingShapeInteractor::TranslateObject(), mitk::LimitedLinearUndo::Undo(), mitk::UndoController::Undo(), mitk::PointSetDataInteractor::UnSelectAll(), mitk::PointSetDataInteractor::UnSelectPointAtPosition(), mitk::FastMarchingTool3D::Update(), mitk::FastMarchingTool::Update(), mitk::TubeGraphDataInteractor::UpdateActivation(), QmitkLabelSetWidget::UpdateAllTableWidgetItems(), QmitkLabelSetWidget::UpdateControls(), mitk::BinaryThresholdTool::UpdatePreview(), mitk::BinaryThresholdULTool::UpdatePreview(), QmitkSliceBasedInterpolatorWidget::UpdateVisibleSuggestion(), QmitkSlicesInterpolator::UpdateVisibleSuggestion(), mitk::OtsuTool3D::UpdateVolumePreview(), mitk::SegTool2D::WriteBackSegmentationResult(), mitk::LiveWireTool2D::~LiveWireTool2D(), and QmitkLabelSetWidget::~QmitkLabelSetWidget().
void mitk::RenderingManager::SetAntiAliasing | ( | AntiAliasing | antiAliasing | ) |
Definition at line 735 of file mitkRenderingManager.cpp.
References mitk::FastApproximate, and GetInstance().
Referenced by mitk::RenderingTestHelper::Initialize().
void mitk::RenderingManager::SetClippingPlaneStatus | ( | bool | status | ) |
Definition at line 671 of file mitkRenderingManager.cpp.
References m_ClippingPlaneEnabled.
|
virtual |
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 705 of file mitkRenderingManager.cpp.
References mitk::BaseRenderer::GetInstance(), m_AllRenderWindows, m_DataStorage, and mitk::BaseRenderer::SetDataStorage().
Referenced by QmitkRenderWindowWidget::ActivateCrosshair().
|
static |
Set the object factory which produces the desired platform specific RenderingManager singleton instance.
Definition at line 77 of file mitkRenderingManager.cpp.
References s_RenderingManagerFactory.
Referenced by QmitkRenderingManagerFactory::QmitkRenderingManagerFactory(), 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 (nullptr means all renderers)
Definition at line 648 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 700 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 720 of file mitkRenderingManager.cpp.
References m_RenderWindowList, and MITK_ERROR.
Referenced by mitk::Dispatcher::ProcessEvent().
void mitk::RenderingManager::SetShading | ( | bool | state, |
unsigned int | lod | ||
) |
Definition at line 650 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 673 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.
Definition at line 225 of file mitkRenderingManager.h.
|
protected |
Definition at line 340 of file mitkRenderingManager.h.
Referenced by AddRenderWindow(), GetAllRegisteredRenderWindows(), RemoveRenderWindow(), SetDataStorage(), and ~RenderingManager().
|
protected |
Definition at line 329 of file mitkRenderingManager.h.
Referenced by GetClippingPlaneStatus(), and SetClippingPlaneStatus().
|
protected |
Definition at line 360 of file mitkRenderingManager.h.
Referenced by InitializeViews().
|
protected |
Definition at line 358 of file mitkRenderingManager.h.
Referenced by AddRenderWindow(), GetDataStorage(), and SetDataStorage().
|
protected |
Definition at line 325 of file mitkRenderingManager.h.
|
protected |
Definition at line 323 of file mitkRenderingManager.h.
|
protected |
Definition at line 321 of file mitkRenderingManager.h.
Referenced by GetShading(), SetMaximumLOD(), and SetShading().
|
protected |
Definition at line 319 of file mitkRenderingManager.h.
Referenced by ExecutePendingHighResRenderingRequest(), and GetNextLOD().
|
protected |
Definition at line 356 of file mitkRenderingManager.h.
Referenced by GetProperty(), GetPropertyList(), InitializePropertyList(), and SetProperty().
|
protected |
Definition at line 317 of file mitkRenderingManager.h.
Referenced by AbortRendering().
|
protected |
Definition at line 349 of file mitkRenderingManager.h.
Referenced by AddRenderWindow(), RemoveRenderWindow(), and ~RenderingManager().
|
protected |
Definition at line 339 of file mitkRenderingManager.h.
Referenced by AbortRendering(), AddRenderWindow(), ExecutePendingHighResRenderingRequest(), ExecutePendingRequests(), ForceImmediateUpdate(), ForceImmediateUpdateAll(), InitializeViews(), IsRendering(), RemoveRenderWindow(), RequestUpdate(), RequestUpdateAll(), and SetRenderWindowFocus().
|
protected |
Definition at line 327 of file mitkRenderingManager.h.
Referenced by GetShading(), RenderingManager(), and SetShading().
|
protected |
Definition at line 331 of file mitkRenderingManager.h.
Referenced by GetShadingValues(), RenderingManager(), and SetShadingValues().
|
protected |
Definition at line 351 of file mitkRenderingManager.h.
Referenced by GetTimeNavigationController(), InitializeView(), and InitializeViews().
|
protected |
Definition at line 312 of file mitkRenderingManager.h.
Referenced by ExecutePendingRequests(), ForceImmediateUpdate(), and RequestUpdate().
|
staticprotected |
Definition at line 353 of file mitkRenderingManager.h.
Referenced by GetInstance().
|
staticprotected |
Definition at line 354 of file mitkRenderingManager.h.
Referenced by GetFactory(), GetInstance(), and SetFactory().