Medical Imaging Interaction Toolkit  2021.10.99-fd647480
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_Included
14 #define mitkPlanePositionManager_h_Included
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
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
#define MITKCORE_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Describes a two-dimensional, rectangular plane.