FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
Occurrence.hpp
1#ifndef __FIBER__BUNDLE_OCCURRENCE_HPP
2#define __FIBER__BUNDLE_OCCURRENCE_HPP
3
4#include "Bundle.hpp"
5
6namespace Fiber
7{
8
13template <class T> class Occurrence;
14
15
16template <> class BUNDLE_API Occurrence<Slice>
17{
18public:
19 double time;
20
21 Occurrence(double t=0)
22 : time(t)
23 {}
24
26};
27
28template <> class BUNDLE_API Occurrence<Grid> : public Occurrence<Slice>
29{
30public:
31 WeakPtr<GridID> TheGrid;
32
35 , TheGrid(Gid)
36 {}
37
39 {}
40
42};
43
44template <> class BUNDLE_API Occurrence<Skeleton> : public Occurrence<Grid>
45{
46public:
47 SkeletonID TheSkeleton;
48
51 , TheSkeleton(SID)
52 {}
53
55 : TheSkeleton(0)
56 {}
57
59};
60
61template <> class BUNDLE_API Occurrence<Representation> : public Occurrence<Skeleton>
62{
63public:
64 Representer theRepresenter;
65
68 , theRepresenter(Rep)
69 {}
70
72 {}
73
75};
76
77template <> class BUNDLE_API Occurrence<Bundle>
78{
79 struct OccurrenceMap;
80 OccurrenceMap*ROM;
81
82public:
88
90
95 const Occurrence<Representation>*operator()(const Representer&Rep) const;
96
101 const Occurrence<Skeleton>*operator()(const WeakPtr<Skeleton>&Rep) const;
102
103
104 string RepresenterName(const Representer&) const;
105};
106
107
108} // namespace Fiber
109
110#endif // __FIBER__BUNDLE_OCCURENCE_HPP
111
The main entity holding all information.
Definition Bundle.hpp:173
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
A template family to collect information where certain objects reside within a Bundle.
Definition Occurrence.hpp:13
A Representation is a set of Field objects, each of them accessed via some FieldID identifier.
Definition Representation.hpp:101
Identifier for Skeletons within a Grid.
Definition SkeletonID.hpp:24
A Skeleton is a set of Representation object, each of them accessed by an Representer object.
Definition Skeleton.hpp:102
Information per time slice, mainly a set of Grid objects that are accessed via GridID objects.
Definition Slice.hpp:36
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
std::nullptr_t NullPtr
Definition Occurrence.cpp:22