ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkQuadEdgeMeshPoint.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 __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< class TCoordRep, unsigned int VPointDimension, typename TQuadEdge =
35  GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true > >
36 class ITK_EXPORT QuadEdgeMeshPoint:public Point< TCoordRep, VPointDimension >
37 {
38 public:
39 
43 
45  itkStaticConstMacro(PointDimension, unsigned int,
46  VPointDimension);
47 
48  typedef typename Superclass::ValueType ValueType;
50  typedef typename Superclass::RealType RealType;
51  typedef typename Superclass::BaseArray BaseArray;
52  typedef typename Superclass::Iterator Iterator;
55 
56  typedef ValueType ValueArrayType[itkGetStaticConstMacro(PointDimension)];
57 
58 #ifdef ITK_USE_CONCEPT_CHECKING
59 
62 #endif
63 public:
65  virtual ~QuadEdgeMeshPoint() {}
66  QuadEdgeMeshPoint(const Self & r);
67  QuadEdgeMeshPoint(const Superclass & r);
68  QuadEdgeMeshPoint(const ValueType r[VPointDimension]):Superclass(r)
69  {
70  this->Initialize();
71  }
73 
74  Self & operator=(const Self & r);
75 
76  Self & operator=(const Superclass & r);
77 
78  Self & operator=(const ValueType r[VPointDimension]);
79 
81  void SetEdge(TQuadEdge *inputEdge);
82 
84  void SetPoint(const Superclass & point);
85 
87  TQuadEdge * GetEdge();
88 
89  TQuadEdge * GetEdge() const;
90 
92  bool IsInternal() const;
93 
95  int GetValence() const;
96 
97 protected:
98  void Initialize();
99 
100 protected:
102 };
103 } // end namespace itk
104 
105 #ifndef ITK_MANUAL_INSTANTIATION
106 #include "itkQuadEdgeMeshPoint.hxx"
107 #endif
108 
109 #endif
110