Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <mitkRenderWindowViewDirectionController.h>
Public Member Functions | |
RenderWindowViewDirectionController () | |
void | SetDataStorage (DataStorage::Pointer dataStorage) |
Set the data storage on which to work. More... | |
void | SetControlledRenderer (RenderWindowLayerUtilities::RendererVector controlledRenderer) |
Set the controlled base renderer. More... | |
void | SetViewDirectionOfRenderer (const std::string &viewDirection, BaseRenderer *renderer=nullptr) |
Set the ciew direction for the given renderer (nullptr = all renderer) More... | |
void | SetViewDirectionOfRenderer (AnatomicalPlane viewDirection, BaseRenderer *renderer=nullptr) |
Set the ciew direction for the given renderer (nullptr = all renderer) More... | |
void | InitializeViewByBoundingObjects (const BaseRenderer *renderer) |
Reinitialize the given renderer with the currently visible nodes. More... | |
The RenderWindowViewDirectionController is used to manipulate the 'sliceNavigationController' of a given base renderer. The 'sliceNavigationController' is used to set the view direction / camera perspective of a base renderer. The view direction can be changed to 'mitk::AnatomicalPlane::Axial', 'mitk::AnatomicalPlane::Coronal' or 'mitk::AnatomicalPlane::Sagittal'.
Functions with 'mitk::BaseRenderer* renderer' have 'nullptr' as their default argument. Using the nullptr these functions operate on all base renderer. Giving a specific base renderer will change the view direction only for the given renderer.
Definition at line 36 of file mitkRenderWindowViewDirectionController.h.
mitk::RenderWindowViewDirectionController::RenderWindowViewDirectionController | ( | ) |
void mitk::RenderWindowViewDirectionController::InitializeViewByBoundingObjects | ( | const BaseRenderer * | renderer | ) |
Reinitialize the given renderer with the currently visible nodes.
renderer | Pointer to the renderer instance which should be reinitialized. If it is a nullptr (default) all controlled renderer will be affected. |
void mitk::RenderWindowViewDirectionController::SetControlledRenderer | ( | RenderWindowLayerUtilities::RendererVector | controlledRenderer | ) |
Set the controlled base renderer.
void mitk::RenderWindowViewDirectionController::SetDataStorage | ( | DataStorage::Pointer | dataStorage | ) |
Set the data storage on which to work.
void mitk::RenderWindowViewDirectionController::SetViewDirectionOfRenderer | ( | AnatomicalPlane | viewDirection, |
BaseRenderer * | renderer = nullptr |
||
) |
Set the ciew direction for the given renderer (nullptr = all renderer)
viewDirection | The view direction that should be used for this renderer. |
renderer | Pointer to the renderer instance for which the view direction should be changed. If it is a nullptr (default) nothing happens. |
void mitk::RenderWindowViewDirectionController::SetViewDirectionOfRenderer | ( | const std::string & | viewDirection, |
BaseRenderer * | renderer = nullptr |
||
) |
Set the ciew direction for the given renderer (nullptr = all renderer)
viewDirection | The view direction that should be used for this renderer as a string. Currently "axial", "coronal" and "sagittal" is supported. |
renderer | Pointer to the renderer instance for which the view direction should be changed. If it is a nullptr (default) all controlled renderer will be affected. |