FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
VectorSpeckles.hpp
1#include <ocean/GLvish/VGLColormap.hpp>
2#include <ocean/Anemonia/Colorizer.hpp>
3#include <eye/retina/SplatRenderObject.hpp>
4
5namespace VectorViz
6{
7
8using namespace Wizt;
9using namespace Fiber;
10using namespace Eagle;
11using namespace META;
12
36{
37public:
39
40 TypedSlot<double> scaleFactor,
41 velocityFactor,
42 zeroness ;
43
44 TypedSlot<Range> tsScalarFieldColorizationRange;
45
46 struct LocalState : State
47 {
48 Eagle::point3 LastObserverPos;
49 double LastTime;
50
52 : LastTime(-1)
53 {}
54 };
55
56 RefPtr<VObject::State> newState() const override
57 {
58 return new LocalState();
59 }
60
61 VectorSpeckle(const string&name, int p, const RefPtr<VCreationPreferences>&VP);
62
63 void setup(const CreationSlots_t&CreationSlots) override;
64
65 string GLCacheField(const RefPtr<ValuePool>&Context) const override;
66
67 glsl splat_vertex_shader(VGLRenderContext&Context) const override;
68 glsl splat_fragment_shader(VGLRenderContext&Context) const override;
69
70 void setShaderVariables(VGLRenderContext&Context, const RefPtr<GLProgram>&ShaderProgram) const override;
71
72static string createChildname(const string&parent_name)
73 {
74 return "VectorSpecklesOf" + parent_name;
75 }
76};
77
78} // VectorViz
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Render a vector field as points with normal vector according to the vector values,...
Definition VectorSpeckles.hpp:36
Base class for render object that draw a splat for each vertex of a Grid object.
Definition SplatRenderObject.hpp:41
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 ...
Definition VectorSpeckles.hpp:47