FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
RegularlyFragmentedCurvilinearGrid3D.hpp
1#ifndef __FIBER_GRID_TYPES_REGULARLYFRAGMENTEDCURVILINEARGRID_HPP
2#define __FIBER_GRID_TYPES_REGULARLYFRAGMENTEDCURVILINEARGRID_HPP
3
4#include "RegularlyFragmentedGrid.hpp"
5
6namespace Fiber
7{
8
12{
14
17
20
21
23 {
24 assign( theGrid );
25 }
26
28 {
29 assign( theGrid.self() );
30 }
31
32 ~RegularlyFragmentedCurvilinearGrid3D();
33
34 bool assign(const RefPtr<Grid>&theGrid)
35 {
36 if (!RegularlyFragmentedGridWithCartesianVertices::assign(theGrid))
37 return false;
38
39 if (FragmentVerticesInCartesianCoordinates &&
40 FragmentVerticesInCartesianCoordinates->getPositions() )
41 {
42 FragmentCoordinates =
43 FragmentVerticesInCartesianCoordinates->getPositions()->getData();
44 }
45 else
46 FragmentCoordinates = nullptr;
47
48
49 if (PerFragmentDataInCartesianCoordinates &&
50 PerFragmentDataInCartesianCoordinates->getPositions() )
51 {
52 FragmentBathycenters =
53 PerFragmentDataInCartesianCoordinates->getPositions()->getData();
54 }
55 else
56 FragmentBathycenters = nullptr;
57
58 if (!FragmentCoordinates)
59 return false;
60
61 return true;
62 }
63
64 RefPtr<CoordsArray_t> getCoords(const MultiIndex<3>&I) const
65 {
66 return getCoordData(I);
67 }
68
69 bool isValid() const
70 {
71 return FragmentCoordinates.valid();
72 }
73
74};
75
76
77
78
79} // namespace Fiber
80
81#endif // __FIBER_GRID_TYPES_REGULARLYFRAGMENTEDCURVILINEARGRID_HPP
82
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A Grid is a set of Skeleton objects, each of them accessed via some unique SkeletonID object.
Definition Grid.hpp:60
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
Definition RegularlyFragmentedCurvilinearGrid3D.hpp:12
RefPtr< CoordsArray_t > FragmentCoordinates
The coordinates of each fragment.
Definition RegularlyFragmentedCurvilinearGrid3D.hpp:16
RefPtr< CoordsArray_t > FragmentBathycenters
The bathycenters of each fragment.
Definition RegularlyFragmentedCurvilinearGrid3D.hpp:19
Definition grid/types/RegularlyFragmentedGrid.hpp:294