ITK  4.3.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< class TMesh >
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;
65  typedef typename Superclass::LevelSetDataType LevelSetDataType;
66 
67  itkSetObjectMacro( Mesh, MeshType );
68  itkGetObjectMacro( 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  LevelSetQuadEdgeMesh( const Self& ); // purposely not implemented
111  void operator = ( const Self& ); // purposely not implemented
112 
114 };
115 }
116 
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkLevelSetQuadEdgeMesh.hxx"
119 #endif
120 #endif // __itkLevelSetQuadEdgeMesh_h
121