ITK  4.13.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  typedef TMesh MeshType;
44  typedef typename TMesh::Pointer MeshPointer;
45 
49  typedef LevelSetBase< typename MeshType::PointIdentifier,
50  MeshType::PointDimension,
51  typename MeshType::PixelType,
53 
55  itkNewMacro ( Self );
56 
59 
60  typedef typename Superclass::InputType InputType;
61  typedef typename Superclass::OutputType OutputType;
62  typedef typename Superclass::OutputRealType OutputRealType;
63  typedef typename Superclass::GradientType GradientType;
64  typedef typename Superclass::HessianType HessianType;
65  typedef typename Superclass::LevelSetDataType LevelSetDataType;
66 
67  itkSetObjectMacro( Mesh, MeshType );
68  itkGetModifiableObjectMacro(Mesh, MeshType );
69 
71  virtual OutputType Evaluate( const InputType& iP ) const;
72 
75  virtual GradientType EvaluateGradient( const InputType& iP ) const;
76 
79  virtual HessianType EvaluateHessian( const InputType& iP ) const;
80 
81 
84  virtual void Evaluate( const InputType& iP, LevelSetDataType& ioData ) const;
85 
89  virtual void EvaluateGradient( const InputType& iP, LevelSetDataType& ioData ) const;
90 
94  virtual void EvaluateHessian( const InputType& iP, LevelSetDataType& ioData ) const;
95 
97  virtual void Initialize();
98 
100  virtual void CopyInformation(const DataObject *data);
101 
103  virtual void Graft( const DataObject* data );
104 
105 protected:
107  virtual ~LevelSetQuadEdgeMesh();
108 
109 private:
110  ITK_DISALLOW_COPY_AND_ASSIGN(LevelSetQuadEdgeMesh);
111 
113 };
114 }
115 
116 #ifndef ITK_MANUAL_INSTANTIATION
117 #include "itkLevelSetQuadEdgeMesh.hxx"
118 #endif
119 #endif // itkLevelSetQuadEdgeMesh_h
Superclass::GradientType GradientType
Superclass::OutputRealType OutputRealType
Abstract base class for the representation of a level-set function.
Superclass::LevelSetDataType LevelSetDataType
Implements the N-dimensional mesh structure.
Definition: itkMesh.h:108
LevelSetBase< typename MeshType::PointIdentifier, MeshType::PointDimension, typename MeshType::PixelType, MeshType > Superclass
SmartPointer< const Self > ConstPointer
Superclass::OutputType OutputType
Superclass::InputType InputType
Superclass::HessianType HessianType
Base class for the surface mesh representation of a level-set function.
Base class for all data objects in ITK.