ViennaGrid for Python
 All Classes Files Functions Variables
triangular.hpp
Go to the documentation of this file.
1 
6 #ifndef SEGMENTS_TRIANGULAR_HPP
7 #define SEGMENTS_TRIANGULAR_HPP
8 
9 #include "types.hpp"
10 
11 #include "../domains/forward.hpp"
12 
13 #include "../points/cartesian.hpp"
14 #include "../points/cylindrical.hpp"
15 #include "../points/polar.hpp"
16 #include "../points/spherical.hpp"
17 
18 #include "../cells/triangular.hpp"
19 #include "../vertices/triangular.hpp"
20 #include "../segmentations/forward.hpp"
21 
22 #include <boost/python.hpp>
23 using namespace boost::python;
24 
31 {
36  TriangularCartesian2D_Segment_t segment;
37 
43 public:
44  TriangularCartesian2D_Segment(TriangularCartesian2D_Segment_t &initial_segment, TriangularCartesian2D_Segmentation &initial_segmentation);
45 
53  unsigned int num_cells();
54 
67 
75  list get_cells();
76 
83  TriangularCartesian2D_Segment_t & get_segment();
84 };
85 
92 {
97  TriangularCartesian3D_Segment_t segment;
98 
104 public:
105  TriangularCartesian3D_Segment(TriangularCartesian3D_Segment_t &initial_segment, TriangularCartesian3D_Segmentation &initial_segmentation);
106 
114  unsigned int num_cells();
115 
128 
136  list get_cells();
137 
144  TriangularCartesian3D_Segment_t & get_segment();
145 };
146 
153 {
158  TriangularCylindrical3D_Segment_t segment;
159 
165 public:
166  TriangularCylindrical3D_Segment(TriangularCylindrical3D_Segment_t &initial_segment, TriangularCylindrical3D_Segmentation &initial_segmentation);
167 
175  unsigned int num_cells();
176 
189 
197  list get_cells();
198 
205  TriangularCylindrical3D_Segment_t & get_segment();
206 };
207 
214 {
219  TriangularPolar2D_Segment_t segment;
220 
225  TriangularPolar2D_Segmentation *segmentation;
226 public:
227  TriangularPolar2D_Segment(TriangularPolar2D_Segment_t &initial_segment, TriangularPolar2D_Segmentation &initial_segmentation);
228 
236  unsigned int num_cells();
237 
250 
258  list get_cells();
259 
266  TriangularPolar2D_Segment_t & get_segment();
267 };
268 
275 {
280  TriangularSpherical3D_Segment_t segment;
281 
287 public:
288  TriangularSpherical3D_Segment(TriangularSpherical3D_Segment_t &initial_segment, TriangularSpherical3D_Segmentation &initial_segmentation);
289 
297  unsigned int num_cells();
298 
311 
319  list get_cells();
320 
327  TriangularSpherical3D_Segment_t & get_segment();
328 };
329 
330 #endif /* end of include guard: SEGMENTS_TRIANGULAR_HPP */