Medical Imaging Interaction Toolkit  2024.06.00
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);
48  void SetControlledRenderer(RenderWindowLayerUtilities::RendererVector controlledRenderer);
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);
71  void InitializeViewByBoundingObjects(const BaseRenderer* renderer);
72 
73  private:
74 
75  DataStorage::Pointer m_DataStorage;
76  RenderWindowLayerUtilities::RendererVector m_ControlledRenderer;
77  };
78 
79 } // namespace mitk
80 
81 #endif
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
mitkDataStorage.h
itk::SmartPointer< Self >
mitk::RenderWindowLayerUtilities::RendererVector
std::vector< BaseRenderer * > RendererVector
Definition: mitkRenderWindowLayerUtilities.h:32
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::AnatomicalPlane
AnatomicalPlane
Definition: mitkAnatomicalPlanes.h:18
MitkQtWidgetsExports.h
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitk::RenderWindowViewDirectionController
Definition: mitkRenderWindowViewDirectionController.h:36
mitkBaseRenderer.h
mitkRenderWindowLayerUtilities.h