ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkLevelSetQuadEdgeMesh.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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<
37  typename TMesh::PointIdentifier,
38  TMesh::PointDimension,
39  typename TMesh::PixelType,
40  TMesh >
41 {
42 public:
43  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetQuadEdgeMesh);
44 
45  using MeshType = TMesh;
46  using MeshPointer = typename TMesh::Pointer;
47 
51  using Superclass = LevelSetBase< typename MeshType::PointIdentifier,
52  MeshType::PointDimension,
53  typename MeshType::PixelType,
55 
57  itkNewMacro ( Self );
58 
60  itkTypeMacro ( LevelSetQuadEdgeMesh, LevelSetBase );
61 
62  using InputType = typename Superclass::InputType;
63  using OutputType = typename Superclass::OutputType;
64  using OutputRealType = typename Superclass::OutputRealType;
65  using GradientType = typename Superclass::GradientType;
66  using HessianType = typename Superclass::HessianType;
67  using LevelSetDataType = typename Superclass::LevelSetDataType;
68 
69  itkSetObjectMacro( Mesh, MeshType );
70  itkGetModifiableObjectMacro(Mesh, MeshType );
71 
73  virtual OutputType Evaluate( const InputType& iP ) const;
74 
77  virtual GradientType EvaluateGradient( const InputType& iP ) const;
78 
81  virtual HessianType EvaluateHessian( const InputType& iP ) const;
82 
83 
86  virtual void Evaluate( const InputType& iP, LevelSetDataType& ioData ) const;
87 
91  virtual void EvaluateGradient( const InputType& iP, LevelSetDataType& ioData ) const;
92 
96  virtual void EvaluateHessian( const InputType& iP, LevelSetDataType& ioData ) const;
97 
99  virtual void Initialize();
100 
102  virtual void CopyInformation(const DataObject *data);
103 
105  virtual void Graft( const DataObject* data );
106 
107 protected:
108  LevelSetQuadEdgeMesh() = default;
109  virtual ~LevelSetQuadEdgeMesh() = default;
110 
111 private:
113 };
114 }
115 
116 #ifndef ITK_MANUAL_INSTANTIATION
117 #include "itkLevelSetQuadEdgeMesh.hxx"
118 #endif
119 #endif // itkLevelSetQuadEdgeMesh_h
typename Superclass::OutputType OutputType
typename Superclass::HessianType HessianType
Abstract base class for the representation of a level-set function.
typename Superclass::LevelSetDataType LevelSetDataType
Implements the N-dimensional mesh structure.
Definition: itkMesh.h:108
typename Superclass::OutputRealType OutputRealType
typename Superclass::GradientType GradientType
Base class for most ITK classes.
Definition: itkObject.h:60
Base class for the surface mesh representation of a level-set function.
typename TMesh::Pointer MeshPointer
Base class for all data objects in ITK.
typename Superclass::InputType InputType