ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints.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 itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints_h
19 #define itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints_h
20 
22 
23 namespace itk {
41 template< class TInputMesh, class TOutputMesh, class TSolverTraits >
43  public LaplacianDeformationQuadEdgeMeshFilter< TInputMesh, TOutputMesh, TSolverTraits >
44 {
45 public:
48  typedef LaplacianDeformationQuadEdgeMeshFilter< TInputMesh,
49  TOutputMesh,
50  TSolverTraits > Superclass;
53 
55  typedef TInputMesh InputMeshType;
56 
57  itkStaticConstMacro(InputPointDimension, unsigned int, InputMeshType::PointDimension);
58 
60  typedef TOutputMesh OutputMeshType;
64 
65  itkStaticConstMacro(OutputPointDimension, unsigned int, OutputMeshType::PointDimension);
66 
67  typedef TSolverTraits SolverTraits;
68  typedef typename Superclass::ValueType ValueType;
71 
72  itkNewMacro(Self);
74 
75  itkSetMacro(Lambda,OutputCoordRepType);
76  itkGetMacro(Lambda,OutputCoordRepType);
77 
79 
80 protected:
81 
84  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
85 
90  void FillMatrix(MatrixType & iM, VectorType & iBx, VectorType & iBy, VectorType & iBz);
91 
92  virtual void GenerateData() ITK_OVERRIDE;
93 
96 
100 
101 
105 
106  virtual void ComputeVertexIdMapping() ITK_OVERRIDE;
107 
110 
112 
113 
114 private:
116  // implemented
117  void operator=(const Self &); // purposely not
118 };
119 } // end namespace itk
120 
121 #include "itkLaplacianDeformationQuadEdgeMeshFilterWithSoftConstraints.hxx"
122 
123 #endif
Laplacian deformation with soft constraints (approximating displacement for handle points)...
Light weight base class for most itk classes.
OutputMapPointIdentifier::const_iterator OutputMapPointIdentifierConstIterator
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...
itksys::hash_map< OutputPointIdentifier, OutputPointIdentifier > OutputMapPointIdentifier
itksys::hash_map< OutputPointIdentifier, OutputCoordRepType > RowType
itksys::hash_map< OutputPointIdentifier, OutputVectorType > ConstraintMapType
void SetLocalLambda(OutputPointIdentifier vId, OutputCoordRepType iL)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
void PrintSelf(std::ostream &os, Indent indent) const override
typedef(Concept::SameDimension< InputPointDimension, OutputPointDimension >) SameDimensionCheck1
(abstract) base class for laplacian surface mesh deformation.
LaplacianDeformationQuadEdgeMeshFilter< TInputMesh, TOutputMesh, TSolverTraits > Superclass