ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkLaplacianDeformationQuadEdgeMeshFilterWithHardConstraints.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 #ifndef itkLaplacianDeformationQuadEdgeMeshFilterWithHardConstraints_h
19 #define itkLaplacianDeformationQuadEdgeMeshFilterWithHardConstraints_h
20 
22 
23 namespace itk
24 {
40 template< class TInputMesh, class TOutputMesh, class TSolverTraits >
42  public LaplacianDeformationQuadEdgeMeshFilter< TInputMesh, TOutputMesh, TSolverTraits >
43 {
44 public:
45 
48  typedef LaplacianDeformationQuadEdgeMeshFilter< TInputMesh,
49  TOutputMesh, TSolverTraits > Superclass;
52 
54  typedef TInputMesh InputMeshType;
55 
56  itkStaticConstMacro(InputPointDimension, unsigned int, InputMeshType::PointDimension);
57 
59  typedef TOutputMesh OutputMeshType;
63 
64  itkStaticConstMacro(OutputPointDimension, unsigned int, OutputMeshType::PointDimension);
65 
66  typedef TSolverTraits SolverTraits;
67  typedef typename Superclass::ValueType ValueType;
70 
71  itkNewMacro(Self);
74 
75 protected:
76 
79  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
80 
84 
87 
88  typedef typename Superclass::RowType RowType;
91 
92  virtual void ComputeVertexIdMapping() ITK_OVERRIDE;
93 
98  void FillMatrix(MatrixType & iM, VectorType & iBx, VectorType & iBy, VectorType & iBz);
99 
100  virtual void GenerateData() ITK_OVERRIDE;
101 
102 private:
104  void operator=(const Self &) ITK_DELETE_FUNCTION;
105 };
106 } // end namespace itk
107 
108 #include "itkLaplacianDeformationQuadEdgeMeshFilterWithHardConstraints.hxx"
109 
110 #endif
Light weight base class for most itk classes.
LaplacianDeformationQuadEdgeMeshFilter< TInputMesh, TOutputMesh, TSolverTraits > Superclass
OutputMapPointIdentifier::const_iterator OutputMapPointIdentifierConstIterator
Laplacian mesh deformation with hard constraints (interpolating displacement for some handle points) ...
itksys::hash_map< OutputPointIdentifier, OutputPointIdentifier > OutputMapPointIdentifier
itksys::hash_map< OutputPointIdentifier, OutputCoordRepType > RowType
itksys::hash_map< OutputPointIdentifier, OutputVectorType > ConstraintMapType
void FillMatrix(MatrixType &iM, VectorType &iBx, VectorType &iBy, VectorType &iBz)
Fill matrix iM and vectors Bx and m_By depending on if one vertex is on the border or not...
void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
Definition: itkIndent.h:49
(abstract) base class for laplacian surface mesh deformation.