28 if (m_DataStorage != dataStorage)
31 m_DataStorage = dataStorage;
37 if (m_ControlledRenderer != controlledRenderer)
40 m_ControlledRenderer = controlledRenderer;
46 if (
nullptr == renderer)
49 for (
auto& renderer : m_ControlledRenderer)
51 if (
nullptr != renderer)
60 if (
"axial" == viewDirection)
62 sliceNavigationController->SetDefaultViewDirection(ViewDirection::Axial);
64 else if (
"coronal" == viewDirection)
66 sliceNavigationController->SetDefaultViewDirection(ViewDirection::Frontal);
68 else if (
"sagittal" == viewDirection)
70 sliceNavigationController->SetDefaultViewDirection(ViewDirection::Sagittal);
73 if (
"3D" == viewDirection)
89 if (
nullptr == renderer)
92 for (
auto& renderer : m_ControlledRenderer)
94 if (
nullptr != renderer)
103 sliceNavigationController->SetDefaultViewDirection(viewDirection);
112 if (
nullptr == m_DataStorage ||
nullptr == renderer)
130 mitk::DataStorage::SetOfObjects::ConstPointer filteredDataNodes = m_DataStorage->GetSubset(combinedNodePredicate);
133 auto bounds = m_DataStorage->ComputeBoundingGeometry3D(filteredDataNodes,
"visible", renderer);
void SetDataStorage(DataStorage::Pointer dataStorage)
Set the data storage on which to work.
Organizes the rendering process.
Controls the selection of the slice the associated BaseRenderer will display.
std::vector< BaseRenderer * > RendererVector
mitk::DataStorage::Pointer m_DataStorage
static RenderingManager * GetInstance()
ViewDirection
Possible view directions, Original will uses the PlaneGeometry instances in a SlicedGeometry3D provid...
static Pointer New(const mitk::NodePredicateBase *_arg)
virtual void SetMapperID(MapperSlotId _arg)
Set the MapperSlotId to use.
void SetViewDirectionOfRenderer(const std::string &viewDirection, BaseRenderer *renderer=nullptr)
Set the view direction for the given renderer (nullptr = all renderer)
void InitializeViewByBoundingObjects(const BaseRenderer *renderer)
Reinitialize the given renderer with the currently visible nodes.
static Pointer New(const char *_arg)
vtkRenderWindow * GetRenderWindow() const
Access the RenderWindow into which this renderer renders.
void SetControlledRenderer(RenderWindowLayerUtilities::RendererVector controlledRenderer)
Set the controlled base renderer.
RenderWindowViewDirectionController()
virtual SliceNavigationController * GetSliceNavigationController()
virtual bool InitializeView(vtkRenderWindow *renderWindow, const BaseGeometry *geometry, bool initializeGlobalTimeSNC=false)