ITK  5.4.0
Insight Toolkit
itkLevelSetQuadEdgeMesh.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * https://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 
19 #ifndef itkLevelSetQuadEdgeMesh_h
20 #define itkLevelSetQuadEdgeMesh_h
21 
22 #include "itkLevelSetBase.h"
23 #include "itkObjectFactory.h"
24 
25 namespace itk
26 {
34 template <typename TMesh>
35 class ITK_TEMPLATE_EXPORT LevelSetQuadEdgeMesh
36  : public LevelSetBase<typename TMesh::PointIdentifier, TMesh::PointDimension, typename TMesh::PixelType, TMesh>
37 {
38 public:
39  ITK_DISALLOW_COPY_AND_MOVE(LevelSetQuadEdgeMesh);
40 
41  using MeshType = TMesh;
42  using MeshPointer = typename TMesh::Pointer;
43 
47  using Superclass =
49 
51  itkNewMacro(Self);
52 
54  itkOverrideGetNameOfClassMacro(LevelSetQuadEdgeMesh);
55 
56  using typename Superclass::InputType;
57  using typename Superclass::OutputType;
58  using typename Superclass::OutputRealType;
59  using typename Superclass::GradientType;
60  using typename Superclass::HessianType;
61  using typename Superclass::LevelSetDataType;
62 
63  itkSetObjectMacro(Mesh, MeshType);
64  itkGetModifiableObjectMacro(Mesh, MeshType);
65 
67  virtual OutputType
68  Evaluate(const InputType & iP) const;
69 
72  virtual GradientType
73  EvaluateGradient(const InputType & iP) const;
74 
77  virtual HessianType
78  EvaluateHessian(const InputType & iP) const;
79 
80 
83  virtual void
84  Evaluate(const InputType & iP, LevelSetDataType & ioData) const;
85 
89  virtual void
90  EvaluateGradient(const InputType & iP, LevelSetDataType & ioData) const;
91 
95  virtual void
96  EvaluateHessian(const InputType & iP, LevelSetDataType & ioData) const;
97 
99  virtual void
100  Initialize();
101 
103  virtual void
104  CopyInformation(const DataObject * data);
105 
107  virtual void
108  Graft(const DataObject * data);
109 
110 protected:
111  LevelSetQuadEdgeMesh() = default;
112  virtual ~LevelSetQuadEdgeMesh() = default;
113 
114 private:
115  MeshPointer m_Mesh{};
116 };
117 } // namespace itk
118 
119 #ifndef ITK_MANUAL_INSTANTIATION
120 # include "itkLevelSetQuadEdgeMesh.hxx"
121 #endif
122 #endif // itkLevelSetQuadEdgeMesh_h
itkLevelSetBase.h
Pointer
SmartPointer< Self > Pointer
Definition: itkAddImageFilter.h:93
itkObjectFactory.h
itk::LevelSetBase< TMesh::PointIdentifier, TMesh::PointDimension, TMesh::PixelType, TMesh >::InputType
TMesh::PointIdentifier InputType
Definition: itkLevelSetBase.h:58
itk::LevelSetBase
Abstract base class for the representation of a level-set function.
Definition: itkLevelSetBase.h:43
itk::LevelSetQuadEdgeMesh::MeshType
TMesh MeshType
Definition: itkLevelSetQuadEdgeMesh.h:41
itk::SmartPointer< Self >
itk::LevelSetQuadEdgeMesh
Base class for the surface mesh representation of a level-set function.
Definition: itkLevelSetQuadEdgeMesh.h:35
itk::Matrix
A templated class holding a M x N size Matrix.
Definition: itkMatrix.h:52
itk::CovariantVector
A templated class holding a n-Dimensional covariant vector.
Definition: itkCovariantVector.h:70
itk::LevelSetQuadEdgeMesh::MeshPointer
typename TMesh::Pointer MeshPointer
Definition: itkLevelSetQuadEdgeMesh.h:42
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Mesh
Implements the N-dimensional mesh structure.
Definition: itkMesh.h:126
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:61
itk::LevelSetBase< TMesh::PointIdentifier, TMesh::PointDimension, TMesh::PixelType, TMesh >::OutputType
TMesh::PixelType OutputType
Definition: itkLevelSetBase.h:59
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293