Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkRenderWindowViewDirectionController.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkRenderWindowViewDirectionController_h
14 #define mitkRenderWindowViewDirectionController_h
15 
16 // qt widgets module
17 #include "MitkQtWidgetsExports.h"
19 
20 // mitk core
21 #include <mitkBaseRenderer.h>
22 #include <mitkDataStorage.h>
23 
24 namespace mitk
25 {
37  {
38  public:
39 
44  void SetDataStorage(DataStorage::Pointer dataStorage);
49 
50  // wrapper functions to change the view direction
58  void SetViewDirectionOfRenderer(const std::string& viewDirection, BaseRenderer* renderer = nullptr);
65  void SetViewDirectionOfRenderer(AnatomicalPlane viewDirection, BaseRenderer* renderer = nullptr);
72 
73  private:
74 
75  DataStorage::Pointer m_DataStorage;
76  RenderWindowLayerUtilities::RendererVector m_ControlledRenderer;
77  };
78 
79 } // namespace mitk
80 
81 #endif
#define MITKQTWIDGETS_EXPORT
void InitializeViewByBoundingObjects(const BaseRenderer *renderer)
Reinitialize the given renderer with the currently visible nodes.
void SetViewDirectionOfRenderer(AnatomicalPlane viewDirection, BaseRenderer *renderer=nullptr)
Set the ciew direction for the given renderer (nullptr = all renderer)
void SetControlledRenderer(RenderWindowLayerUtilities::RendererVector controlledRenderer)
Set the controlled base renderer.
void SetViewDirectionOfRenderer(const std::string &viewDirection, BaseRenderer *renderer=nullptr)
Set the ciew direction for the given renderer (nullptr = all renderer)
void SetDataStorage(DataStorage::Pointer dataStorage)
Set the data storage on which to work.
std::vector< BaseRenderer * > RendererVector
Find image slices visible on a given plane.