ITK  5.4.0
Insight Toolkit
itkQuadEdgeMeshPoint.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 #ifndef itkQuadEdgeMeshPoint_h
19 #define itkQuadEdgeMeshPoint_h
20 
21 #include "itkPoint.h"
22 #include "itkConceptChecking.h"
23 #include "itkGeometricalQuadEdge.h"
24 
25 namespace itk
26 {
34 template <typename TCoordRep,
35  unsigned int VPointDimension,
36  typename TQuadEdge = GeometricalQuadEdge<unsigned long, unsigned long, bool, bool, true>>
37 class ITK_TEMPLATE_EXPORT QuadEdgeMeshPoint : public Point<TCoordRep, VPointDimension>
38 {
39 public:
40 
44 
46  static constexpr unsigned int PointDimension = VPointDimension;
47 
48  using typename Superclass::ValueType;
49  using typename Superclass::CoordRepType;
50  using typename Superclass::RealType;
51  using typename Superclass::Iterator;
52  using typename Superclass::ConstIterator;
53  using typename Superclass::VectorType;
54 
55  using ValueArrayType = ValueType[Self::PointDimension];
56 
57 #ifdef ITK_USE_CONCEPT_CHECKING
58  // Begin concept checking
59  // End concept checking
60 #endif
61 
62 public:
64  QuadEdgeMeshPoint(const Self &) = default;
67  operator=(const QuadEdgeMeshPoint &) = default;
69  operator=(QuadEdgeMeshPoint &&) = default;
70  ~QuadEdgeMeshPoint() = default;
71 
72  QuadEdgeMeshPoint(const Superclass & r);
73 
74  QuadEdgeMeshPoint(const ValueType r[VPointDimension])
75  : Superclass(r)
76  {
77  this->Initialize();
78  }
79 
80 
81  Self &
82  operator=(const Superclass & r);
83 
84  Self &
85  operator=(const ValueType r[VPointDimension]);
86 
88  void
89  SetEdge(TQuadEdge * inputEdge);
90 
92  void
93  SetPoint(const Superclass & point);
94 
96  TQuadEdge *
97  GetEdge();
98 
99  TQuadEdge *
100  GetEdge() const;
101 
105  bool
106  IsInternal() const;
107 
113  int
114  GetValence() const;
115 
116 protected:
118  void
119  Initialize();
120 
121 protected:
123 };
124 } // end namespace itk
125 
126 #ifndef ITK_MANUAL_INSTANTIATION
127 # include "itkQuadEdgeMeshPoint.hxx"
128 #endif
129 
130 #endif
itkPoint.h
itk::GTest::TypedefsAndConstructors::Dimension2::VectorType
ImageBaseType::SpacingType VectorType
Definition: itkGTestTypedefsAndConstructors.h:53
itkGeometricalQuadEdge.h
itkConceptChecking.h
itk::Point::ValueType
TCoordRep ValueType
Definition: itkPoint.h:63
itk::QuadEdgeMeshPoint::QuadEdgeMeshPoint
QuadEdgeMeshPoint(const ValueType r[VPointDimension])
Definition: itkQuadEdgeMeshPoint.h:74
itk::FixedArray< TCoordRep, VPointDimension >::ConstIterator
const ValueType * ConstIterator
Definition: itkFixedArray.h:72
itk::point
*par Constraints *The filter requires an image with at least two dimensions and a vector *length of at least The theory supports extension to scalar but *the implementation of the itk vector classes do not **The template parameter TRealType must be floating point(float or double) or *a user-defined "real" numerical type with arithmetic operations defined *sufficient to compute derivatives. **\par Performance *This filter will automatically multithread if run with *SetUsePrincipleComponents
itk::FixedArray< TCoordRep, VPointDimension >
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::QuadEdgeMeshPoint::ValueArrayType
ValueType[Self::PointDimension] ValueArrayType
Definition: itkQuadEdgeMeshPoint.h:55
itk::Point
A templated class holding a geometric point in n-Dimensional space.
Definition: itkPoint.h:53
AddImageFilter
Definition: itkAddImageFilter.h:81
Superclass
BinaryGeneratorImageFilter< TInputImage1, TInputImage2, TOutputImage > Superclass
Definition: itkAddImageFilter.h:90
itk::FixedArray< TCoordRep, VPointDimension >::Iterator
ValueType * Iterator
Definition: itkFixedArray.h:69
itk::FixedArray< TCoordRep, VPointDimension >::ValueType
TCoordRep ValueType
Definition: itkFixedArray.h:63
itk::QuadEdgeMeshPoint
Wrapper around a itk::Point in order to add a reference to an entry in the edge ring.
Definition: itkQuadEdgeMeshPoint.h:37