ITK  5.0.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:
46 
50  TOutputMesh, TSolverTraits >;
53 
55  using InputMeshType = TInputMesh;
56 
57  static constexpr unsigned int InputPointDimension = InputMeshType::PointDimension;
58 
60  using OutputMeshType = TOutputMesh;
61  using OutputPointType = typename Superclass::OutputPointType;
62  using OutputCoordRepType = typename Superclass::OutputCoordRepType;
63  using OutputPointIdentifier = typename Superclass::OutputPointIdentifier;
64 
65  static constexpr unsigned int OutputPointDimension = OutputMeshType::PointDimension;
66 
67  using SolverTraits = TSolverTraits;
68  using ValueType = typename Superclass::ValueType;
69  using MatrixType = typename Superclass::MatrixType;
71 
72  itkNewMacro(Self);
75 
76 protected:
77 
80  void PrintSelf(std::ostream & os, Indent indent) const override;
81 
82  using OutputMapPointIdentifier = typename Superclass::OutputMapPointIdentifier;
83  using OutputMapPointIdentifierIterator = typename Superclass::OutputMapPointIdentifierIterator;
84  using OutputMapPointIdentifierConstIterator = typename Superclass::OutputMapPointIdentifierConstIterator;
85 
86  using ConstraintMapType = typename Superclass::ConstraintMapType;
87  using ConstraintMapConstIterator = typename Superclass::ConstraintMapConstIterator;
88 
89  using RowType = typename Superclass::RowType;
90  using RowConstIterator = typename Superclass::RowConstIterator;
91  using RowIterator = typename Superclass::RowIterator;
92 
93  void ComputeVertexIdMapping() override;
94 
99  void FillMatrix(MatrixType & iM, VectorType & iBx, VectorType & iBy, VectorType & iBz);
100 
101  void GenerateData() override;
102 };
103 } // end namespace itk
104 
105 #include "itkLaplacianDeformationQuadEdgeMeshFilterWithHardConstraints.hxx"
106 
107 #endif
Light weight base class for most itk classes.
TOutputMesh OutputMeshType
Definition: itkMeshSource.h:68
Laplacian mesh deformation with hard constraints (interpolating displacement for some handle points) ...
typename OutputMeshType::PointIdentifier OutputPointIdentifier
itksys::hash_map< OutputPointIdentifier, OutputCoordRepType > RowType
typename ConstraintMapType::const_iterator ConstraintMapConstIterator
typename OutputMeshType::CoordRepType OutputCoordRepType
itksys::hash_map< OutputPointIdentifier, OutputPointIdentifier > OutputMapPointIdentifier
typename OutputMapPointIdentifier::const_iterator OutputMapPointIdentifierConstIterator
typename OutputMapPointIdentifier::iterator OutputMapPointIdentifierIterator
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itksys::hash_map< OutputPointIdentifier, OutputVectorType > ConstraintMapType
(abstract) base class for laplacian surface mesh deformation.