Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkSurface.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 mitkSurface_h
14 #define mitkSurface_h
15 
16 #include "itkImageRegion.h"
17 #include "mitkBaseData.h"
18 #include <vtkSmartPointer.h>
19 
20 class vtkPolyData;
21 
22 namespace mitk
23 {
29  {
30  public:
31  typedef itk::ImageRegion<5> RegionType;
32 
34  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
35 
36  void CalculateBoundingBox();
37  void CopyInformation(const itk::DataObject *data) override;
38  void ExecuteOperation(Operation *operation) override;
39  void Expand(unsigned int timeSteps = 1) override;
40  const RegionType &GetLargestPossibleRegion() const;
41  virtual const RegionType &GetRequestedRegion() const;
42  unsigned int GetSizeOfPolyDataSeries() const;
43  virtual vtkPolyData *GetVtkPolyData(unsigned int t = 0) const;
44  void Graft(const DataObject *data) override;
45  bool IsEmptyTimeStep(unsigned int t) const override;
46  void PrintSelf(std::ostream &os, itk::Indent indent) const override;
47  bool RequestedRegionIsOutsideOfTheBufferedRegion() override;
48  void SetRequestedRegion(const itk::DataObject *data) override;
49  virtual void SetRequestedRegion(Surface::RegionType *region);
50  void SetRequestedRegionToLargestPossibleRegion() override;
51  virtual void SetVtkPolyData(vtkPolyData *polydata, unsigned int t = 0);
52  virtual void Swap(Surface &other);
53  void Update() override;
54  void UpdateOutputInformation() override;
55  bool VerifyRequestedRegion() override;
56 
57  protected:
59 
60  Surface();
61  ~Surface() override;
62 
63  Surface(const Surface &other);
64  Surface &operator=(Surface other);
65 
66  void ClearData() override;
67  void InitializeEmpty() override;
68 
69  private:
70  std::vector<vtkSmartPointer<vtkPolyData>> m_PolyDatas;
71  mutable RegionType m_LargestPossibleRegion;
72  mutable RegionType m_RequestedRegion;
73  bool m_CalculateBoundingBox;
74  };
75 
88  mitk::Surface *leftHandSide, mitk::Surface *rightHandSide, mitk::ScalarType eps, bool verbose));
89 
99  MITKCORE_EXPORT bool Equal(mitk::Surface &leftHandSide,
100  mitk::Surface &rightHandSide,
102  bool verbose);
103 
120  vtkPolyData *leftHandSide, vtkPolyData *rightHandSide, mitk::ScalarType eps, bool verbose));
121 
135  MITKCORE_EXPORT bool Equal(vtkPolyData &leftHandSide, vtkPolyData &rightHandSide, mitk::ScalarType eps, bool verbose);
136 }
137 
138 #endif
Class for storing surfaces (vtkPolyData).
Definition: mitkSurface.h:28
#define MITKCORE_EXPORT
Base of all data objects.
Definition: mitkBaseData.h:37
Base class of all Operation-classes.
Definition: mitkOperation.h:29
double ScalarType
static void Update(vtkPolyData *)
Definition: mitkSurface.cpp:31
DataCollection - Class to facilitate loading/accessing structured data.
#define DEPRECATED(func)
Definition: mitkCommon.h:179
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
bool verbose(false)
#define mitkCloneMacro(classname)
Definition: mitkCommon.h:158
MITKNEWMODULE_EXPORT bool Equal(mitk::ExampleDataStructure *leftHandSide, mitk::ExampleDataStructure *rightHandSide, mitk::ScalarType eps, bool verbose)
Returns true if the example data structures are considered equal.
MITKCORE_EXPORT const ScalarType eps
itk::ImageRegion< 5 > RegionType
Definition: mitkSurface.h:31