ITK  6.0.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
25namespace itk
26{
34template <typename TMesh>
35class ITK_TEMPLATE_EXPORT LevelSetQuadEdgeMesh
36 : public LevelSetBase<typename TMesh::PointIdentifier, TMesh::PointDimension, typename TMesh::PixelType, TMesh>
37{
38public:
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
101
103 virtual void
105
107 virtual void
108 Graft(const DataObject * data);
109
110protected:
112 virtual ~LevelSetQuadEdgeMesh() = default;
113
114private:
115 MeshPointer m_Mesh{};
116};
117} // namespace itk
118
119#ifndef ITK_MANUAL_INSTANTIATION
120# include "itkLevelSetQuadEdgeMesh.hxx"
121#endif
122#endif // itkLevelSetQuadEdgeMesh_h
A templated class holding a n-Dimensional covariant vector.
Base class for all data objects in ITK.
Abstract base class for the representation of a level-set function.
Base class for the surface mesh representation of a level-set function.
virtual void Evaluate(const InputType &iP, LevelSetDataType &ioData) const
virtual OutputType Evaluate(const InputType &iP) const
virtual GradientType EvaluateGradient(const InputType &iP) const
virtual void CopyInformation(const DataObject *data)
virtual void EvaluateGradient(const InputType &iP, LevelSetDataType &ioData) const
virtual void Initialize()
virtual void EvaluateHessian(const InputType &iP, LevelSetDataType &ioData) const
virtual HessianType EvaluateHessian(const InputType &iP) const
virtual void Graft(const DataObject *data)
virtual ~LevelSetQuadEdgeMesh()=default
typename TMesh::Pointer MeshPointer
A templated class holding a M x N size Matrix.
Definition: itkMatrix.h:53
Implements the N-dimensional mesh structure.
Definition: itkMesh.h:127
Base class for most ITK classes.
Definition: itkObject.h:62
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....