FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
RGBAArray.hpp
1#ifndef TENSOR_ARRAY_HPP
2#define TENSOR_ARRAY_HPP
3
4#include <ocean/shrimp/VEnum.hpp>
5
6#include <GL/fieldGL.hpp>
7#include <eye/retina/SplatRenderObject.hpp>
8#include <ocean/GLvish/BufferArray.hpp>
9
10namespace Wizt
11{
12
13using namespace Fiber;
14using namespace Eagle;
15
16
17template <class Type>
19{
20public:
21 typedef Type value_type;
22 typedef typename Type::value_type etype;
23 typedef BufferArray Base_t;
24
25 int index;
26
27 RGBAArray( int indexP )
28 : BufferArray(BufferArray::ARRAY_BUFFER)
29 , index(indexP)
30 {}
31
32 bool enable() const override
33 {
34// GLboolean normalized = false;
35
38 return true;
39 }
40
41 bool disable() const override
42 {
44 return true;
45 }
46};
47
48
53{
54public:
56 typedef VBOArrayType::value_type value_type;
57
58 VBORGBAField(VObject*that, const string&fieldname);
59
61
63 const string&arrayname,
65 const Fiber::MemBase::Creator_t&theCreator) const override;
66};
67
68} // namespace Wizt
69
70#endif // TENSOR_ARRAY_HPP
71
72
73
74
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Definition RGBAArray.hpp:19
Loads a fragment of a tensor field as RGBAArray.
Definition RGBAArray.hpp:53
RefPtr< BufferArray > createVBOArray(const RefPtr< Fiber::MemBase > &MB, const string &arrayname, const RefPtr< GLProgram > &Shader, const Fiber::MemBase::Creator_t &theCreator) const override
Virtual function to create a vertex array from a given memory array.
Definition RGBAArray.cpp:18
A VertexField is a (abstract) gateway from RAM to GPU memory.
Definition VertexField.hpp:71
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
note: cannot derive from FloatingSkeletonRenderer as long as independent base class TriangleRenderer ...