Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Organizes the rendering process. More...
#include <mitkBaseRenderer.h>
Public Types | |
enum | StandardMapperSlot { Standard2D, Standard3D } |
enum | ViewDirection { ViewDirection::AXIAL, ViewDirection::SAGITTAL, ViewDirection::CORONAL, ViewDirection::THREE_D } |
Possible view directions for render windows. More... | |
typedef std::map< vtkRenderWindow *, BaseRenderer * > | BaseRendererMapType |
typedef BaseRenderer | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef int | MapperSlotId |
MapperSlotId defines which kind of mapper (e.g. 2D or 3D) should be used. More... | |
Public Member Functions | |
itkEventMacro (RendererResetEvent, itk::AnyEvent) | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
BaseRenderer (const char *name=nullptr, vtkRenderWindow *renWin=nullptr) | |
virtual void | SetDataStorage (DataStorage *storage) |
set the datastorage that will be used for rendering More... | |
virtual DataStorage::Pointer | GetDataStorage () const |
vtkRenderWindow * | GetRenderWindow () const |
Access the RenderWindow into which this renderer renders. More... | |
vtkRenderer * | GetVtkRenderer () const |
Dispatcher::Pointer | GetDispatcher () const |
Returns the Dispatcher which handles Events for this BaseRenderer. More... | |
virtual void | Paint () |
Do the rendering and flush the result. More... | |
virtual void | Initialize () |
Initialize the RenderWindow. Should only be called from RenderWindow. More... | |
virtual void | Resize (int w, int h) |
Called to inform the renderer that the RenderWindow has been resized. More... | |
virtual void | InitRenderer (vtkRenderWindow *renderwindow) |
Initialize the renderer with a RenderWindow (renderwindow). More... | |
virtual void | InitSize (int w, int h) |
Set the initial size. Called by RenderWindow after it has become visible for the first time. More... | |
virtual void | DrawOverlayMouse (Point2D &p2d) |
Draws a point on the widget. Should be used during conferences to show the position of the remote mouse. More... | |
virtual void | SetWorldGeometry3D (const BaseGeometry *geometry) |
Set/Get the WorldGeometry (m_WorldGeometry) for 3D and 2D rendering, that describing the (maximal) area to be rendered. More... | |
virtual void | SetWorldTimeGeometry (const mitk::TimeGeometry *geometry) |
void | SetWorldGeometry3D (TimeSlicedGeometry *geometry) |
virtual const TimeGeometry * | GetWorldTimeGeometry () |
virtual const BaseGeometry * | GetCurrentWorldGeometry () |
Get the current 3D-worldgeometry (m_CurrentWorldGeometry) used for 3D-rendering. More... | |
virtual const PlaneGeometry * | GetCurrentWorldPlaneGeometry () |
Get the current 2D-worldgeometry (m_CurrentWorldPlaneGeometry) used for 2D-rendering. More... | |
const PlaneGeometry * | GetCurrentWorldGeometry2D () |
virtual bool | SetWorldGeometryToDataStorageBounds () |
virtual void | SetSlice (unsigned int slice) |
Set/Get m_Slice which defines together with m_TimeStep the 2D geometry stored in m_WorldTimeGeometry used as m_CurrentWorldPlaneGeometry. More... | |
virtual unsigned int | GetSlice () const |
virtual void | SetTimeStep (unsigned int timeStep) |
Set/Get m_TimeStep which defines together with m_Slice the 2D geometry stored in m_WorldTimeGeometry used as m_CurrentWorldPlaneGeometry. More... | |
virtual unsigned int | GetTimeStep () const |
int | GetTimeStep (const BaseData *data) const |
Get the time-step of a BaseData object which exists at the time of the currently displayed content. More... | |
ScalarType | GetTime () const |
Get the time in ms of the currently displayed content. More... | |
virtual void | SetGeometry (const itk::EventObject &geometrySliceEvent) |
SetWorldGeometry is called according to the geometrySliceEvent, which is supposed to be a SliceNavigationController::GeometrySendEvent. More... | |
virtual void | UpdateGeometry (const itk::EventObject &geometrySliceEvent) |
UpdateWorldGeometry is called to re-read the 2D geometry from the slice navigation controller. More... | |
virtual void | SetGeometrySlice (const itk::EventObject &geometrySliceEvent) |
SetSlice is called according to the geometrySliceEvent, which is supposed to be a SliceNavigationController::GeometrySliceEvent. More... | |
virtual void | SetGeometryTime (const itk::EventObject &geometryTimeEvent) |
SetTimeStep is called according to the geometrySliceEvent, which is supposed to be a SliceNavigationController::GeometryTimeEvent. More... | |
virtual DataNode * | GetCurrentWorldPlaneGeometryNode () |
Get a DataNode pointing to a data object containing the current 2D-worldgeometry. More... | |
DataNode * | GetCurrentWorldGeometry2DNode () |
void | SendUpdateSlice () |
Sets timestamp of CurrentWorldPlaneGeometry and forces so reslicing in that renderwindow. More... | |
unsigned long | GetCurrentWorldPlaneGeometryUpdateTime () |
Get timestamp of last call of SetCurrentWorldPlaneGeometry. More... | |
unsigned long | GetCurrentWorldGeometry2DUpdateTime () |
unsigned long | GetTimeStepUpdateTime () |
Get timestamp of last change of current TimeStep. More... | |
virtual void | PickWorldPoint (const Point2D &diplayPosition, Point3D &worldPosition) const =0 |
Perform a picking: find the x,y,z world coordinate of a display x,y coordinate. More... | |
virtual DataNode * | PickObject (const Point2D &, Point3D &) const |
Determines the object (mitk::DataNode) closest to the current position by means of picking. More... | |
virtual MapperSlotId | GetMapperID () |
Get the MapperSlotId to use. More... | |
virtual MapperSlotId | GetMapperID () const |
virtual void | SetMapperID (MapperSlotId _arg) |
Set the MapperSlotId to use. More... | |
virtual int * | GetSize () const |
virtual int * | GetViewportSize () const |
void | SetSliceNavigationController (SliceNavigationController *SlicenavigationController) |
virtual CameraController * | GetCameraController () |
virtual SliceNavigationController * | GetSliceNavigationController () |
virtual CameraRotationController * | GetCameraRotationController () |
virtual bool | GetEmptyWorldGeometry () |
virtual bool | GetKeepDisplayedRegion () |
Tells if the displayed region is shifted and rescaled if the render window is resized. More... | |
virtual void | SetKeepDisplayedRegion (bool _arg) |
Tells if the displayed region should be shifted and rescaled if the render window is resized. More... | |
const char * | GetName () const |
get the name of the Renderer More... | |
int | GetSizeX () const |
get the x_size of the RendererWindow More... | |
int | GetSizeY () const |
get the y_size of the RendererWindow More... | |
const double * | GetBounds () const |
void | RequestUpdate () |
void | ForceImmediateUpdate () |
unsigned int | GetNumberOfVisibleLODEnabledMappers () const |
void | DisplayToWorld (const Point2D &displayPoint, Point3D &worldIndex) const |
This method converts a display point to the 3D world index using the geometry of the renderWindow. More... | |
void | DisplayToPlane (const Point2D &displayPoint, Point2D &planePointInMM) const |
This method converts a display point to the 2D world index, mapped onto the display plane using the geometry of the renderWindow. More... | |
void | WorldToDisplay (const Point3D &worldIndex, Point2D &displayPoint) const |
This method converts a 3D world index to the display point using the geometry of the renderWindow. More... | |
void | WorldToView (const Point3D &worldIndex, Point2D &viewPoint) const |
This method converts a 3D world index to the point on the viewport using the geometry of the renderWindow. More... | |
void | PlaneToDisplay (const Point2D &planePointInMM, Point2D &displayPoint) const |
This method converts a 2D plane coordinate to the display point using the geometry of the renderWindow. More... | |
void | PlaneToView (const Point2D &planePointInMM, Point2D &viewPoint) const |
This method converts a 2D plane coordinate to the point on the viewport using the geometry of the renderWindow. More... | |
double | GetScaleFactorMMPerDisplayUnit () const |
Point2D | GetDisplaySizeInMM () const |
Point2D | GetViewportSizeInMM () const |
Point2D | GetOriginInMM () const |
virtual bool | GetConstrainZoomingAndPanning () const |
virtual void | SetConstrainZoomingAndPanning (bool constrain) |
virtual Point3D | Map2DRendererPositionTo3DWorldPosition (const Point2D &mousePosition) const |
Provides (1) world coordinates for a given mouse position and (2) translates mousePosition to Display coordinates. More... | |
void | RemoveAllLocalStorages () |
void | RegisterLocalStorageHandler (mitk::BaseLocalStorageHandler *lsh) |
void | UnregisterLocalStorageHandler (mitk::BaseLocalStorageHandler *lsh) |
Static Public Member Functions | |
static BaseRenderer * | GetInstance (vtkRenderWindow *renWin) |
static void | AddInstance (vtkRenderWindow *renWin, BaseRenderer *baseRenderer) |
static void | RemoveInstance (vtkRenderWindow *renWin) |
static BaseRenderer * | GetByName (const std::string &name) |
static vtkRenderWindow * | GetRenderWindowByName (const std::string &name) |
static const char * | GetStaticNameOfClass () |
Static Public Attributes | |
static BaseRendererMapType | baseRendererMap |
static const MapperSlotId | defaultMapper |
Default mapper id to use. More... | |
Protected Types | |
typedef std::set< Mapper * > | LODEnabledMappersType |
Protected Member Functions | |
~BaseRenderer () override | |
virtual void | Update ()=0 |
Call update of all mappers. To be implemented in subclasses. More... | |
virtual void | SetCurrentWorldPlaneGeometry (const PlaneGeometry *geometry2d) |
Sets m_CurrentWorldPlaneGeometry. More... | |
void | SetCurrentWorldGeometry2D (PlaneGeometry *geometry2d) |
virtual void | SetCurrentWorldGeometry (const BaseGeometry *geometry) |
Sets m_CurrentWorldGeometry. More... | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
Protected Attributes | |
vtkRenderWindow * | m_RenderWindow |
vtkRenderer * | m_VtkRenderer |
MapperSlotId | m_MapperID |
MapperSlotId to use. Defines which kind of mapper (e.g., 2D or 3D) shoud be used. More... | |
DataStorage::Pointer | m_DataStorage |
The DataStorage that is used for rendering. More... | |
unsigned long | m_LastUpdateTime |
Timestamp of last call of Update(). More... | |
itk::SmartPointer< CameraController > | m_CameraController |
CameraController for 3D rendering. More... | |
SliceNavigationController::Pointer | m_SliceNavigationController |
CameraRotationController::Pointer | m_CameraRotationController |
PlaneGeometryData::Pointer | m_CurrentWorldPlaneGeometryData |
DataNode::Pointer | m_CurrentWorldPlaneGeometryNode |
unsigned long | m_CurrentWorldPlaneGeometryTransformTime |
test only More... | |
std::string | m_Name |
double | m_Bounds [6] |
bool | m_EmptyWorldGeometry |
unsigned int | m_NumberOfVisibleLODEnabledMappers |
std::list< mitk::BaseLocalStorageHandler * > | m_RegisteredLocalStorageHandlers |
bool | m_ConstrainZoomingAndPanning |
Organizes the rendering process.
Organizes the rendering process. A Renderer contains a reference to a DataStorage and asks the mappers of the data objects to render the data into the renderwindow it is associated to.
#Render() checks if rendering is currently allowed by calling RenderWindow::PrepareRendering(). Initialization of a rendering context can also be performed in this method.
The actual rendering code has been moved to #Repaint() Both #Repaint() and #Update() are declared protected now.
Note: Separation of the Repaint and Update processes (rendering vs creating a vtk prop tree) still needs to be worked on. The whole rendering process also should be reworked to use VTK based classes for both 2D and 3D rendering.
Definition at line 65 of file mitkBaseRenderer.h.
typedef std::map<vtkRenderWindow *, BaseRenderer *> mitk::BaseRenderer::BaseRendererMapType |
Definition at line 68 of file mitkBaseRenderer.h.
typedef itk::SmartPointer<const Self> mitk::BaseRenderer::ConstPointer |
Definition at line 83 of file mitkBaseRenderer.h.
|
protected |
Definition at line 512 of file mitkBaseRenderer.h.
typedef int mitk::BaseRenderer::MapperSlotId |
MapperSlotId defines which kind of mapper (e.g. 2D or 3D) should be used.
Definition at line 89 of file mitkBaseRenderer.h.
Definition at line 83 of file mitkBaseRenderer.h.
typedef BaseRenderer mitk::BaseRenderer::Self |
Standard class typedefs.
Definition at line 83 of file mitkBaseRenderer.h.
typedef itk::Object mitk::BaseRenderer::Superclass |
Definition at line 83 of file mitkBaseRenderer.h.
Enumerator | |
---|---|
Standard2D | |
Standard3D |
Definition at line 91 of file mitkBaseRenderer.h.
|
strong |
Possible view directions for render windows.
Enumerator | |
---|---|
AXIAL | |
SAGITTAL | |
CORONAL | |
THREE_D |
Definition at line 99 of file mitkBaseRenderer.h.
mitk::BaseRenderer::BaseRenderer | ( | const char * | name = nullptr , |
vtkRenderWindow * | renWin = nullptr |
||
) |
Definition at line 92 of file mitkBaseRenderer.cpp.
References mitk::VtkLayerController::AddInstance(), mitk::FastApproximate, mitk::VtkLayerController::GetInstance(), mitk::RenderingManager::GetInstance(), GetName(), mitk::VtkLayerController::InsertSceneRenderer(), m_Bounds, m_CameraController, m_CameraRotationController, m_CurrentWorldPlaneGeometryData, m_CurrentWorldPlaneGeometryNode, m_CurrentWorldPlaneGeometryTransformTime, m_Name, m_RenderWindow, m_SliceNavigationController, m_VtkRenderer, mitk::IntProperty::New(), mitk::CameraRotationController::New(), mitk::ResliceMethodProperty::New(), mitk::PlaneGeometryData::New(), mitk::WeakPointerProperty::New(), mitk::CameraController::New(), mitk::DataNode::New(), mitk::PlaneGeometry::New(), and mitk::SliceNavigationController::New().
|
overrideprotected |
Definition at line 195 of file mitkBaseRenderer.cpp.
References m_CameraController, m_DataStorage, m_RenderWindow, m_VtkRenderer, RemoveAllLocalStorages(), and mitk::VtkLayerController::RemoveInstance().
|
static |
Definition at line 54 of file mitkBaseRenderer.cpp.
References baseRendererMap, and RemoveInstance().
Referenced by mitk::RenderWindowBase::Initialize(), and mitkRenderingManagerTest().
void mitk::BaseRenderer::DisplayToPlane | ( | const Point2D & | displayPoint, |
Point2D & | planePointInMM | ||
) | const |
This method converts a display point to the 2D world index, mapped onto the display plane using the geometry of the renderWindow.
Definition at line 630 of file mitkBaseRenderer.cpp.
References DisplayToWorld(), m_MapperID, MITK_WARN, Standard2D, and Standard3D.
Referenced by mitk::CameraController::GetCameraPositionOnPlane(), GetOriginInMM(), and mitk::PlanarFigureInteractor::SetPreviewPointPosition().
void mitk::BaseRenderer::DisplayToWorld | ( | const Point2D & | displayPoint, |
Point3D & | worldIndex | ||
) | const |
This method converts a display point to the 3D world index using the geometry of the renderWindow.
Definition at line 588 of file mitkBaseRenderer.cpp.
References display, GetVtkRenderer(), m_MapperID, PickWorldPoint(), Standard2D, and Standard3D.
Referenced by mitk::BoundingShapeInteractor::CheckOverObject(), DisplayToPlane(), mitk::InteractionPositionEvent::GetPositionInWorld(), Map2DRendererPositionTo3DWorldPosition(), mitk::BoundingShapeInteractor::ScaleObject(), and mitk::BoundingShapeInteractor::TranslateObject().
|
virtual |
Draws a point on the widget. Should be used during conferences to show the position of the remote mouse.
Definition at line 543 of file mitkBaseRenderer.cpp.
References MITK_INFO.
void mitk::BaseRenderer::ForceImmediateUpdate | ( | ) |
Definition at line 554 of file mitkBaseRenderer.cpp.
References mitk::RenderingManager::ForceImmediateUpdate(), mitk::RenderingManager::GetInstance(), and m_RenderWindow.
const double * mitk::BaseRenderer::GetBounds | ( | ) | const |
Definition at line 538 of file mitkBaseRenderer.cpp.
References m_Bounds.
|
static |
Definition at line 72 of file mitkBaseRenderer.cpp.
References baseRendererMap.
Referenced by mitk::EventFactory::CreateEvent(), mitk::AbstractAnnotationRenderer::GetCurrentBaseRenderer(), QmitkDataNodeOpenInAction::InitializeAction(), QmitkRenderWindowDataStorageInspector::SetActiveRenderWindow(), and QmitkDataStorageLayerStackModel::SetCurrentRenderer().
|
virtual |
Referenced by QmitkStdMultiWidget::EnsureDisplayContainsPoint(), QmitkStdMultiWidget::Fit(), mitk::GizmoMapper2D::GetVtkPolyData(), mitk::RenderingManager::InitializeView(), mitk::VtkPropRenderer::InitSize(), QmitkSliceWidget::InitWidget(), mitk::DisplayInteractor::Move(), mitk::DisplayActionEventFunctions::MoveCameraSynchronizedAction(), QmitkPolhemusTrackerWidget::OnStartTracking(), mitk::VtkPropRenderer::PrepareRender(), QmitkStandardViews::SetCameraControllerFromRenderWindow(), SetConstrainZoomingAndPanning(), mitk::VtkPropRenderer::SetWorldGeometryToDataStorageBounds(), QmitkSliceWidget::UpdateGL(), and mitk::DisplayActionEventFunctions::ZoomCameraSynchronizedAction().
|
virtual |
Referenced by mitk::RenderWindowBase::GetCameraRotationController().
|
inlinevirtual |
Reimplemented in mitk::VtkPropRenderer.
Definition at line 83 of file mitkBaseRenderer.h.
|
virtual |
Reimplemented in mitk::VtkPropRenderer.
|
virtual |
|
virtual |
Get the current 3D-worldgeometry (m_CurrentWorldGeometry) used for 3D-rendering.
|
inline |
Definition at line 190 of file mitkBaseRenderer.h.
|
inline |
Definition at line 264 of file mitkBaseRenderer.h.
|
inline |
Definition at line 279 of file mitkBaseRenderer.h.
|
virtual |
Get the current 2D-worldgeometry (m_CurrentWorldPlaneGeometry) used for 2D-rendering.
Referenced by mitk::PlanarFigureInteractor::AddPoint(), mitk::CameraController::AdjustCameraToPlane(), mitk::PlanarFigureInteractor::CheckControlPointHovering(), mitk::PlanarFigureInteractor::CheckFigureHovering(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), mitk::DisplayInteractor::CheckRotationPossible(), mitk::DisplayActionEventBroadcast::CheckRotationPossible(), mitk::LiveWireTool2D::ClearSegmentation(), mitk::CameraController::ComputeMaxParallelScale(), CreateHandle(), mitk::ContourModelMapper2D::CreateVtkPolyDataFromContour(), mitk::PointSetVtkMapper2D::CreateVTKRenderObjects(), QmitkStdMultiWidget::EnsureDisplayContainsPoint(), mitk::CameraController::Fit(), mitk::SurfaceVtkMapper2D::GenerateDataForRenderer(), mitk::LabelSetImageVtkMapper2D::GenerateDataForRenderer(), mitk::RegEvaluationMapper2D::GenerateDataForRenderer(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), mitk::ImageVtkMapper2D::GenerateDataForRenderer(), mitk::SegTool2D::GetAffectedImageSliceAs2DImage(), mitk::MITKRegistrationWrapperMapper2D::GetGeometryDescription(), mitk::GizmoMapper2D::GetVtkPolyData(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitk::PlanarFigureInteractor::IsMousePositionAcceptableAsNewControlPoint(), mitk::ContourMapper2D::MitkRender(), mitk::ContourSetMapper2D::MitkRender(), mitk::ContourModelSetGLMapper2D::MitkRender(), mitk::PlanarFigureMapper2D::MitkRender(), mitk::MeshMapper2D::Paint(), mitk::VectorImageMapper2D::Paint(), mitk::UnstructuredGridMapper2D::Paint(), mitk::VtkPropRenderer::Render(), mitk::MITKRegistrationWrapperMapper2D::RendererGeometryIsOutdated(), mitk::PlanarFigureInteractor::SelectPoint(), mitk::BoundingShapeVtkMapper2D::SetDefaultProperties(), mitk::ContourModelMapper2D::Update(), mitk::ContourModelMapper3D::Update(), mitk::ContourModelSetMapper3D::Update(), mitk::LabelSetImageVtkMapper2D::Update(), mitk::RegEvaluationMapper2D::Update(), mitk::VtkPropRenderer::Update(), mitk::ImageVtkMapper2D::Update(), mitk::DoseImageVtkMapper2D::Update(), mitk::SurfaceVtkMapper2D::Update(), and mitk::SegTool2D::WriteBackSegmentationResult().
|
virtual |
Get a DataNode pointing to a data object containing the current 2D-worldgeometry.
Referenced by QmitkStdMultiWidget::AddDisplayPlaneSubTree(), mitk::PlaneGeometryDataMapper2D::CreateVtkCrosshair(), mitk::ImageVtkMapper2D::GenerateDataForRenderer(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), QmitkStdMultiWidget::InitializeMultiWidget(), main(), and Step6::SetupWidgets().
|
inline |
Get timestamp of last call of SetCurrentWorldPlaneGeometry.
Definition at line 275 of file mitkBaseRenderer.h.
Referenced by mitk::ContourSetVtkMapper3D::GenerateDataForRenderer(), mitk::RegEvaluationMapper2D::GenerateDataForRenderer(), mitk::GizmoMapper2D::GetVtkPolyData(), mitk::ContourModelMapper2D::Update(), mitk::ContourModelMapper3D::Update(), mitk::ContourModelSetMapper3D::Update(), mitk::LabelSetImageVtkMapper2D::Update(), mitk::RegEvaluationMapper2D::Update(), mitk::DoseImageVtkMapper2D::Update(), mitk::ImageVtkMapper2D::Update(), and mitk::SurfaceVtkMapper2D::Update().
|
inlinevirtual |
return the DataStorage that is used for rendering
Definition at line 111 of file mitkBaseRenderer.h.
References m_DataStorage.
Referenced by mitk::NavigationDataSet::ConvertNavigationDataToPointSet(), mitk::PlanarFigureInteractor::DeleteFigure(), mitk::UnstructuredGridVtkMapper3D::GenerateDataForRenderer(), QmitkInteractiveTransformationWidget::OnApplyManipulatedToolTip(), QmitkInteractiveTransformationWidget::OnCancel(), mitk::CameraController::SetStandardView(), and QmitkInteractiveTransformationWidget::SetToolToEdit().
mitk::Dispatcher::Pointer mitk::BaseRenderer::GetDispatcher | ( | ) | const |
Returns the Dispatcher which handles Events for this BaseRenderer.
Definition at line 239 of file mitkBaseRenderer.cpp.
References mitk::BindDispatcherInteractor::GetDispatcher().
Referenced by mitk::PointSetDataInteractor::Abort(), mitk::ExampleInteractor::ConnectActionsAndFunctions(), and mitk::GizmoInteractor::SetManipulatedObjectNode().
mitk::Point2D mitk::BaseRenderer::GetDisplaySizeInMM | ( | ) | const |
Definition at line 716 of file mitkBaseRenderer.cpp.
References GetScaleFactorMMPerDisplayUnit(), GetSizeX(), and GetSizeY().
Referenced by mitk::BoundingShapeInteractor::CheckOverHandles(), and mitk::BoundingShapeVtkMapper2D::SetDefaultProperties().
|
virtual |
Referenced by mitk::VtkPropRenderer::Render().
|
static |
Definition at line 44 of file mitkBaseRenderer.cpp.
References baseRendererMap.
Referenced by mitk::RenderingManager::AbortRendering(), mitk::CameraRotationController::AcquireCamera(), QmitkStdMultiWidget::AddDisplayPlaneSubTree(), AddDisplayPlaneSubTree(), mitk::InteractionTestHelper::AddDisplayPlaneSubTree(), QmitkPAUSViewerView::AddOverlays(), mitk::RenderingManager::AddRenderWindow(), QmitkMultiWidgetDecorationManager::AreAllCornerAnnotationsVisible(), mitk::AnnotationUtils::BaseRendererChanged(), QmitkSurfaceBasedInterpolatorWidget::ChangeSurfaceColor(), QmitkSlicesInterpolator::ChangeSurfaceColor(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), mitk::DisplayInteractor::CheckRotationPossible(), mitk::DisplayActionEventBroadcast::CheckRotationPossible(), mitk::DisplayInteractor::CheckSwivelPossible(), mitk::DisplayActionEventBroadcast::CheckSwivelPossible(), QmitkAdaptiveRegionGrowingToolGUI::ConfirmSegmentation(), mitk::NavigationDataSet::ConvertNavigationDataToPointSet(), QmitkBoundingObjectWidget::CreateBoundingObject(), createTextAnnotationWithLayouter(), mitk::RenderingManager::ExecutePendingHighResRenderingRequest(), QmitkStdMultiWidget::Fit(), Fit(), mitk::RenderingManager::ForceImmediateUpdate(), mitk::RenderingManager::ForceImmediateUpdateAll(), QmitkAbstractMultiWidget::Get2DRenderWindowWidgets(), QmitkAbstractMultiWidget::Get3DRenderWindowWidgets(), mitk::RenderWindowBase::GetCameraRotationController(), mitk::RenderWindowBase::GetController(), mitk::RenderWindowBase::GetSliceNavigationController(), QmitkStdMultiWidget::InitializeMultiWidget(), mitk::RenderingManager::InitializeView(), mitk::RenderingManager::InitializeViews(), InitializeWindows(), QmitkSlicesInterpolator::On3DInterpolationActivated(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), QmitkInteractiveTransformationWidget::OnApplyManipulatedToolTip(), QmitkInteractiveTransformationWidget::OnCancel(), QmitkFastMarchingTool3DGUI::OnNewToolAssociated(), QmitkFastMarchingToolGUI::OnNewToolAssociated(), mitk::PickingTool::OnPointAdded(), QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded(), QmitkPolhemusTrackerWidget::OnStartTracking(), QmitkSlicesInterpolator::OnSurfaceInterpolationFinished(), mitk::vtkEventProvider::ProcessEvents(), QmitkSlicesInterpolator::QmitkSlicesInterpolator(), QmitkSurfaceBasedInterpolatorWidget::QmitkSurfaceBasedInterpolatorWidget(), mitk::VtkPropRenderer::RenderingCallback(), mitk::RenderingManager::RenderingEndCallback(), mitk::RenderingManager::RenderingProgressCallback(), mitk::RenderingTestHelper::ReorientSlices(), mitk::RenderingManager::RequestUpdateAll(), QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation(), SaveSliceOrImageAsPNG(), QmitkStandardViews::SetCameraControllerFromRenderWindow(), QmitkDataNodeOpenInAction::SetControlledRenderer(), mitk::DisplayInteractor::SetCrosshair(), QmitkRenderWindowWidget::SetDataStorage(), mitk::RenderingManager::SetDataStorage(), QmitkToolSelectionBox::SetGUIEnabledAccordingToToolManagerState(), QmitkInteractiveTransformationWidget::SetToolToEdit(), mitk::RenderingTestHelper::SetViewDirection(), QmitkStdMultiWidget::SetWidgetPlanesVisibility(), QmitkSlicesInterpolator::Show3DInterpolationResult(), QmitkSurfaceBasedInterpolatorWidget::ShowInterpolationResult(), QmitkStdMultiWidgetEditor::ShowLevelWindowWidget(), QmitkSurfaceBasedInterpolatorWidget::StopUpdateInterpolationTimer(), and QmitkSlicesInterpolator::StopUpdateInterpolationTimer().
|
virtual |
Tells if the displayed region is shifted and rescaled if the render window is resized.
|
virtual |
Get the MapperSlotId to use.
Referenced by mitk::DisplayActionEventBroadcast::FilterEvents(), mitk::DisplayInteractor::FilterEvents(), mitk::SegTool2D::FilterEvents(), mitk::PlanarFigureInteractor::FilterEvents(), mitk::RenderingManager::ForceImmediateUpdateAll(), mitk::RenderWindowBase::GetController(), GetScaleFactorMMPerDisplayUnit(), mitk::GizmoMapper2D::GetVtkPolyData(), mitk::RenderingManager::InitializeView(), mitk::RenderingManager::InitializeViews(), mitk::VtkPropRenderer::PrepareRender(), mitk::RenderingManager::RequestUpdateAll(), mitk::GizmoInteractor::SetManipulatedObjectNode(), mitk::CameraController::SetStandardView(), and QmitkSliceBasedInterpolatorWidget::UpdateVisibleSuggestion().
|
virtual |
|
inline |
get the name of the Renderer
Definition at line 332 of file mitkBaseRenderer.h.
Referenced by mitk::ManualPlacementAnnotationRenderer::AddAnnotation(), mitk::LayoutAnnotationRenderer::AddAnnotation(), QmitkStdMultiWidget::AddDisplayPlaneSubTree(), BaseRenderer(), mitk::AnnotationUtils::BaseRendererChanged(), QmitkSliceBasedInterpolatorWidget::CreateActionToSliceDimension(), mitk::MITKRegistrationWrapperMapperBase::GenerateDataForRenderer(), mitk::DataNode::GetProperty(), mitk::DataNode::GetPropertyList(), and main().
unsigned int mitk::BaseRenderer::GetNumberOfVisibleLODEnabledMappers | ( | ) | const |
Returns number of mappers which are visible and have level-of-detail rendering enabled
Definition at line 559 of file mitkBaseRenderer.cpp.
References m_NumberOfVisibleLODEnabledMappers.
Referenced by mitk::RenderingManager::ExecutePendingHighResRenderingRequest().
mitk::Point2D mitk::BaseRenderer::GetOriginInMM | ( | ) | const |
Definition at line 732 of file mitkBaseRenderer.cpp.
References DisplayToPlane(), and m_VtkRenderer.
|
inline |
Access the RenderWindow into which this renderer renders.
Definition at line 114 of file mitkBaseRenderer.h.
Referenced by mitk::AnnotationUtils::BaseRendererChanged(), mitk::LiveWireTool2D::ClearSegmentation(), mitk::MovieGeneratorWin32::InitBitmapHeader(), mitk::MovieGeneratorOpenCV::InitGenerator(), QmitkDataNodeOpenInAction::InitializeAction(), mitk::RenderWindowViewDirectionController::InitializeViewByBoundingObjects(), mitk::GPUVolumeMapper3D::InitRAY(), mitk::RenderWindowLayerController::InsertLayerNode(), mitk::DisplayInteractor::Move(), mitk::DisplayActionEventFunctions::MoveCameraSynchronizedAction(), mitk::RenderWindowLayerController::MoveNodeDown(), mitk::RenderWindowLayerController::MoveNodeToBack(), mitk::RenderWindowLayerController::MoveNodeToFront(), mitk::RenderWindowLayerController::MoveNodeToPosition(), mitk::RenderWindowLayerController::MoveNodeUp(), mitk::ContourModelInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnDeletePoint(), mitk::ContourModelInteractor::OnFinishEditing(), mitk::ContourModelLiveWireInteractor::OnFinishEditing(), mitk::RegionGrowingTool::OnMousePressedOutside(), mitk::VtkPropRenderer::PickWorldPoint(), mitk::VtkPropRenderer::PrepareRender(), mitk::Dispatcher::ProcessEvent(), mitk::PointSetVtkMapper3D::ReleaseGraphicsResources(), mitk::RenderWindowLayerController::RemoveLayerNode(), mitk::RenderWindowLayerController::ResetRenderer(), mitk::VtkPropRenderer::Resize(), mitk::ClippingPlaneInteractor3D::RotateObject(), HideAllAction::Run(), ToggleVisibilityAction::Run(), ReinitAction::Run(), mitk::RenderWindowLayerController::SetBaseDataNode(), mitk::GizmoInteractor::SetManipulatedObjectNode(), mitk::RenderWindowLayerController::SetVisibilityOfDataNode(), mitk::MovieGenerator::WriteCurrentFrameToMovie(), mitk::MovieGenerator::WriteMovie(), and mitk::DisplayActionEventFunctions::ZoomCameraSynchronizedAction().
|
static |
Definition at line 82 of file mitkBaseRenderer.cpp.
References baseRendererMap.
Referenced by QmitkSurfaceBasedInterpolatorWidget::ChangeSurfaceColor(), QmitkSlicesInterpolator::ChangeSurfaceColor(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), QmitkAdaptiveRegionGrowingToolGUI::ConfirmSegmentation(), mitk::NavigationDataSet::ConvertNavigationDataToPointSet(), QmitkSlicesInterpolator::On3DInterpolationActivated(), QmitkSlicesInterpolator::OnAccept3DInterpolationClicked(), QmitkInteractiveTransformationWidget::OnApplyManipulatedToolTip(), QmitkInteractiveTransformationWidget::OnCancel(), QmitkFastMarchingToolGUI::OnNewToolAssociated(), QmitkFastMarchingTool3DGUI::OnNewToolAssociated(), mitk::PickingTool::OnPointAdded(), QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded(), QmitkPolhemusTrackerWidget::OnStartTracking(), QmitkSlicesInterpolator::OnSurfaceInterpolationFinished(), QmitkSlicesInterpolator::QmitkSlicesInterpolator(), QmitkSurfaceBasedInterpolatorWidget::QmitkSurfaceBasedInterpolatorWidget(), QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation(), QmitkToolSelectionBox::SetGUIEnabledAccordingToToolManagerState(), QmitkInteractiveTransformationWidget::SetToolToEdit(), QmitkSlicesInterpolator::Show3DInterpolationResult(), QmitkSurfaceBasedInterpolatorWidget::ShowInterpolationResult(), QmitkSurfaceBasedInterpolatorWidget::StopUpdateInterpolationTimer(), and QmitkSlicesInterpolator::StopUpdateInterpolationTimer().
double mitk::BaseRenderer::GetScaleFactorMMPerDisplayUnit | ( | ) | const |
Definition at line 704 of file mitkBaseRenderer.cpp.
References GetMapperID(), GetViewportSize(), GetVtkRenderer(), and Standard2D.
Referenced by mitk::BoundingShapeInteractor::CheckOverHandles(), mitk::PlaneGeometryDataMapper2D::CreateVtkCrosshair(), mitk::PlanarFigureMapper2D::DrawHelperLines(), GetDisplaySizeInMM(), GetViewportSizeInMM(), mitk::GizmoMapper2D::GetVtkPolyData(), mitk::DisplayInteractor::Move(), mitk::DisplayActionEventBroadcast::Move(), and mitk::BoundingShapeVtkMapper2D::SetDefaultProperties().
|
virtual |
Definition at line 453 of file mitkBaseRenderer.cpp.
References m_RenderWindow.
|
inline |
get the x_size of the RendererWindow
Definition at line 340 of file mitkBaseRenderer.h.
Referenced by GetDisplaySizeInMM(), and mitk::GizmoMapper2D::GetVtkPolyData().
|
inline |
get the y_size of the RendererWindow
Definition at line 344 of file mitkBaseRenderer.h.
References DEPRECATED, and Update().
Referenced by GetDisplaySizeInMM(), and mitk::GizmoMapper2D::GetVtkPolyData().
|
virtual |
Referenced by mitk::LiveWireTool2D::ClearSegmentation(), CreateHandle(), mitk::FastMarchingTool::OnAddPoint(), mitk::SetRegionTool::OnMousePressed(), mitk::ContourTool::OnMousePressed(), mitk::PaintbrushTool::OnMousePressed(), mitk::CorrectorTool2D::OnMousePressed(), mitk::RegionGrowingTool::OnMousePressed(), and QmitkSliceBasedInterpolatorWidget::UpdateVisibleSuggestion().
|
virtual |
Referenced by mitk::SegTool2D::AddContourmarker(), mitk::PlanarFigureInteractor::AddInitialPoint(), mitk::DisplayInteractor::CheckRotationPossible(), mitk::DisplayActionEventBroadcast::CheckRotationPossible(), mitk::DisplayInteractor::CheckSwivelPossible(), mitk::DisplayActionEventBroadcast::CheckSwivelPossible(), mitk::RenderWindowBase::GetSliceNavigationController(), mitk::RenderingManager::InitializeView(), mitk::RenderingManager::InitializeViews(), mitk::DisplayInteractor::Scroll(), mitk::DisplayInteractor::ScrollOneDown(), mitk::DisplayInteractor::ScrollOneUp(), QmitkRenderWindowDataStorageInspector::SetActiveRenderWindow(), mitk::DisplayInteractor::SetCrosshair(), mitk::DisplayActionEventFunctions::SetCrosshairSynchronizedAction(), and mitk::RenderWindowViewDirectionController::SetViewDirectionOfRenderer().
|
inlinestatic |
Definition at line 83 of file mitkBaseRenderer.h.
mitk::ScalarType mitk::BaseRenderer::GetTime | ( | ) | const |
Get the time in ms of the currently displayed content.
Definition at line 359 of file mitkBaseRenderer.cpp.
References GetTimeStep().
Referenced by mitk::SinglePointDataInteractor::AddPoint(), mitk::PointSetDataInteractor::AddPoint(), mitk::PointSetDataInteractor::FinishMove(), mitk::SurfaceVtkMapper2D::GenerateDataForRenderer(), mitk::VectorImageMapper2D::GetCurrentTimeStep(), GetTimeStep(), QmitkStdMultiWidget::HandleCrosshairPositionEventDelayed(), mitk::PointSetDataInteractor::MovePoint(), mitk::MeshMapper2D::Paint(), mitk::PointSetDataInteractor::RemovePoint(), mitk::PointSetDataInteractor::SelectPoint(), mitk::PointSetDataInteractor::UnSelectAll(), and mitk::PointSetDataInteractor::UnSelectPointAtPosition().
|
virtual |
Referenced by mitk::SinglePointDataInteractor::AddPoint(), mitk::PointSetDataInteractor::AddPoint(), mitk::Mapper::CalculateTimeStep(), mitk::BoundingShapeInteractor::CheckOverObject(), mitk::PointSetDataInteractor::CheckSelection(), mitk::LiveWireTool2D::ClearSegmentation(), QmitkAdaptiveRegionGrowingToolGUI::ConfirmSegmentation(), mitk::SurfaceDeformationDataInteractor3D::DeformObject(), mitk::SurfaceDeformationDataInteractor3D::DeselectObject(), mitk::PointSetDataInteractor::FinishMove(), mitk::ContourModelMapper2D::GenerateDataForRenderer(), mitk::SegTool2D::GetAffectedImageSliceAs2DImage(), GetTime(), mitk::AffineBaseDataInteractor3D::GetUpdatedTimeGeometry(), QmitkStdMultiWidget::HandleCrosshairPositionEventDelayed(), mitk::BoundingShapeInteractor::HandlePositionChanged(), mitk::SurfaceDeformationDataInteractor3D::InitDeformation(), mitk::AffineBaseDataInteractor3D::InitMembers(), mitk::ClippingPlaneInteractor3D::InitRotate(), mitk::ClippingPlaneInteractor3D::InitTranslate(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitk::PointSetDataInteractor::IsClosedContour(), mitk::ContourModelInteractor::IsHovering(), mitk::ContourModelLiveWireInteractor::IsHovering(), mitk::PlanarFigureInteractor::IsMousePositionAcceptableAsNewControlPoint(), mitk::PointSetDataInteractor::MovePoint(), mitk::ContourModelInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnDeletePoint(), mitk::ContourModelLiveWireInteractor::OnFinishEditing(), mitk::ContourTool::OnMouseMoved(), mitk::CorrectorTool2D::OnMouseMoved(), mitk::ContourModelInteractor::OnMoveContour(), mitk::ContourModelLiveWireInteractor::OnMovePoint(), mitk::PickingTool::OnPointAdded(), mitk::PointSetDataInteractor::RemovePoint(), mitk::ClippingPlaneInteractor3D::RotateObject(), mitk::AffineBaseDataInteractor3D::RotateObject(), QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation(), mitk::BoundingShapeInteractor::ScaleObject(), mitk::SurfaceDeformationDataInteractor3D::ScaleRadius(), mitk::SurfaceDeformationDataInteractor3D::SelectObject(), mitk::PointSetDataInteractor::SelectPoint(), mitk::ClippingPlaneInteractor3D::TranslateObject(), mitk::AffineBaseDataInteractor3D::TranslateObject(), mitk::BoundingShapeInteractor::TranslateObject(), mitk::PointSetDataInteractor::UnSelectAll(), mitk::PointSetDataInteractor::UnSelectPointAtPosition(), mitk::ContourModelMapper2D::Update(), mitk::ContourModelMapper3D::Update(), and mitk::SegTool2D::WriteBackSegmentationResult().
int mitk::BaseRenderer::GetTimeStep | ( | const BaseData * | data | ) | const |
Get the time-step of a BaseData object which exists at the time of the currently displayed content.
Returns -1 or mitk::BaseData::m_TimeSteps if there is no data at the current time.
Definition at line 350 of file mitkBaseRenderer.cpp.
References GetTime(), mitk::BaseData::GetTimeGeometry(), mitk::BaseData::IsInitialized(), and mitk::TimeGeometry::TimePointToTimeStep().
|
inline |
Get timestamp of last change of current TimeStep.
Definition at line 285 of file mitkBaseRenderer.h.
|
virtual |
Definition at line 458 of file mitkBaseRenderer.cpp.
References m_VtkRenderer.
Referenced by mitk::CameraController::ComputeMaxParallelScale(), mitk::PlanarFigureMapper2D::DrawHelperLines(), QmitkStdMultiWidget::EnsureDisplayContainsPoint(), GetScaleFactorMMPerDisplayUnit(), GetViewportSizeInMM(), and WorldToView().
mitk::Point2D mitk::BaseRenderer::GetViewportSizeInMM | ( | ) | const |
Definition at line 724 of file mitkBaseRenderer.cpp.
References GetScaleFactorMMPerDisplayUnit(), and GetViewportSize().
Referenced by mitk::CameraController::ComputeMaxParallelScale().
|
inline |
Definition at line 115 of file mitkBaseRenderer.h.
Referenced by mitk::CameraRotationController::AcquireCamera(), QmitkRenderWindowWidget::ActivateCrosshair(), mitk::VtkAnnotation::AddToBaseRenderer(), mitk::CameraController::AdjustCameraToPlane(), mitk::LabelSetImageVtkMapper2D::CalculateLayerDepth(), mitk::RegEvaluationMapper2D::CalculateLayerDepth(), mitk::DoseImageVtkMapper2D::CalculateLayerDepth(), mitk::ImageVtkMapper2D::CalculateLayerDepth(), mitk::SurfaceDeformationDataInteractor3D::DeformObject(), mitk::GPUVolumeMapper3D::DeinitRAY(), DisplayToWorld(), QmitkStdMultiWidget::EnsureDisplayContainsPoint(), mitk::CameraController::Fit(), QmitkStdMultiWidget::Fit(), mitk::BoundingShapeVtkMapper3D::GenerateDataForRenderer(), mitk::SurfaceVtkMapper3D::GenerateDataForRenderer(), mitk::TextAnnotation2D::GetBoundsOnDisplay(), mitk::CameraController::GetCameraPositionOnPlane(), GetScaleFactorMMPerDisplayUnit(), mitk::GizmoMapper2D::GetVtkPolyData(), mitk::GPUVolumeMapper3D::InitCPU(), mitk::SurfaceDeformationDataInteractor3D::InitDeformation(), mitk::GPUVolumeMapper3D::InitRAY(), mitk::ClippingPlaneInteractor3D::InitRotate(), mitk::ClippingPlaneInteractor3D::InitTranslate(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), QmitkRenderWindowWidget::IsGradientBackgroundOn(), main(), mitk::PlanarFigureMapper2D::MitkRender(), mitk::VtkMapper::MitkRenderOpaqueGeometry(), mitk::VtkMapper::MitkRenderOverlay(), mitk::VtkMapper::MitkRenderTranslucentGeometry(), mitk::VtkMapper::MitkRenderVolumetricGeometry(), QmitkPolhemusTrackerWidget::OnStartTracking(), mitk::VtkAnnotation::Paint(), mitk::VtkPropRenderer::PrepareRender(), vtkUnstructuredGridMapper::ReleaseGraphicsResources(), mitk::VtkAnnotation::RemoveFromBaseRenderer(), mitk::VtkPropRenderer::Render(), mitk::ClippingPlaneInteractor3D::RotateObject(), mitk::AffineImageCropperInteractor::RotateObject(), mitk::AffineBaseDataInteractor3D::RotateObject(), SaveSliceOrImageAsPNG(), mitk::InteractionTestHelper::Set3dCameraSettings(), QmitkRenderWindowWidget::SetGradientBackgroundColors(), mitk::GizmoInteractor::SetManipulatedObjectNode(), mitk::CameraController::SetScaleFactorInMMPerDisplayUnit(), mitk::CameraController::SetStandardView(), Step6::SetupWidgets(), mitk::VtkPropRenderer::SetWorldGeometryToDataStorageBounds(), QmitkRenderWindowWidget::ShowGradientBackground(), mitk::ClippingPlaneInteractor3D::TranslateObject(), mitk::TextAnnotation3D::UpdateVtkAnnotation(), mitk::LogoAnnotation::UpdateVtkAnnotation(), WorldToDisplay(), WorldToView(), mitk::VtkPropRenderer::WriteSimpleText(), and mitk::CameraController::Zoom().
|
virtual |
Referenced by QmitkSliceBasedInterpolatorWidget::UpdateVisibleSuggestion().
|
virtual |
Initialize the RenderWindow. Should only be called from RenderWindow.
Definition at line 265 of file mitkBaseRenderer.cpp.
|
virtual |
Initialize the renderer with a RenderWindow (renderwindow).
Reimplemented in mitk::VtkPropRenderer.
Definition at line 274 of file mitkBaseRenderer.cpp.
References m_CameraController, m_RenderWindow, and RemoveAllLocalStorages().
Referenced by mitk::VtkPropRenderer::InitRenderer().
|
virtual |
Set the initial size. Called by RenderWindow after it has become visible for the first time.
Reimplemented in mitk::VtkPropRenderer.
Definition at line 296 of file mitkBaseRenderer.cpp.
References m_RenderWindow.
Referenced by mitk::VtkPropRenderer::InitSize().
mitk::BaseRenderer::itkEventMacro | ( | RendererResetEvent | , |
itk::AnyEvent | |||
) |
|
virtual |
Provides (1) world coordinates for a given mouse position and (2) translates mousePosition to Display coordinates.
Definition at line 751 of file mitkBaseRenderer.cpp.
References DisplayToWorld().
|
virtual |
Do the rendering and flush the result.
Definition at line 261 of file mitkBaseRenderer.cpp.
|
inlinevirtual |
Determines the object (mitk::DataNode) closest to the current position by means of picking.
Reimplemented in mitk::VtkPropRenderer.
Definition at line 299 of file mitkBaseRenderer.h.
Referenced by mitk::ClippingPlaneInteractor3D::CheckOverObject(), mitk::SurfaceDeformationDataInteractor3D::CheckOverObject(), mitk::AffineBaseDataInteractor3D::CheckOverObject(), and mitk::SurfaceDeformationDataInteractor3D::InitDeformation().
|
pure virtual |
Perform a picking: find the x,y,z world coordinate of a display x,y coordinate.
Implemented here only for 2D-rendering
Implemented in mitk::VtkPropRenderer.
Referenced by DisplayToWorld().
void mitk::BaseRenderer::PlaneToDisplay | ( | const Point2D & | planePointInMM, |
Point2D & | displayPoint | ||
) | const |
This method converts a 2D plane coordinate to the display point using the geometry of the renderWindow.
Definition at line 686 of file mitkBaseRenderer.cpp.
References WorldToDisplay().
This method converts a 2D plane coordinate to the point on the viewport using the geometry of the renderWindow.
Definition at line 695 of file mitkBaseRenderer.cpp.
References WorldToView().
|
overrideprotected |
Definition at line 759 of file mitkBaseRenderer.cpp.
References m_CurrentWorldPlaneGeometryTransformTime, and m_MapperID.
void mitk::BaseRenderer::RegisterLocalStorageHandler | ( | mitk::BaseLocalStorageHandler * | lsh | ) |
Definition at line 234 of file mitkBaseRenderer.cpp.
References m_RegisteredLocalStorageHandlers.
Referenced by mitk::LocalStorageHandler< mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage >::GetLocalStorage().
void mitk::BaseRenderer::RemoveAllLocalStorages | ( | ) |
Definition at line 224 of file mitkBaseRenderer.cpp.
References m_RegisteredLocalStorageHandlers.
Referenced by InitRenderer(), and ~BaseRenderer().
|
static |
Definition at line 65 of file mitkBaseRenderer.cpp.
References baseRendererMap.
Referenced by AddInstance(), mitk::RenderWindowBase::Destroy(), and mitk::InteractionTestHelper::~InteractionTestHelper().
void mitk::BaseRenderer::RequestUpdate | ( | ) |
Definition at line 548 of file mitkBaseRenderer.cpp.
References mitk::RenderingManager::GetInstance(), m_RenderWindow, mitk::RenderingManager::RequestUpdate(), and SetConstrainZoomingAndPanning().
Referenced by QmitkSlicesInterpolator::OnSliceChanged(), QmitkSlicesInterpolator::OnSurfaceInterpolationFinished(), and mitk::VtkPropRenderer::RenderingCallback().
|
virtual |
Called to inform the renderer that the RenderWindow has been resized.
Reimplemented in mitk::VtkPropRenderer.
Definition at line 269 of file mitkBaseRenderer.cpp.
References m_RenderWindow.
Referenced by mitk::VtkPropRenderer::Resize().
void mitk::BaseRenderer::SendUpdateSlice | ( | ) |
Sets timestamp of CurrentWorldPlaneGeometry and forces so reslicing in that renderwindow.
Definition at line 448 of file mitkBaseRenderer.cpp.
|
virtual |
Definition at line 742 of file mitkBaseRenderer.cpp.
References mitk::CameraController::AdjustCameraToPlane(), GetCameraController(), and m_ConstrainZoomingAndPanning.
Referenced by mitk::RenderingManager::InitializeViews(), and RequestUpdate().
|
protectedvirtual |
Sets m_CurrentWorldGeometry.
Definition at line 463 of file mitkBaseRenderer.cpp.
References mitk::eps, m_Bounds, and m_EmptyWorldGeometry.
Referenced by SetSlice(), SetTimeStep(), and SetWorldGeometry3D().
|
inlineprotected |
Definition at line 436 of file mitkBaseRenderer.h.
|
protectedvirtual |
Sets m_CurrentWorldPlaneGeometry.
Definition at line 437 of file mitkBaseRenderer.cpp.
References mitk::PlaneGeometry::Clone(), and m_CurrentWorldPlaneGeometryData.
Referenced by SetSlice(), SetTimeStep(), SetWorldGeometry3D(), and UpdateGeometry().
|
virtual |
set the datastorage that will be used for rendering
Reimplemented in mitk::VtkPropRenderer.
Definition at line 249 of file mitkBaseRenderer.cpp.
References defaultMapper, m_DataStorage, and mitk::BindDispatcherInteractor::SetDataStorage().
Referenced by mitk::RenderingManager::AddRenderWindow(), mitk::VtkPropRenderer::SetDataStorage(), and mitk::RenderingManager::SetDataStorage().
|
virtual |
SetWorldGeometry is called according to the geometrySliceEvent, which is supposed to be a SliceNavigationController::GeometrySendEvent.
Definition at line 491 of file mitkBaseRenderer.cpp.
References SetWorldTimeGeometry().
|
virtual |
SetSlice is called according to the geometrySliceEvent, which is supposed to be a SliceNavigationController::GeometrySliceEvent.
Definition at line 520 of file mitkBaseRenderer.cpp.
References SetSlice().
|
virtual |
SetTimeStep is called according to the geometrySliceEvent, which is supposed to be a SliceNavigationController::GeometryTimeEvent.
Definition at line 529 of file mitkBaseRenderer.cpp.
References SetTimeStep().
|
virtual |
Tells if the displayed region should be shifted and rescaled if the render window is resized.
|
virtual |
Set the MapperSlotId to use.
Reimplemented in mitk::VtkPropRenderer.
Referenced by mitk::VtkPropRenderer::SetMapperID(), and mitk::RenderWindowViewDirectionController::SetViewDirectionOfRenderer().
|
virtual |
Set/Get m_Slice which defines together with m_TimeStep the 2D geometry stored in m_WorldTimeGeometry used as m_CurrentWorldPlaneGeometry.
Definition at line 301 of file mitkBaseRenderer.cpp.
References mitk::SlicedGeometry3D::GetPlaneGeometry(), mitk::SlicedGeometry3D::GetSlices(), SetCurrentWorldGeometry(), and SetCurrentWorldPlaneGeometry().
Referenced by SetGeometrySlice().
void mitk::BaseRenderer::SetSliceNavigationController | ( | mitk::SliceNavigationController * | SlicenavigationController | ) |
Sets the new Navigation controller
Definition at line 567 of file mitkBaseRenderer.cpp.
References mitk::SliceNavigationController::GetCreatedWorldGeometry(), m_SliceNavigationController, mitk::SliceNavigationController::SetInputWorldTimeGeometry(), and mitk::SliceNavigationController::Update().
|
virtual |
Set/Get m_TimeStep which defines together with m_Slice the 2D geometry stored in m_WorldTimeGeometry used as m_CurrentWorldPlaneGeometry.
Definition at line 326 of file mitkBaseRenderer.cpp.
References mitk::SlicedGeometry3D::GetPlaneGeometry(), SetCurrentWorldGeometry(), and SetCurrentWorldPlaneGeometry().
Referenced by SetGeometryTime().
|
virtual |
Set/Get the WorldGeometry (m_WorldGeometry) for 3D and 2D rendering, that describing the (maximal) area to be rendered.
Depending of the type of the passed BaseGeometry more or less information can be extracted:
Definition at line 397 of file mitkBaseRenderer.cpp.
References mitk::BaseGeometry::GetBoundingBox(), mitk::SlicedGeometry3D::GetPlaneGeometry(), mitk::SlicedGeometry3D::GetSlices(), mitk::PlaneGeometry::New(), SetCurrentWorldGeometry(), and SetCurrentWorldPlaneGeometry().
Referenced by SetWorldTimeGeometry().
void mitk::BaseRenderer::SetWorldGeometry3D | ( | TimeSlicedGeometry * | geometry | ) |
|
inlinevirtual |
Calculates the bounds of the DataStorage (if it contains any valid data), creates a geometry from these bounds and sets it as world geometry of the renderer.
Call this method to re-initialize the renderer to the current DataStorage (e.g. after loading an additional dataset), to ensure that the view is aligned correctly. This is not implemented yet.
Reimplemented in mitk::VtkPropRenderer.
Definition at line 203 of file mitkBaseRenderer.h.
|
virtual |
Definition at line 375 of file mitkBaseRenderer.cpp.
References mitk::TimeGeometry::GetBoundingBoxInWorld(), and SetWorldGeometry3D().
Referenced by SetGeometry(), and mitk::VtkPropRenderer::SetWorldGeometryToDataStorageBounds().
void mitk::BaseRenderer::UnregisterLocalStorageHandler | ( | mitk::BaseLocalStorageHandler * | lsh | ) |
Definition at line 244 of file mitkBaseRenderer.cpp.
References m_RegisteredLocalStorageHandlers.
Referenced by mitk::LocalStorageHandler< mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage >::ClearLocalStorage().
|
protectedpure virtual |
Call update of all mappers. To be implemented in subclasses.
Implemented in mitk::VtkPropRenderer.
|
virtual |
UpdateWorldGeometry is called to re-read the 2D geometry from the slice navigation controller.
Definition at line 500 of file mitkBaseRenderer.cpp.
References SetCurrentWorldPlaneGeometry().
void mitk::BaseRenderer::WorldToDisplay | ( | const Point3D & | worldIndex, |
Point2D & | displayPoint | ||
) | const |
This method converts a 3D world index to the display point using the geometry of the renderWindow.
Definition at line 647 of file mitkBaseRenderer.cpp.
References display, and GetVtkRenderer().
Referenced by mitk::BoundingShapeInteractor::CheckOverHandles(), mitk::PointSetVtkMapper2D::CreateVTKRenderObjects(), QmitkStdMultiWidget::EnsureDisplayContainsPoint(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitk::PlanarFigureInteractor::IsMousePositionAcceptableAsNewControlPoint(), mitk::ContourSetMapper2D::MitkRender(), mitk::ContourMapper2D::MitkRender(), mitk::MeshMapper2D::Paint(), mitk::UnstructuredGridMapper2D::Paint(), mitk::VectorImageMapper2D::PaintCells(), PlaneToDisplay(), and mitk::PlanarFigureInteractor::TransformObjectToDisplay().
void mitk::BaseRenderer::WorldToView | ( | const Point3D & | worldIndex, |
mitk::Point2D & | viewPoint | ||
) | const |
This method converts a 3D world index to the point on the viewport using the geometry of the renderWindow.
Definition at line 666 of file mitkBaseRenderer.cpp.
References GetViewportSize(), and GetVtkRenderer().
Referenced by mitk::ContourModelGLMapper2DBase::InternalDrawContour(), PlaneToView(), and mitk::PlanarFigureMapper2D::TransformObjectToDisplay().
|
static |
Definition at line 69 of file mitkBaseRenderer.h.
Referenced by AddInstance(), mitk::EventFactory::CreateEvent(), GetByName(), GetInstance(), GetRenderWindowByName(), RemoveInstance(), and WriteEventXMLConfig().
|
static |
Default mapper id to use.
Definition at line 122 of file mitkBaseRenderer.h.
Referenced by SetDataStorage().
|
protected |
Definition at line 508 of file mitkBaseRenderer.h.
Referenced by BaseRenderer(), GetBounds(), and SetCurrentWorldGeometry().
|
protected |
CameraController for 3D rendering.
Definition at line 426 of file mitkBaseRenderer.h.
Referenced by BaseRenderer(), InitRenderer(), ~BaseRenderer(), and mitk::VtkPropRenderer::~VtkPropRenderer().
|
protected |
Definition at line 428 of file mitkBaseRenderer.h.
Referenced by BaseRenderer().
|
protected |
Definition at line 523 of file mitkBaseRenderer.h.
Referenced by SetConstrainZoomingAndPanning().
|
protected |
Data object containing the m_CurrentWorldPlaneGeometry defined above.
Definition at line 496 of file mitkBaseRenderer.h.
Referenced by BaseRenderer(), and SetCurrentWorldPlaneGeometry().
|
protected |
DataNode objects containing the m_CurrentWorldPlaneGeometryData defined above.
Definition at line 500 of file mitkBaseRenderer.h.
Referenced by BaseRenderer(), and mitk::VtkPropRenderer::VtkPropRenderer().
|
protected |
test only
Definition at line 504 of file mitkBaseRenderer.h.
Referenced by BaseRenderer(), and PrintSelf().
|
protected |
The DataStorage that is used for rendering.
Definition at line 417 of file mitkBaseRenderer.h.
Referenced by mitk::VtkPropRenderer::InitPathTraversal(), mitk::VtkPropRenderer::PickObject(), mitk::VtkPropRenderer::ReleaseGraphicsResources(), mitk::VtkPropRenderer::Render(), mitk::VtkPropRenderer::SetDataStorage(), SetDataStorage(), mitk::VtkPropRenderer::SetWorldGeometryToDataStorageBounds(), mitk::VtkPropRenderer::Update(), mitk::VtkPropRenderer::UpdatePaths(), and ~BaseRenderer().
|
protected |
Definition at line 510 of file mitkBaseRenderer.h.
Referenced by SetCurrentWorldGeometry().
|
protected |
Timestamp of last call of Update().
Definition at line 421 of file mitkBaseRenderer.h.
Referenced by mitk::VtkPropRenderer::InitRenderer(), mitk::VtkPropRenderer::Render(), and mitk::VtkPropRenderer::Update().
|
protected |
MapperSlotId to use. Defines which kind of mapper (e.g., 2D or 3D) shoud be used.
Definition at line 413 of file mitkBaseRenderer.h.
Referenced by DisplayToPlane(), DisplayToWorld(), mitk::VtkPropRenderer::PickObject(), PrintSelf(), mitk::VtkPropRenderer::ReleaseGraphicsResources(), mitk::VtkPropRenderer::Render(), mitk::VtkPropRenderer::SetMapperID(), mitk::VtkPropRenderer::Update(), mitk::VtkPropRenderer::useImmediateModeRendering(), and mitk::VtkPropRenderer::~VtkPropRenderer().
|
protected |
Definition at line 506 of file mitkBaseRenderer.h.
Referenced by BaseRenderer().
|
protected |
Number of mappers which are visible and have level-of-detail rendering enabled
Definition at line 516 of file mitkBaseRenderer.h.
Referenced by GetNumberOfVisibleLODEnabledMappers(), and mitk::VtkPropRenderer::Render().
|
protected |
Definition at line 521 of file mitkBaseRenderer.h.
Referenced by RegisterLocalStorageHandler(), RemoveAllLocalStorages(), and UnregisterLocalStorageHandler().
|
protected |
Definition at line 408 of file mitkBaseRenderer.h.
Referenced by BaseRenderer(), ForceImmediateUpdate(), GetSize(), InitRenderer(), mitk::VtkPropRenderer::InitSize(), InitSize(), mitk::VtkPropRenderer::MakeCurrent(), RequestUpdate(), Resize(), and ~BaseRenderer().
|
protected |
Definition at line 427 of file mitkBaseRenderer.h.
Referenced by BaseRenderer(), and SetSliceNavigationController().
|
protected |
Definition at line 409 of file mitkBaseRenderer.h.
Referenced by BaseRenderer(), GetOriginInMM(), GetViewportSize(), mitk::VtkPropRenderer::InitSize(), mitk::VtkPropRenderer::PickObject(), mitk::VtkPropRenderer::PickWorldPoint(), mitk::VtkPropRenderer::VtkPropRenderer(), ~BaseRenderer(), and mitk::VtkPropRenderer::~VtkPropRenderer().