Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitkCrosshairManager.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 mitkCrosshairManager_h
14 #define mitkCrosshairManager_h
15 
16 #include <MitkCoreExports.h>
17 
18 #include <mitkBaseRenderer.h>
19 #include <mitkCrosshairData.h>
20 #include <mitkDataStorage.h>
21 
22 namespace mitk
23 {
34  class MITKCORE_EXPORT CrosshairManager : public itk::Object
35  {
36  public:
37 
40 
50  void SetCrosshairPosition(const Point3D& selectedPoint);
64  void UpdateCrosshairPosition(const SliceNavigationController* sliceNavigationController);
74  Point3D GetCrosshairPosition() const;
86  void SetCrosshairVisibility(bool visible, const BaseRenderer* baseRenderer);
98  bool GetCrosshairVisibility(const BaseRenderer* baseRenderer) const;
108  void SetCrosshairGap(unsigned int gapSize);
121  void AddCrosshairNodeToDataStorage(DataStorage* dataStorage);
134  void RemoveCrosshairNodeFromDataStorage(DataStorage* dataStorage);
135 
136  protected:
137 
138  CrosshairManager(BaseRenderer* baseRenderer);
139  ~CrosshairManager();
140 
143 
144  };
145 }
146 
147 #endif
mitk::CrosshairManager::m_CrosshairData
CrosshairData::Pointer m_CrosshairData
Definition: mitkCrosshairManager.h:142
mitkDataStorage.h
mitkNewMacro1Param
#define mitkNewMacro1Param(classname, type)
Definition: mitkCommon.h:68
itk::SmartPointer< Self >
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk::SliceNavigationController
Controls the selection of the slice the associated BaseRenderer will display.
Definition: mitkSliceNavigationController.h:130
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
MitkCoreExports.h
mitk::Point< ScalarType, 3 >
mitk::DataStorage
Data management class that handles 'was created by' relations.
Definition: mitkDataStorage.h:43
mitk::CrosshairManager
The CrosshairManager takes care of the correct settings for the crosshair.
Definition: mitkCrosshairManager.h:34
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitkCrosshairData.h
mitkBaseRenderer.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15
mitk::CrosshairManager::m_CrosshairDataNode
DataNode::Pointer m_CrosshairDataNode
Definition: mitkCrosshairManager.h:141