FiberVISH
0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
pond
eye
shaders
VectorAsLine.hpp
1
#ifndef __VECTORS_AS_LINE_HPP
2
#define __VECTORS_AS_LINE_HPP
3
4
#include <ocean/Anemonia/Programmable.hpp>
5
#include <ocean/Anemonia/Seagrass.hpp>
6
7
#include <elementary/meta/LIST.hpp>
8
#include <fish/pond/anemonefish/GridAnemone.hpp>
9
10
#include "shadersDllApi.h"
11
12
namespace
Wizt
13
{
14
21
struct
shaders_API
VectorAsLines
:
Programmable
22
{
23
typedef
META::LIST<Eagle::PhysicalSpace::tvector>
FieldType
;
24
25
const
string
VectorFieldAttributeName;
26
27
VObject::in<double> LengthScale;
28
29
VectorAsLines
(
VObject
*that);
30
31
~VectorAsLines
();
32
33
static
constexpr
bool
hasShaderConditionals =
false
;
34
36
bool
initializeAnemone(
Anemone
&RenderAnemone,
37
VRenderContext
&
Context
,
38
AnemoneCreator<>
&AC)
const
;
39
40
bool
isValidAnemone(
const
Anemone
&RenderAnemone,
41
VRenderContext
&
Context
,
42
AnemoneCreator<>
&AC)
const
;
43
44
46
std::string
vertex_shader(
VRenderContext
&
Context
)
const override
;
47
48
std::string
geometry_shader(
VRenderContext
&
Context
)
const override
;
49
50
RenderBasin::Program::Parameters
setProgramParameters(
const
RenderBasin::Program::Parameters
&
P
,
51
Anemone
&RenderAnemone,
52
const
GridAnemone::AnemoneCreationContext
&
ARC
,
53
const
RefPtr<GridAnemone::AnemoneExplorer>
&
AE
)
const
54
{
55
RenderBasin::Program::Parameters
retval
=
P
;
56
retval
.Geometry.Output.Vertices = 2;
57
return
retval
;
58
}
59
61
std::string
fragment_shader(
VRenderContext
&
Context
)
const override
;
62
63
string
getShaderAttributeName()
const
64
{
65
return
VectorFieldAttributeName;
66
}
67
};
68
69
70
}
// namespace Wizt
71
72
#endif
// __VECTORS_AS_LINE_HPP
std::string
basic_string< char > string
Eagle::Context
Fiber::CreativeIterator
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition
CreativeIterator.hpp:34
Wizt::Anemone
Wizt::Programmable
Wizt::RenderBasin::Program::Parameters
Wizt::VObject
Wizt::VRenderContext
META::LIST
Wizt
note: cannot derive from FloatingSkeletonRenderer as long as independent base class TriangleRenderer ...
Wizt::GridAnemoneCreationContext
The context of creating a RenderAnemone.
Definition
AnemoneCreationContext.hpp:58
Wizt::VectorAsLines
A minimalistic geometry shader that displays a vector field as a line segment.
Definition
VectorAsLine.hpp:22
Generated on Sun Mar 1 2026 10:23:16 for FiberVISH by
1.9.8