ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkDeformableSimplexMesh3DBalloonForceFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 *
20 * Portions of this file are subject to the VTK Toolkit Version 3 copyright.
21 *
22 * Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
23 *
24 * For complete copyright, license and disclaimer of warranty information
25 * please refer to the NOTICE file at the top of the ITK source tree.
26 *
27 *=========================================================================*/
28#ifndef itkDeformableSimplexMesh3DBalloonForceFilter_h
29#define itkDeformableSimplexMesh3DBalloonForceFilter_h
30
32#include "itkMesh.h"
34#include "itkCovariantVector.h"
35
36#include <set>
37
38namespace itk
39{
52template <typename TInputMesh, typename TOutputMesh>
54 : public DeformableSimplexMesh3DFilter<TInputMesh, TOutputMesh>
55{
56public:
57
60
63
67
70
73
75 using InputMeshType = TInputMesh;
76 using OutputMeshType = TOutputMesh;
77 using typename Superclass::PointType;
78 using typename Superclass::GradientIndexType;
80 using typename Superclass::GradientImageType;
81
82 /* Mesh pointer definition. */
83 using InputMeshPointer = typename InputMeshType::Pointer;
84 using OutputMeshPointer = typename OutputMeshType::Pointer;
85
86 using PixelType = typename InputMeshType::PixelType;
87
90
92 itkSetMacro(Kappa, double);
93 itkGetConstMacro(Kappa, double);
95
96protected:
100
101 void
103 {}
104
105 void
106 PrintSelf(std::ostream & os, Indent indent) const override;
107
112 void
113 ComputeExternalForce(SimplexMeshGeometry * data, const GradientImageType * gradientImage) override;
114
115 double m_Kappa{};
116}; // end of class
117} // end namespace itk
118
119#ifndef ITK_MANUAL_INSTANTIATION
120# include "itkDeformableSimplexMesh3DBalloonForceFilter.hxx"
121#endif
122
123#endif // itkDeformableSimplexMesh3DBalloonForceFilter_h
~DeformableSimplexMesh3DBalloonForceFilter() override=default
DeformableSimplexMesh3DFilter< TInputMesh, TOutputMesh > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
void ComputeExternalForce(SimplexMeshGeometry *data, const GradientImageType *gradientImage) override
typename GradientIntensityImageType::Pointer GradientIntensityImagePointer
itkOverrideGetNameOfClassMacro(DeformableSimplexMesh3DBalloonForceFilter)
typename GradientImageType::IndexType GradientIndexType
typename SimplexMeshGeometry::PointType PointType
typename GradientIndexType::IndexValueType GradientIndexValueType
Templated n-dimensional image class.
Definition itkImage.h:89
SmartPointer< Self > Pointer
Definition itkImage.h:96
Control indentation during Print() invocation.
Definition itkIndent.h:50
handle geometric properties for vertices of a simplex mesh
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....