ITK  5.2.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  * http://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_ASSIGN(LevelSetQuadEdgeMesh);
40 
41  using MeshType = TMesh;
42  using MeshPointer = typename TMesh::Pointer;
43 
47  using Superclass =
49 
51  itkNewMacro(Self);
52 
54  itkTypeMacro(LevelSetQuadEdgeMesh, LevelSetBase);
55 
56  using InputType = typename Superclass::InputType;
57  using OutputType = typename Superclass::OutputType;
58  using OutputRealType = typename Superclass::OutputRealType;
59  using GradientType = typename Superclass::GradientType;
60  using HessianType = typename Superclass::HessianType;
61  using LevelSetDataType = 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:
116 };
117 } // namespace itk
118 
119 #ifndef ITK_MANUAL_INSTANTIATION
120 # include "itkLevelSetQuadEdgeMesh.hxx"
121 #endif
122 #endif // itkLevelSetQuadEdgeMesh_h
itkLevelSetBase.h
itk::LevelSetQuadEdgeMesh::InputType
typename Superclass::InputType InputType
Definition: itkLevelSetQuadEdgeMesh.h:56
itkObjectFactory.h
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::OutputType
typename Superclass::OutputType OutputType
Definition: itkLevelSetQuadEdgeMesh.h:57
itk::LevelSetQuadEdgeMesh::LevelSetDataType
typename Superclass::LevelSetDataType LevelSetDataType
Definition: itkLevelSetQuadEdgeMesh.h:61
itk::LevelSetQuadEdgeMesh
Base class for the surface mesh representation of a level-set function.
Definition: itkLevelSetQuadEdgeMesh.h:35
itk::LevelSetQuadEdgeMesh::GradientType
typename Superclass::GradientType GradientType
Definition: itkLevelSetQuadEdgeMesh.h:59
itk::LevelSetQuadEdgeMesh::MeshPointer
typename TMesh::Pointer MeshPointer
Definition: itkLevelSetQuadEdgeMesh.h:42
itk::LevelSetQuadEdgeMesh::OutputRealType
typename Superclass::OutputRealType OutputRealType
Definition: itkLevelSetQuadEdgeMesh.h:58
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:114
itk::LevelSetQuadEdgeMesh::m_Mesh
MeshPointer m_Mesh
Definition: itkLevelSetQuadEdgeMesh.h:115
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:60
itk::LevelSetQuadEdgeMesh::HessianType
typename Superclass::HessianType HessianType
Definition: itkLevelSetQuadEdgeMesh.h:60
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293