]> Creatis software - cpMesh.git/blob - lib/cpm/DataStructures/QuadEdgeCell.hxx
First commit
[cpMesh.git] / lib / cpm / DataStructures / QuadEdgeCell.hxx
1 #ifndef __CPM__DATASTRUCTURES__QUADEDGECELL__HXX__
2 #define __CPM__DATASTRUCTURES__QUADEDGECELL__HXX__
3
4 // -------------------------------------------------------------------------
5 template< class I, class E >
6 cpm::DataStructures::QuadEdgeCell< I, E >::
7 QuadEdgeCell( )
8   : Superclass( ),
9     m_EntryEdge( NULL )
10 {
11 }
12
13 // -------------------------------------------------------------------------
14 template< class I, class E >
15 cpm::DataStructures::QuadEdgeCell< I, E >::
16 QuadEdgeCell( E* entry )
17   : Superclass( ),
18     m_EntryEdge( entry )
19 {
20   this->SetEntryPrimalEdge( entry );
21 }
22
23 // -------------------------------------------------------------------------
24 template< class I, class E >
25 cpm::DataStructures::QuadEdgeCell< I, E >::
26 ~QuadEdgeCell( )
27 {
28 }
29
30 // -------------------------------------------------------------------------
31 template< class I, class E >
32 typename cpm::DataStructures::QuadEdgeCell< I, E >::
33 CellGeometry cpm::DataStructures::QuadEdgeCell< I, E >::
34 GetType( ) const
35 {
36   std::cout << "QuadEdgeCell GetType" << std::endl;
37   std::exit( 1 );
38 }
39
40 // -------------------------------------------------------------------------
41 template< class I, class E >
42 void cpm::DataStructures::QuadEdgeCell< I, E >::
43 MakeCopy( CellAutoPointer& other ) const
44 {
45   std::cout << "QuadEdgeCell MakeCopy" << std::endl;
46   std::exit( 1 );
47 }
48
49 // -------------------------------------------------------------------------
50 template< class I, class E >
51 unsigned int cpm::DataStructures::QuadEdgeCell< I, E >::
52 GetDimension( ) const
53 {
54   std::cout << "QuadEdgeCell GetDimension" << std::endl;
55   std::exit( 1 );
56 }
57
58 // -------------------------------------------------------------------------
59 template< class I, class E >
60 unsigned int cpm::DataStructures::QuadEdgeCell< I, E >::
61 GetNumberOfPoints( ) const
62 {
63   return( this->m_EntryEdge->GetLnextRingSize( ) );
64 }
65
66 // -------------------------------------------------------------------------
67 template< class I, class E >
68 typename cpm::DataStructures::QuadEdgeCell< I, E >::
69 CellFeatureCount cpm::DataStructures::QuadEdgeCell< I, E >::
70 GetNumberOfBoundaryFeatures( int dimension ) const
71 {
72   std::cout << "QuadEdgeCell GetNumberOfBoundaryFeatures" << std::endl;
73   std::exit( 1 );
74 }
75
76 // -------------------------------------------------------------------------
77 template< class I, class E >
78 bool cpm::DataStructures::QuadEdgeCell< I, E >::
79 GetBoundaryFeature(
80   int dimension,
81   CellFeatureIdentifier fId,
82   CellAutoPointer& ptr
83   )
84 {
85   std::cout << "QuadEdgeCell GetBoundaryFeature" << std::endl;
86   std::exit( 1 );
87 }
88
89 // -------------------------------------------------------------------------
90 template< class I, class E >
91 void cpm::DataStructures::QuadEdgeCell< I, E >::
92 SetPointIds( PointIdConstIterator first )
93 {
94   std::cout << "QuadEdgeCell SetPointIds" << std::endl;
95   std::exit( 1 );
96 }
97
98 // -------------------------------------------------------------------------
99 template< class I, class E >
100 void cpm::DataStructures::QuadEdgeCell< I, E >::
101 SetPointIds(
102   PointIdConstIterator first,
103   PointIdConstIterator last
104   )
105 {
106   std::cout << "QuadEdgeCell SetPointIds(first,last)" << std::endl;
107   std::exit( 1 );
108 }
109
110 // -------------------------------------------------------------------------
111 template< class I, class E >
112 void cpm::DataStructures::QuadEdgeCell< I, E >::
113 AddPointId( PointIdentifier pId )
114 {
115   std::cout << "QuadEdgeCell AddPointId" << std::endl;
116   std::exit( 1 );
117 }
118
119 // -------------------------------------------------------------------------
120 template< class I, class E >
121 void cpm::DataStructures::QuadEdgeCell< I, E >::
122 RemovePointId( PointIdentifier pId )
123 {
124   std::cout << "QuadEdgeCell RemovePointId" << std::endl;
125   std::exit( 1 );
126 }
127
128 // -------------------------------------------------------------------------
129 template< class I, class E >
130 void cpm::DataStructures::QuadEdgeCell< I, E >::
131 SetPointIds(
132   int dummy,
133   int num,
134   PointIdConstIterator first
135   )
136 {
137   std::cout << "QuadEdgeCell SetPointIds(dummy,num,first)" << std::endl;
138   std::exit( 1 );
139 }
140
141 // -------------------------------------------------------------------------
142 template< class I, class E >
143 void cpm::DataStructures::QuadEdgeCell< I, E >::
144 BuildEdges( )
145 {
146   std::cout << "QuadEdgeCell BuildEdges" << std::endl;
147   std::exit( 1 );
148 }
149
150 // -------------------------------------------------------------------------
151 template< class I, class E >
152 void cpm::DataStructures::QuadEdgeCell< I, E >::
153 ClearPoints( )
154 {
155   std::cout << "QuadEdgeCell ClearPoints" << std::endl;
156   std::exit( 1 );
157 }
158
159 // -------------------------------------------------------------------------
160 template< class I, class E >
161 void cpm::DataStructures::QuadEdgeCell< I, E >::
162 SetPointId( int localId, PointIdentifier pId )
163 {
164   std::cout << "QuadEdgeCell SetPointId(localId,pId)" << std::endl;
165   std::exit( 1 );
166 }
167
168 // -------------------------------------------------------------------------
169 template< class I, class E >
170 int cpm::DataStructures::QuadEdgeCell< I, E >::
171 GetTopologyId( )
172 {
173   // TODO: return( Superclass::POLYGON_CELL );
174   std::cout << "QuadEdgeCell GetTopologyId" << std::endl;
175   std::exit( 1 );
176 }
177
178 // -------------------------------------------------------------------------
179 template< class I, class E >
180 void cpm::DataStructures::QuadEdgeCell< I, E >::
181 Accept(
182   CellIdentifier cellid,
183   typename itk::CellInterface< PixelType, CellTraits >::MultiVisitor* mv
184   )
185 {
186   std::cout << "QuadEdgeCell Accept" << std::endl;
187   std::exit( 1 );
188 }
189
190 // -------------------------------------------------------------------------
191 template< class I, class E >
192 typename cpm::DataStructures::QuadEdgeCell< I, E >::
193 PointIdIterator cpm::DataStructures::QuadEdgeCell< I, E >::
194 PointIdsBegin( )
195 {
196   std::cout << "QuadEdgeCell PointIdsBegin" << std::endl;
197   std::exit( 1 );
198 }
199
200 // -------------------------------------------------------------------------
201 template< class I, class E >
202 typename cpm::DataStructures::QuadEdgeCell< I, E >::
203 PointIdConstIterator cpm::DataStructures::QuadEdgeCell< I, E >::
204 PointIdsBegin( ) const
205 {
206   std::cout << "QuadEdgeCell PointIdsBegin (const)" << std::endl;
207   std::exit( 1 );
208 }
209
210 // -------------------------------------------------------------------------
211 template< class I, class E >
212 typename cpm::DataStructures::QuadEdgeCell< I, E >::
213 PointIdIterator cpm::DataStructures::QuadEdgeCell< I, E >::
214 PointIdsEnd( )
215 {
216   std::cout << "QuadEdgeCell PointIdsEnd" << std::endl;
217   std::exit( 1 );
218 }
219
220 // -------------------------------------------------------------------------
221 template< class I, class E >
222 typename cpm::DataStructures::QuadEdgeCell< I, E >::
223 PointIdConstIterator cpm::DataStructures::QuadEdgeCell< I, E >::
224 PointIdsEnd( ) const
225 {
226   std::cout << "QuadEdgeCell PointIdsEnd (const)" << std::endl;
227   std::exit( 1 );
228 }
229
230 // -------------------------------------------------------------------------
231 template< class I, class E >
232 E* cpm::DataStructures::QuadEdgeCell< I, E >::
233 GetEntryPrimalEdge( )
234 {
235   return( this->m_EntryEdge );
236 }
237
238 // -------------------------------------------------------------------------
239 template< class I, class E >
240 const E* cpm::DataStructures::QuadEdgeCell< I, E >::
241 GetEntryPrimalEdge( ) const
242 {
243   return( this->m_EntryEdge );
244 }
245
246 // -------------------------------------------------------------------------
247 template< class I, class E >
248 void cpm::DataStructures::QuadEdgeCell< I, E >::
249 SetEntryPrimalEdge( E* entry )
250 {
251   this->m_EntryEdge = entry;
252 }
253
254 #endif // __CPM__DATASTRUCTURES__QUADEDGECELL__HXX__
255
256 // eof - $RCSfile$