Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Organizes the rendering process. More...
#include <mitkBaseRenderer.h>
Classes | |
struct | RenderingMode |
This rendering mode enumeration is specified at various constructors of the Renderer and RenderWindow classes, which autoconfigures the respective VTK objects. This has to be done at construction time because later configuring turns out to be not working on most platforms. More... | |
Public Types | |
enum | StandardMapperSlot { Standard2D, Standard3D } |
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) shoud 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, mitk::RenderingManager *rm=nullptr, RenderingMode::Type mode=RenderingMode::Standard) | |
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 (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 (mitk::TimeGeometry *geometry) |
void | SetWorldGeometry3D (TimeSlicedGeometry *geometry) |
virtual const TimeGeometry * | GetWorldTimeGeometry () |
virtual 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... | |
void | SetOverlayManager (itk::SmartPointer< OverlayManager > overlayManager) |
Sets an OverlayManager which is used to add various Overlays to this renderer. If an OverlayManager was already set it will be overwritten. More... | |
itk::SmartPointer< OverlayManager > | GetOverlayManager () |
Get the OverlayManager registered with this renderer if none was set, it will be created at this point. 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 |
virtual mitk::RenderingManager * | GetRenderingManager () const |
Setter for the RenderingManager that handles this instance of BaseRenderer. More... | |
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 | 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... | |
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 | |
virtual | ~BaseRenderer () |
virtual void | Update ()=0 |
Call update of all mappers. To be implemented in subclasses. More... | |
virtual void | SetCurrentWorldPlaneGeometry (PlaneGeometry *geometry2d) |
Sets m_CurrentWorldPlaneGeometry. More... | |
void | SetCurrentWorldGeometry2D (PlaneGeometry *geometry2d) |
virtual void | SetCurrentWorldGeometry (BaseGeometry *geometry) |
Sets m_CurrentWorldGeometry. More... | |
void | UpdateOverlays () |
This method is called during the rendering process to update or render the Overlays which are stored in the OverlayManager. More... | |
virtual void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
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 70 of file mitkBaseRenderer.h.
typedef std::map<vtkRenderWindow *, BaseRenderer *> mitk::BaseRenderer::BaseRendererMapType |
Definition at line 88 of file mitkBaseRenderer.h.
typedef itk::SmartPointer<const Self> mitk::BaseRenderer::ConstPointer |
Definition at line 103 of file mitkBaseRenderer.h.
|
protected |
Definition at line 545 of file mitkBaseRenderer.h.
typedef int mitk::BaseRenderer::MapperSlotId |
MapperSlotId defines which kind of mapper (e.g., 2D or 3D) shoud be used.
Definition at line 112 of file mitkBaseRenderer.h.
Definition at line 103 of file mitkBaseRenderer.h.
typedef BaseRenderer mitk::BaseRenderer::Self |
Standard class typedefs.
Definition at line 103 of file mitkBaseRenderer.h.
typedef itk::Object mitk::BaseRenderer::Superclass |
Definition at line 103 of file mitkBaseRenderer.h.
mitk::BaseRenderer::BaseRenderer | ( | const char * | name = nullptr , |
vtkRenderWindow * | renWin = nullptr , |
||
mitk::RenderingManager * | rm = nullptr , |
||
RenderingMode::Type | mode = RenderingMode::Standard |
||
) |
Definition at line 97 of file mitkBaseRenderer.cpp.
References mitk::VtkLayerController::AddInstance(), mitk::BaseRenderer::RenderingMode::DepthPeeling, mitk::VtkLayerController::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::New(), mitk::CameraController::New(), mitk::DataNode::New(), mitk::PlaneGeometry::New(), and mitk::SliceNavigationController::New().
|
protectedvirtual |
Definition at line 203 of file mitkBaseRenderer.cpp.
References m_DataStorage, and mitk::VtkLayerController::RemoveInstance().
|
static |
Definition at line 59 of file mitkBaseRenderer.cpp.
References 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 686 of file mitkBaseRenderer.cpp.
References MITK_WARN, Standard2D, and Standard3D.
Referenced by mitk::DisplayInteractor::Init(), 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 644 of file mitkBaseRenderer.cpp.
References Standard2D, and Standard3D.
|
virtual |
Draws a point on the widget. Should be used during conferences to show the position of the remote mouse.
Definition at line 594 of file mitkBaseRenderer.cpp.
References MITK_INFO.
void mitk::BaseRenderer::ForceImmediateUpdate | ( | ) |
Definition at line 605 of file mitkBaseRenderer.cpp.
Referenced by QmlMitkRenderWindowItem::prepareForRender().
const double * mitk::BaseRenderer::GetBounds | ( | ) | const |
Definition at line 589 of file mitkBaseRenderer.cpp.
|
static |
Definition at line 77 of file mitkBaseRenderer.cpp.
Referenced by mitk::EventFactory::CreateEvent().
|
virtual |
|
virtual |
Referenced by mitk::RenderWindowBase::GetCameraRotationController().
|
inlinevirtual |
Reimplemented in mitk::VtkPropRenderer.
Definition at line 103 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 203 of file mitkBaseRenderer.h.
Referenced by mitk::RegEvaluationMapper2D::GenerateDataForRenderer(), mitk::MITKRegistrationWrapperMapper2D::RendererGeometryIsOutdated(), and mitk::RegEvaluationMapper2D::Update().
|
inline |
Definition at line 287 of file mitkBaseRenderer.h.
Referenced by main(), and Step6::SetupWidgets().
|
inline |
Definition at line 302 of file mitkBaseRenderer.h.
Referenced by mitk::RegEvaluationMapper2D::GenerateDataForRenderer(), and mitk::RegEvaluationMapper2D::Update().
|
virtual |
Get the current 2D-worldgeometry (m_CurrentWorldPlaneGeometry) used for 2D-rendering.
Referenced by mitk::PlanarFigureInteractor::AddPoint(), mitk::PlanarFigureInteractor::CheckControlPointHovering(), mitk::PlanarFigureInteractor::CheckFigureHovering(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), mitk::DisplayInteractor::CheckRotationPossible(), mitk::ContourModelMapper2D::CreateVtkPolyDataFromContour(), mitk::PointSetVtkMapper2D::CreateVTKRenderObjects(), QmitkStdMultiWidget::EnsureDisplayContainsPoint(), mitk::SurfaceVtkMapper2D::GenerateDataForRenderer(), mitk::LabelSetImageVtkMapper2D::GenerateDataForRenderer(), mitk::ImageVtkMapper2D::GenerateDataForRenderer(), mitk::DoseImageVtkMapper2D::GenerateDataForRenderer(), mitk::SegTool2D::GetAffectedImageSliceAs2DImage(), mitk::MITKRegistrationWrapperMapper2D::GetGeometryDescription(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitk::ContourModelSetGLMapper2D::InternalDrawContour(), mitk::PlanarFigureInteractor::IsMousePositionAcceptableAsNewControlPoint(), mitk::FastMarchingTool::OnAddPoint(), mitk::LiveWireTool2D::OnFinish(), mitk::LiveWireTool2D::OnInitLiveWire(), mitk::SetRegionTool::OnMouseReleased(), mitk::ContourTool::OnMouseReleased(), mitk::CorrectorTool2D::OnMouseReleased(), mitk::MeshMapper2D::Paint(), mitk::ContourSetMapper2D::Paint(), mitk::ContourMapper2D::Paint(), mitk::VectorImageMapper2D::Paint(), mitk::UnstructuredGridMapper2D::Paint(), mitk::PlanarFigureMapper2D::Paint(), mitk::PlanarFigureInteractor::SelectPoint(), mitk::ContourModelMapper2D::Update(), mitk::ContourModelMapper3D::Update(), mitk::ContourModelSetMapper3D::Update(), mitk::LabelSetImageVtkMapper2D::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(), QmlMitkStdMultiItem::addPlanes(), QmlMitkRenderWindowItem::createPlaneNode(), mitk::PlaneGeometryDataMapper2D::CreateVtkCrosshair(), mitk::ImageVtkMapper2D::GenerateDataForRenderer(), and mitk::DoseImageVtkMapper2D::GenerateDataForRenderer().
|
inline |
Get timestamp of last call of SetCurrentWorldPlaneGeometry.
Definition at line 298 of file mitkBaseRenderer.h.
Referenced by mitk::ContourSetVtkMapper3D::GenerateDataForRenderer(), mitk::ContourModelMapper2D::Update(), mitk::ContourModelMapper3D::Update(), mitk::ContourModelSetMapper3D::Update(), mitk::FiberBundleMapper2D::Update(), mitk::LabelSetImageVtkMapper2D::Update(), mitk::ImageVtkMapper2D::Update(), mitk::DoseImageVtkMapper2D::Update(), and mitk::SurfaceVtkMapper2D::Update().
|
inlinevirtual |
return the DataStorage that is used for rendering
Definition at line 124 of file mitkBaseRenderer.h.
References m_DataStorage.
Referenced by QmlMitkRenderWindowItem::createPlaneNode(), mitk::PlanarFigureInteractor::DeleteFigure(), mitk::UnstructuredGridVtkMapper3D::GenerateDataForRenderer(), QmitkFreeSurferParcellationHandler::Notify(), and mitk::DisplayInteractor::UpdateStatusbar().
mitk::Dispatcher::Pointer mitk::BaseRenderer::GetDispatcher | ( | ) | const |
Returns the Dispatcher which handles Events for this BaseRenderer.
Definition at line 252 of file mitkBaseRenderer.cpp.
Referenced by mitk::PointSetDataInteractor::Abort(), mitk::PointSetDataInteractor::AddPoint(), and mitk::PointSetDataInteractor::IsClosedContour().
mitk::Point2D mitk::BaseRenderer::GetDisplaySizeInMM | ( | ) | const |
Definition at line 743 of file mitkBaseRenderer.cpp.
|
virtual |
|
static |
Definition at line 49 of file mitkBaseRenderer.cpp.
References baseRendererMap.
Referenced by mitk::RenderingManager::AbortRendering(), mitk::CameraRotationController::AcquireCamera(), AddDisplayPlaneSubTree(), mitk::InteractionTestHelper::AddDisplayPlaneSubTree(), QmitkStdMultiWidget::AddDisplayPlaneSubTree(), mitk::RenderingManager::AddRenderWindow(), QmitkSurfaceBasedInterpolatorWidget::ChangeSurfaceColor(), QmitkSlicesInterpolator::ChangeSurfaceColor(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), mitk::DisplayInteractor::CheckRotationPossible(), mitk::DisplayInteractor::CheckSwivelPossible(), QmitkBoundingObjectWidget::CreateBoundingObject(), QmitkStdMultiWidget::EnableStandardLevelWindow(), mitk::RenderingManager::ExecutePendingHighResRenderingRequest(), Fit(), QmitkStdMultiWidget::Fit(), mitk::RenderingManager::ForceImmediateUpdate(), mitk::RenderingManager::ForceImmediateUpdateAll(), QmitkODFRenderWidget::GenerateODF(), QmlMitkRenderWindowItem::geometryChanged(), mitk::RenderWindowBase::GetCameraRotationController(), mitk::RenderWindowBase::GetController(), mitk::OverlayManager::GetInstance(), mitk::RenderWindowBase::GetSliceNavigationController(), mitk::RenderingManager::InitializeView(), mitk::RenderingManager::InitializeViews(), QmitkStdMultiWidget::InitializeWidget(), InitializeWindows(), QmitkStdMultiWidget::IsDepartmentLogoEnabled(), main(), QmitkSlicesInterpolator::On3DInterpolationActivated(), QmitkFastMarchingTool3DGUI::OnNewToolAssociated(), QmitkFastMarchingToolGUI::OnNewToolAssociated(), mitk::PickingTool::OnPointAdded(), QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded(), QmitkSlicesInterpolator::OnSurfaceInterpolationFinished(), QmlMitkRenderWindowItem::prepareForRender(), mitk::vtkEventProvider::ProcessEvents(), QmitkSlicesInterpolator::QmitkSlicesInterpolator(), QmitkSurfaceBasedInterpolatorWidget::QmitkSurfaceBasedInterpolatorWidget(), mitk::RTStructureSetReader::ReadStructureSet(), mitk::vtkSimulationPolyDataMapper2D::Render(), mitk::VtkPropRenderer::RenderingCallback(), mitk::RenderingManager::RenderingEndCallback(), mitk::RenderingManager::RenderingProgressCallback(), mitk::RenderingManager::RenderingStartCallback(), mitk::RenderingTestHelper::ReorientSlices(), mitk::RenderingManager::RequestUpdateAll(), QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation(), QmitkStandardViews::SetCameraControllerFromRenderWindow(), mitk::DisplayInteractor::SetCrosshair(), QmitkStdMultiWidget::SetDataStorage(), mitk::RenderingManager::SetDataStorage(), QmitkStdMultiWidget::SetDepartmentLogoPath(), QmitkToolSelectionBox::SetGUIEnabledAccordingToToolManagerState(), mitk::RenderingTestHelper::SetViewDirection(), QmitkSlicesInterpolator::Show3DInterpolationResult(), QmitkSurfaceBasedInterpolatorWidget::ShowInterpolationResult(), 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::DisplayInteractor::FilterEvents(), mitk::SegTool2D::FilterEvents(), mitk::PlanarFigureInteractor::FilterEvents(), mitk::RenderingManager::ForceImmediateUpdateAll(), mitk::RenderWindowBase::GetController(), mitk::RenderingManager::InitializeView(), mitk::RenderingManager::InitializeViews(), mitk::RenderingManager::RequestUpdateAll(), mitk::AffineImageCropperInteractor::RotateObject(), and QmitkSliceBasedInterpolatorWidget::UpdateVisibleSuggestion().
|
virtual |
|
inline |
get the name of the Renderer
Definition at line 355 of file mitkBaseRenderer.h.
Referenced by QmitkStdMultiWidget::AddDisplayPlaneSubTree(), BaseRenderer(), QmitkSliceBasedInterpolatorWidget::CreateActionToSliceDimension(), mitk::MITKRegistrationWrapperMapperBase::GenerateDataForRenderer(), mitk::DataNode::GetProperty(), and mitk::DataNode::GetPropertyList().
unsigned int mitk::BaseRenderer::GetNumberOfVisibleLODEnabledMappers | ( | ) | const |
Returns number of mappers which are visible and have level-of-detail rendering enabled
Definition at line 610 of file mitkBaseRenderer.cpp.
Referenced by mitk::RenderingManager::ExecutePendingHighResRenderingRequest(), mitk::RenderingManager::RenderingEndCallback(), and mitk::RenderingManager::RenderingProgressCallback().
mitk::Point2D mitk::BaseRenderer::GetOriginInMM | ( | ) | const |
Definition at line 759 of file mitkBaseRenderer.cpp.
itk::SmartPointer< mitk::OverlayManager > mitk::BaseRenderer::GetOverlayManager | ( | ) |
Get the OverlayManager registered with this renderer if none was set, it will be created at this point.
Definition at line 359 of file mitkBaseRenderer.cpp.
References mitk::OverlayManager::New().
Referenced by mitk::ContourModelGLMapper2DBase::DrawContour(), mitk::OverlayManager::GetInstance(), and main().
|
virtual |
Setter for the RenderingManager that handles this instance of BaseRenderer.
Getter for the RenderingManager that handles this instance of BaseRenderer
Definition at line 615 of file mitkBaseRenderer.cpp.
Referenced by mitk::PlanarFigureInteractor::AddInitialPoint(), QmitkOverlayController::AddOverlay(), mitk::SinglePointDataInteractor::AddPoint(), mitk::PlanarFigureInteractor::AddPoint(), mitk::PointSetDataInteractor::AddPoint(), mitk::DisplayInteractor::CheckRotationPossible(), mitk::DisplayInteractor::CheckSwivelPossible(), mitk::SurfaceDeformationDataInteractor3D::DeformObject(), mitk::PlanarFigureInteractor::DeleteFigure(), mitk::SurfaceDeformationDataInteractor3D::DeselectObject(), mitk::ClippingPlaneInteractor3D::DeselectObject(), mitk::AffineImageCropperInteractor::DeselectObject(), mitk::AffineBaseDataInteractor3D::DeselectObject(), mitk::TubeGraphDataInteractor::DeselectTube(), mitk::PlanarFigureInteractor::EndHovering(), mitk::PlanarFigureInteractor::EndInteraction(), mitk::PlanarFigureInteractor::FinalizeFigure(), mitk::PointSetDataInteractor::FinishMove(), mitk::SliceNavigationController::GetRenderingManager(), mitk::PlanarFigureInteractor::HidePreviewPoint(), mitk::DisplayInteractor::Move(), mitk::PlanarFigureInteractor::MoveCurrentPoint(), mitk::PointSetDataInteractor::MovePoint(), mitk::LiveWireTool2D::OnMouseMoved(), QmitkRenderWindow::paintEvent(), mitk::PointSetDataInteractor::RemovePoint(), mitk::PlanarFigureInteractor::RemoveSelectedPoint(), mitk::RenderingManager::RenderingEndCallback(), mitk::RenderingManager::RenderingProgressCallback(), mitk::RenderingManager::RenderingStartCallback(), mitk::ClippingPlaneInteractor3D::RotateObject(), mitk::AffineImageCropperInteractor::RotateObject(), mitk::AffineBaseDataInteractor3D::RotateObject(), mitk::SurfaceDeformationDataInteractor3D::ScaleRadius(), mitk::AffineImageCropperInteractor::ScaleRadius(), mitk::SurfaceDeformationDataInteractor3D::SelectObject(), mitk::AffineImageCropperInteractor::SelectObject(), mitk::ClippingPlaneInteractor3D::SelectObject(), mitk::AffineBaseDataInteractor3D::SelectObject(), mitk::PointSetDataInteractor::SelectPoint(), mitk::TubeGraphDataInteractor::SelectTube(), mitk::PlanarFigureInteractor::SetPreviewPointPosition(), mitk::PlanarFigureInteractor::StartHovering(), mitk::ClippingPlaneInteractor3D::TranslateObject(), and mitk::AffineImageCropperInteractor::TranslateObject().
|
inline |
Access the RenderWindow into which this renderer renders.
Definition at line 127 of file mitkBaseRenderer.h.
Referenced by mitk::ContourModelInteractor::IsHovering(), mitk::ContourModelLiveWireInteractor::IsHovering(), mitk::PaintbrushTool::MouseMoved(), mitk::DisplayInteractor::Move(), mitk::LiveWireTool2D::OnAddPoint(), mitk::ContourModelInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnDeletePoint(), mitk::ContourModelInteractor::OnFinishEditing(), mitk::ContourModelLiveWireInteractor::OnFinishEditing(), mitk::LiveWireTool2D::OnInitLiveWire(), mitk::LiveWireTool2D::OnLastSegmentDelete(), mitk::ContourTool::OnMouseMoved(), mitk::CorrectorTool2D::OnMouseMoved(), mitk::LiveWireTool2D::OnMouseMoved(), mitk::RegionGrowingTool::OnMouseMoved(), mitk::SetRegionTool::OnMousePressed(), mitk::ContourTool::OnMousePressed(), mitk::SetRegionTool::OnMouseReleased(), mitk::ContourTool::OnMouseReleased(), mitk::PaintbrushTool::OnMouseReleased(), mitk::CorrectorTool2D::OnMouseReleased(), mitk::ContourModelInteractor::OnMoveContour(), mitk::ContourModelInteractor::OnMovePoint(), mitk::ContourModelLiveWireInteractor::OnMovePoint(), mitk::Dispatcher::ProcessEvent(), mitk::PointSetVtkMapper3D::ReleaseGraphicsResources(), mitk::RenderingManager::RenderingEndCallback(), mitk::ClippingPlaneInteractor3D::RotateObject(), mitk::VtkShaderRepository::UpdateShaderProgram(), and mitk::AxisOverlay::UpdateVtkOverlay().
|
static |
Definition at line 87 of file mitkBaseRenderer.cpp.
Referenced by QmitkSurfaceBasedInterpolatorWidget::ChangeSurfaceColor(), QmitkSlicesInterpolator::ChangeSurfaceColor(), mitk::PaintbrushTool::CheckIfCurrentSliceHasChanged(), QmitkSlicesInterpolator::On3DInterpolationActivated(), QmitkFastMarchingTool3DGUI::OnNewToolAssociated(), QmitkFastMarchingToolGUI::OnNewToolAssociated(), mitk::PickingTool::OnPointAdded(), QmitkAdaptiveRegionGrowingToolGUI::OnPointAdded(), QmitkSlicesInterpolator::OnSurfaceInterpolationFinished(), QmitkSlicesInterpolator::QmitkSlicesInterpolator(), QmitkSurfaceBasedInterpolatorWidget::QmitkSurfaceBasedInterpolatorWidget(), mitk::RTStructureSetReader::ReadStructureSet(), QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation(), QmitkToolSelectionBox::SetGUIEnabledAccordingToToolManagerState(), QmitkSlicesInterpolator::Show3DInterpolationResult(), QmitkSurfaceBasedInterpolatorWidget::ShowInterpolationResult(), QmitkSurfaceBasedInterpolatorWidget::StopUpdateInterpolationTimer(), and QmitkSlicesInterpolator::StopUpdateInterpolationTimer().
double mitk::BaseRenderer::GetScaleFactorMMPerDisplayUnit | ( | ) | const |
Definition at line 731 of file mitkBaseRenderer.cpp.
References Standard2D.
Referenced by mitk::PlaneGeometryDataMapper2D::CreateVtkCrosshair(), mitk::PlanarFigureMapper2D::DrawHelperLines(), and mitk::DisplayInteractor::Move().
|
virtual |
Definition at line 496 of file mitkBaseRenderer.cpp.
|
inline |
|
inline |
|
virtual |
Referenced by mitk::LiveWireTool2D::OnInitLiveWire(), mitk::SetRegionTool::OnMousePressed(), mitk::ContourTool::OnMousePressed(), mitk::PaintbrushTool::OnMousePressed(), mitk::CorrectorTool2D::OnMousePressed(), mitk::RegionGrowingTool::OnMousePressed(), and QmitkSliceBasedInterpolatorWidget::UpdateVisibleSuggestion().
|
virtual |
Referenced by mitk::PlanarFigureInteractor::AddInitialPoint(), mitk::DisplayInteractor::CheckRotationPossible(), mitk::DisplayInteractor::CheckSwivelPossible(), QmlMitkRenderWindowItem::createPlaneNode(), mitk::RenderWindowBase::GetSliceNavigationController(), mitk::RenderingManager::InitializeView(), mitk::RenderingManager::InitializeViews(), QmlMitkStdMultiItem::registerViewerItem(), mitk::vtkSimulationPolyDataMapper2D::Render(), mitk::DisplayInteractor::Scroll(), mitk::DisplayInteractor::ScrollOneDown(), mitk::DisplayInteractor::ScrollOneUp(), mitk::DisplayInteractor::SetCrosshair(), QmlMitkRenderWindowItem::setupView(), and mitk::FiberBundleMapper2D::UpdateShaderParameter().
|
inlinestatic |
Definition at line 103 of file mitkBaseRenderer.h.
mitk::ScalarType mitk::BaseRenderer::GetTime | ( | ) | const |
Get the time in ms of the currently displayed content.
Definition at line 402 of file mitkBaseRenderer.cpp.
Referenced by mitk::SinglePointDataInteractor::AddPoint(), mitk::PointSetDataInteractor::AddPoint(), mitk::PointSetDataInteractor::FinishMove(), mitk::SurfaceVtkMapper2D::GenerateDataForRenderer(), mitk::VectorImageMapper2D::GetCurrentTimeStep(), QmitkStdMultiWidget::HandleCrosshairPositionEventDelayed(), mitk::PointSetDataInteractor::MovePoint(), mitk::MeshMapper2D::Paint(), mitk::PointSetDataInteractor::RemovePoint(), mitk::PointSetDataInteractor::SelectPoint(), mitk::PointSetDataInteractor::UnSelectAll(), mitk::PointSetDataInteractor::UnSelectPointAtPosition(), and mitk::DisplayInteractor::UpdateStatusbar().
|
virtual |
Referenced by mitk::SinglePointDataInteractor::AddPoint(), mitk::PointSetDataInteractor::AddPoint(), mitk::Mapper::CalculateTimeStep(), mitk::SegmentationInteractor::ChangeActiveLabel(), mitk::PointSetDataInteractor::CheckSelection(), mitk::SurfaceDeformationDataInteractor3D::DeformObject(), mitk::SurfaceDeformationDataInteractor3D::DeselectObject(), mitk::PointSetDataInteractor::FinishMove(), mitk::ContourModelMapper2D::GenerateDataForRenderer(), mitk::SegTool2D::GetAffectedImageSliceAs2DImage(), mitk::AffineBaseDataInteractor3D::GetUpdatedTimeGeometry(), QmitkStdMultiWidget::HandleCrosshairPositionEventDelayed(), mitk::SurfaceDeformationDataInteractor3D::InitDeformation(), mitk::AffineBaseDataInteractor3D::InitMembers(), mitk::ClippingPlaneInteractor3D::InitRotate(), mitk::ClippingPlaneInteractor3D::InitTranslate(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitk::ContourModelSetGLMapper2D::InternalDrawContour(), mitk::PointSetDataInteractor::IsClosedContour(), mitk::ContourModelInteractor::IsHovering(), mitk::ContourModelLiveWireInteractor::IsHovering(), mitk::PlanarFigureInteractor::IsMousePositionAcceptableAsNewControlPoint(), mitk::PaintbrushTool::MouseMoved(), mitk::PointSetDataInteractor::MovePoint(), mitk::LiveWireTool2D::OnAddPoint(), mitk::LiveWireTool2D::OnCheckPoint(), mitk::ContourModelInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnCheckPointClick(), mitk::ContourModelLiveWireInteractor::OnDeletePoint(), mitk::LiveWireTool2D::OnFinish(), mitk::ContourModelLiveWireInteractor::OnFinishEditing(), mitk::LiveWireTool2D::OnInitLiveWire(), mitk::LiveWireTool2D::OnLastSegmentDelete(), mitk::ContourTool::OnMouseMoved(), mitk::CorrectorTool2D::OnMouseMoved(), mitk::LiveWireTool2D::OnMouseMoved(), mitk::RegionGrowingTool::OnMouseMoved(), mitk::ContourTool::OnMousePressed(), mitk::CorrectorTool2D::OnMousePressed(), mitk::RegionGrowingTool::OnMousePressedOutside(), mitk::SetRegionTool::OnMouseReleased(), mitk::ContourTool::OnMouseReleased(), mitk::CorrectorTool2D::OnMouseReleased(), mitk::RegionGrowingTool::OnMouseReleased(), mitk::ContourModelInteractor::OnMoveContour(), mitk::ContourModelLiveWireInteractor::OnMovePoint(), mitk::PickingTool::OnPointAdded(), mitk::PointSetDataInteractor::RemovePoint(), mitk::ClippingPlaneInteractor3D::RotateObject(), mitk::AffineBaseDataInteractor3D::RotateObject(), QmitkAdaptiveRegionGrowingToolGUI::RunSegmentation(), mitk::SurfaceDeformationDataInteractor3D::ScaleRadius(), mitk::SurfaceDeformationDataInteractor3D::SelectObject(), mitk::PointSetDataInteractor::SelectPoint(), mitk::ClippingPlaneInteractor3D::TranslateObject(), mitk::AffineBaseDataInteractor3D::TranslateObject(), mitk::PointSetDataInteractor::UnSelectAll(), mitk::PointSetDataInteractor::UnSelectPointAtPosition(), mitk::ContourModelMapper2D::Update(), mitk::ContourModelMapper3D::Update(), mitk::DisplayInteractor::UpdateStatusbar(), 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 393 of file mitkBaseRenderer.cpp.
References mitk::BaseData::GetTimeGeometry(), mitk::BaseData::IsInitialized(), and mitk::TimeGeometry::TimePointToTimeStep().
|
inline |
Get timestamp of last change of current TimeStep.
Definition at line 308 of file mitkBaseRenderer.h.
|
virtual |
Definition at line 501 of file mitkBaseRenderer.cpp.
Referenced by mitk::PlanarFigureMapper2D::DrawHelperLines(), and QmitkStdMultiWidget::EnsureDisplayContainsPoint().
mitk::Point2D mitk::BaseRenderer::GetViewportSizeInMM | ( | ) | const |
Definition at line 751 of file mitkBaseRenderer.cpp.
|
inline |
Definition at line 128 of file mitkBaseRenderer.h.
Referenced by mitk::CameraRotationController::AcquireCamera(), mitk::VtkOverlay::AddToBaseRenderer(), mitk::LabelSetImageVtkMapper2D::CalculateLayerDepth(), mitk::RegEvaluationMapper2D::CalculateLayerDepth(), mitk::ImageVtkMapper2D::CalculateLayerDepth(), mitk::DoseImageVtkMapper2D::CalculateLayerDepth(), mitk::SurfaceDeformationDataInteractor3D::DeformObject(), mitk::GPUVolumeMapper3D::DeinitGPU(), QmitkStdMultiWidget::DisableGradientBackground(), QmitkStdMultiWidget::EnableGradientBackground(), QmitkStdMultiWidget::EnsureDisplayContainsPoint(), mitk::BoundingShapeVtkMapper3D::GenerateDataForRenderer(), mitk::SimulationVtkMapper3D::GenerateDataForRenderer(), mitk::SurfaceVtkMapper3D::GenerateDataForRenderer(), QmitkODFRenderWidget::GenerateODF(), mitk::TextOverlay2D::GetBoundsOnDisplay(), mitk::GPUVolumeMapper3D::InitCPU(), mitk::SurfaceDeformationDataInteractor3D::InitDeformation(), mitk::GPUVolumeMapper3D::InitGPU(), mitk::ClippingPlaneInteractor3D::InitRotate(), mitk::ClippingPlaneInteractor3D::InitTranslate(), mitk::FiberBundleMapper3D::InternalGenerateData(), main(), mitk::VtkMapper::MitkRenderOpaqueGeometry(), mitk::VtkMapper::MitkRenderOverlay(), mitk::VtkMapper::MitkRenderTranslucentGeometry(), mitk::VtkMapper::MitkRenderVolumetricGeometry(), mitk::VtkOverlay::Paint(), vtkUnstructuredGridMapper::ReleaseGraphicsResources(), vtkMitkOpenGLVolumeTextureMapper3D::ReleaseGraphicsResources(), mitk::VtkOverlay::RemoveFromBaseRenderer(), mitk::ClippingPlaneInteractor3D::RotateObject(), mitk::AffineImageCropperInteractor::RotateObject(), mitk::AffineBaseDataInteractor3D::RotateObject(), mitk::InteractionTestHelper::Set3dCameraSettings(), QmlMitkRenderWindowItem::setDecorationProperties(), QmitkStdMultiWidget::SetDecorationProperties(), QmitkStdMultiWidget::SetGradientBackgroundColorForRenderWindow(), QmitkStdMultiWidget::SetGradientBackgroundColors(), mitk::CameraController::SetStandardView(), Step6::SetupWidgets(), mitk::ClippingPlaneInteractor3D::TranslateObject(), mitk::TextOverlay3D::UpdateVtkOverlay(), and mitk::LogoOverlay::UpdateVtkOverlay().
|
virtual |
Referenced by QmitkSliceBasedInterpolatorWidget::UpdateVisibleSuggestion().
|
virtual |
|
virtual |
Initialize the RenderWindow. Should only be called from RenderWindow.
Definition at line 278 of file mitkBaseRenderer.cpp.
|
virtual |
Initialize the renderer with a RenderWindow (renderwindow).
Reimplemented in mitk::VtkPropRenderer.
Definition at line 287 of file mitkBaseRenderer.cpp.
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 309 of file mitkBaseRenderer.cpp.
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 778 of file mitkBaseRenderer.cpp.
|
virtual |
Do the rendering and flush the result.
Definition at line 274 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 322 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.
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 722 of file mitkBaseRenderer.cpp.
|
overrideprotectedvirtual |
Definition at line 786 of file mitkBaseRenderer.cpp.
void mitk::BaseRenderer::RegisterLocalStorageHandler | ( | mitk::BaseLocalStorageHandler * | lsh | ) |
Definition at line 247 of file mitkBaseRenderer.cpp.
Referenced by mitk::LocalStorageHandler< mitk::MITKRegistrationWrapperMapperBase::RegWrapperLocalStorage >::GetLocalStorage().
void mitk::BaseRenderer::RemoveAllLocalStorages | ( | ) |
Definition at line 237 of file mitkBaseRenderer.cpp.
|
static |
Definition at line 70 of file mitkBaseRenderer.cpp.
Referenced by AddInstance(), mitk::RenderWindowBase::Destroy(), and mitk::InteractionTestHelper::~InteractionTestHelper().
void mitk::BaseRenderer::RequestUpdate | ( | ) |
Definition at line 599 of file mitkBaseRenderer.cpp.
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 282 of file mitkBaseRenderer.cpp.
Referenced by mitk::VtkPropRenderer::Resize().
void mitk::BaseRenderer::SendUpdateSlice | ( | ) |
Sets timestamp of CurrentWorldPlaneGeometry and forces so reslicing in that renderwindow.
Definition at line 491 of file mitkBaseRenderer.cpp.
|
virtual |
Definition at line 769 of file mitkBaseRenderer.cpp.
Referenced by mitk::RenderingManager::InitializeViews().
|
protectedvirtual |
Sets m_CurrentWorldGeometry.
Definition at line 506 of file mitkBaseRenderer.cpp.
References mitk::eps.
|
inlineprotected |
Definition at line 462 of file mitkBaseRenderer.h.
|
protectedvirtual |
Sets m_CurrentWorldPlaneGeometry.
Definition at line 480 of file mitkBaseRenderer.cpp.
References mitk::BaseGeometry::Modified().
|
virtual |
set the datastorage that will be used for rendering
Reimplemented in mitk::VtkPropRenderer.
Definition at line 262 of file mitkBaseRenderer.cpp.
References m_DataStorage.
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 542 of file mitkBaseRenderer.cpp.
References mitk::SliceNavigationController::TimeGeometryEvent::GetTimeGeometry().
|
virtual |
SetSlice is called according to the geometrySliceEvent, which is supposed to be a SliceNavigationController::GeometrySliceEvent.
Definition at line 571 of file mitkBaseRenderer.cpp.
References mitk::SliceNavigationController::TimeGeometryEvent::GetPos().
|
virtual |
SetTimeStep is called according to the geometrySliceEvent, which is supposed to be a SliceNavigationController::GeometryTimeEvent.
Definition at line 580 of file mitkBaseRenderer.cpp.
References mitk::SliceNavigationController::TimeGeometryEvent::GetPos().
|
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.
void mitk::BaseRenderer::SetOverlayManager | ( | itk::SmartPointer< OverlayManager > | overlayManager | ) |
Sets an OverlayManager which is used to add various Overlays to this renderer. If an OverlayManager was already set it will be overwritten.
Definition at line 339 of file mitkBaseRenderer.cpp.
Referenced by main().
|
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 314 of file mitkBaseRenderer.cpp.
References mitk::SlicedGeometry3D::GetPlaneGeometry(), and mitk::SlicedGeometry3D::GetSlices().
void mitk::BaseRenderer::SetSliceNavigationController | ( | mitk::SliceNavigationController * | SlicenavigationController | ) |
Sets the new Navigation controller
Definition at line 623 of file mitkBaseRenderer.cpp.
References mitk::SliceNavigationController::GetCreatedWorldGeometry(), mitk::SliceNavigationController::SetInputWorldTimeGeometry(), mitk::SliceNavigationController::SetRenderer(), 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 369 of file mitkBaseRenderer.cpp.
References mitk::SlicedGeometry3D::GetPlaneGeometry().
|
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 440 of file mitkBaseRenderer.cpp.
References mitk::BaseGeometry::GetBoundingBox(), mitk::SlicedGeometry3D::GetPlaneGeometry(), mitk::SlicedGeometry3D::GetSlices(), and mitk::PlaneGeometry::New().
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 216 of file mitkBaseRenderer.h.
|
virtual |
Definition at line 418 of file mitkBaseRenderer.cpp.
References mitk::TimeGeometry::GetBoundingBoxInWorld().
void mitk::BaseRenderer::UnregisterLocalStorageHandler | ( | mitk::BaseLocalStorageHandler * | lsh | ) |
Definition at line 257 of file mitkBaseRenderer.cpp.
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 551 of file mitkBaseRenderer.cpp.
References mitk::SlicedGeometry3D::GetPlaneGeometry().
|
protected |
This method is called during the rendering process to update or render the Overlays which are stored in the OverlayManager.
Definition at line 534 of file mitkBaseRenderer.cpp.
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 703 of file mitkBaseRenderer.cpp.
Referenced by mitk::PointSetVtkMapper2D::CreateVTKRenderObjects(), QmitkStdMultiWidget::EnsureDisplayContainsPoint(), mitk::ContourModelGLMapper2DBase::InternalDrawContour(), mitk::ContourModelSetGLMapper2D::InternalDrawContour(), mitk::PlanarFigureInteractor::IsMousePositionAcceptableAsNewControlPoint(), mitk::ContourMapper2D::Paint(), mitk::ContourSetMapper2D::Paint(), mitk::MeshMapper2D::Paint(), mitk::UnstructuredGridMapper2D::Paint(), mitk::VectorImageMapper2D::PaintCells(), mitk::PlanarFigureInteractor::TransformObjectToDisplay(), and mitk::PlanarFigureMapper2D::TransformObjectToDisplay().
|
static |
Definition at line 89 of file mitkBaseRenderer.h.
Referenced by mitk::EventFactory::CreateEvent(), GetInstance(), and WriteEventXMLConfig().
|
static |
Default mapper id to use.
Definition at line 135 of file mitkBaseRenderer.h.
|
protected |
Definition at line 541 of file mitkBaseRenderer.h.
Referenced by BaseRenderer().
|
protected |
CameraController for 3D rendering.
Definition at line 452 of file mitkBaseRenderer.h.
Referenced by BaseRenderer().
|
protected |
Definition at line 454 of file mitkBaseRenderer.h.
Referenced by BaseRenderer().
|
protected |
Definition at line 556 of file mitkBaseRenderer.h.
|
protected |
Data object containing the m_CurrentWorldPlaneGeometry defined above.
Definition at line 529 of file mitkBaseRenderer.h.
Referenced by BaseRenderer().
|
protected |
DataNode objects containing the m_CurrentWorldPlaneGeometryData defined above.
Definition at line 533 of file mitkBaseRenderer.h.
Referenced by BaseRenderer(), and mitk::VtkPropRenderer::VtkPropRenderer().
|
protected |
|
protected |
The DataStorage that is used for rendering.
Definition at line 439 of file mitkBaseRenderer.h.
|
protected |
Definition at line 543 of file mitkBaseRenderer.h.
|
protected |
Timestamp of last call of Update().
Definition at line 447 of file mitkBaseRenderer.h.
|
protected |
MapperSlotId to use. Defines which kind of mapper (e.g., 2D or 3D) shoud be used.
Definition at line 435 of file mitkBaseRenderer.h.
|
protected |
Definition at line 539 of file mitkBaseRenderer.h.
Referenced by BaseRenderer().
|
protected |
Number of mappers which are visible and have level-of-detail rendering enabled
Definition at line 549 of file mitkBaseRenderer.h.
|
protected |
Definition at line 554 of file mitkBaseRenderer.h.
|
protected |
The RenderingManager that manages this instance.
Definition at line 443 of file mitkBaseRenderer.h.
|
protected |
Definition at line 430 of file mitkBaseRenderer.h.
Referenced by BaseRenderer().
|
protected |
Definition at line 453 of file mitkBaseRenderer.h.
Referenced by BaseRenderer().
|
protected |
Definition at line 431 of file mitkBaseRenderer.h.
Referenced by BaseRenderer(), and mitk::VtkPropRenderer::VtkPropRenderer().