FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
RawData.hpp
1#ifndef __FIBER_PACKING_HPP
2#define __FIBER_PACKING_HPP
3
4#include "CreativeArrayBase.hpp"
5#include <aerie/BitPacking.hpp>
6
7namespace Fiber
8{
9
17class FIELD_API RawData : public MemCore::Interface<RawData>
18{
19 RefPtr<CreativeArrayBase> myRawDataCreator;
20
21public:
23
24 ~RawData();
25
26 const RefPtr<CreativeArrayBase> &getRawCreator() const
27 {
28 return myRawDataCreator;
29 }
30
31
32static RefPtr<CreativeArrayBase> getRawCreator(CreativeArrayBase&CAB)
33 {
35 return RD->getRawCreator();
36
37 return nullptr;
38 }
39
44static const RefPtr<CreativeArrayBase>&
46 {
47 if (CAB)
48 {
50 {
52 RawCAB = RD->getRawCreator() )
53 return RawCAB;
54 }
55 }
56 return CAB;
57 }
58
59};
60
61
63{
64 FixedArray<double,3> Scale = {1.0, 1.0, 1.0},
65 Offset = {0.0, 0.0, 0.0};
66
68
69// VecPacked_10_11_11()
70// {}
71
74 : Scale( theScale )
75 , Offset( theOffset )
76 {}
77
79
81};
82
83template <int N>
85{
86 double Scale[N],
87 Offset[N];
88 uint16_t bits[N];
89
90};
91
92
93
94} // namespace Fiber
95
96#endif // FIBER_PACKING_HPP
Base class for multidimensional arrays that employ deferred storage, i.e.
Definition CreativeArrayBase.hpp:75
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Call unpackAs() in the Creator's create() function if the actual data type stored does not match the ...
Definition RawData.hpp:18
static const RefPtr< CreativeArrayBase > & getPossibleRawCreator(const RefPtr< CreativeArrayBase > &CAB)
If a Raw Data creator exists for a given Creator, return it, otherwise return the Creator itself.
Definition RawData.hpp:45
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
Definition RawData.hpp:63
Definition RawData.hpp:85