NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkPointSetUpdate.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkPointSetUpdate_h
16 #define niftkPointSetUpdate_h
17 
18 #include "niftkCoreExports.h"
19 #include <mitkOperation.h>
20 #include <mitkPointSet.h>
21 #include <mitkVector.h>
22 
23 namespace niftk
24 {
25 
27 class NIFTKCORE_EXPORT PointSetUpdate : public mitk::Operation
28 {
29 public:
30 
32  mitk::OperationType type,
33  mitk::PointSet::Pointer pointSet
34  );
35  virtual ~PointSetUpdate();
36 
37  const mitk::PointSet* GetPointSet() const { return m_PointSet.GetPointer(); }
38  void Clear() { m_PointSet->Clear(); }
39  void AppendPoint(const mitk::Point3D& point);
40 
41 private:
42  mitk::PointSet::Pointer m_PointSet;
43 };
44 
45 }
46 
47 #endif
GLuint GLuint GLsizei GLenum type
Definition: glew.h:1237
const mitk::PointSet * GetPointSet() const
Definition: niftkPointSetUpdate.h:37
Operation class to enable updating an mitk::PointSet with Undo/Redo.
Definition: niftkPointSetUpdate.h:27
void Clear()
Definition: niftkPointSetUpdate.h:38
Definition: niftkExceptionObject.h:21