Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkPlanePositionManager.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 mitkPlanePositionManager_h
14 #define mitkPlanePositionManager_h
15 
16 #include "mitkCommon.h"
17 #include "mitkDataStorage.h"
19 
20 #include <mitkPlaneGeometry.h>
21 #include <mitkServiceInterface.h>
22 
23 class MitkCoreActivator;
24 
25 namespace mitk
26 {
39  {
40  public:
43 
54  unsigned int AddNewPlanePosition(const mitk::PlaneGeometry *plane, unsigned int sliceIndex = 0);
55 
62  bool RemovePlanePosition(unsigned int ID);
63 
65  void RemoveAllPlanePositions();
66 
75  mitk::RestorePlanePositionOperation *GetPlanePosition(unsigned int ID);
76 
78  unsigned int GetNumberOfPlanePositions();
79 
80  private:
81  // Disable copy constructor and assignment operator.
84 
85  std::vector<mitk::RestorePlanePositionOperation *> m_PositionList;
86  };
87 }
88 MITK_DECLARE_SERVICE_INTERFACE(mitk::PlanePositionManagerService, "org.mitk.PlanePositionManagerService")
89 
90 #endif
mitk::RestorePlanePositionOperation
Definition: mitkRestorePlanePositionOperation.h:22
mitkServiceInterface.h
mitk::PlaneGeometry
Describes a two-dimensional, rectangular plane.
Definition: mitkPlaneGeometry.h:78
mitkDataStorage.h
mitkRestorePlanePositionOperation.h
mitk::PlanePositionManagerService
Definition: mitkPlanePositionManager.h:38
MitkCoreActivator
Definition: mitkCoreActivator.h:44
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkCommon.h
MITK_DECLARE_SERVICE_INTERFACE
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Definition: mitkServiceInterface.h:26
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15
mitkPlaneGeometry.h