Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Wizt::BivectorAsSpiral Struct Reference

A shader for bivectors. More...

#include <BiVectorAsSpiral.hpp>

Inheritance diagram for Wizt::BivectorAsSpiral:
Wizt::Programmable Wizt::Phong Wizt::Illuminatable

Public Types

typedef META::LIST< Eagle::PhysicalSpace::bivectorFieldType
Public Types inherited from Wizt::Programmable
typedef RenderBasin::Program Program

Public Member Functions

 BivectorAsSpiral (VObject *that)
double AdjustLineWidth (const double &DefaultValue, VRenderContext &V) const
bool initializeAnemone (Anemone &RenderAnemone, VRenderContext &Context, AnemoneCreator<> &AC) const
RenderBasin::Program::Parameters setProgramParameters (const RenderBasin::Program::Parameters &P, Anemone &RenderAnemone, const GridAnemone::AnemoneCreationContext &ARC, const RefPtr< GridAnemone::AnemoneExplorer > &AE) const
bool isValidAnemone (const Anemone &RenderAnemone, VRenderContext &Context, AnemoneCreator<> &AC) const
std::string vertex_shader (VRenderContext &Context) const override
 Vertexshader GLGS code.
std::string geometry_shader (VRenderContext &Context) const override
std::string FragmentShaderPrefix (VRenderContext &Context) const override
std::string fragment_shader (VRenderContext &Context) const override
 Fragmentshader GLGS code that might stem from an text file.
string getShaderAttributeName () const
Public Member Functions inherited from Wizt::Programmable
RefPtr< RenderBasin::ProgramCompileShader (VRenderContext &Context, const std::string &Name, const RenderBasin::Program::Setup &SetupFunction=nullptr, const RefPtr< RenderBasin::Program > &ExistingProgram=nullptr, const glsl &LocalVertexShaderPrefixCode="", const glsl &LocalGeometryShaderPrefixCode="", const glsl &LocalFragmentShaderPrefixCode="") const
void enableViewportArray (bool EnableFragmentLayerViewport=true)
virtual glsl GeometryShaderPrefix (VRenderContext &Context) const
std::pair< glsl, stringgetCode (VRenderContext &Context, const std::string &Name, const std::string &Ext, std::string(Programmable::*shader)(VRenderContext &Context) const, const string &PrefixCode) const
void setGLSLVersion (const string &v_version, const string &g_version, const string &f_version)
void setGLSLVersion (const string &version)

Public Attributes

const string VectorFieldAttributeName
VObject::in< double > LengthScale
VObject::in< double > inSpiralization
VObject::in< double > inLineWidth
VObject::in< Color > inColor
Public Attributes inherited from Wizt::Programmable
glsl f_prefix
glsl g_prefix
RenderBasin::GeometryInputType GeometryInput
RenderBasin::GeometryOutputType GeometryOutput
glsl v_prefix

Static Public Attributes

static constexpr bool hasShaderConditionals = false
Static Public Attributes inherited from Wizt::Programmable
static const char default_fragment_shader []
static const char default_geometry_shader []
static const char default_vertex_shader []

Additional Inherited Members

Static Public Member Functions inherited from Wizt::Programmable
static string OptionalFileRead (const string &filename, const string &text)
static glsl setNumberOfLightSources (VRenderContext &Context, const std::string &VariableName="lightNum")
Static Public Member Functions inherited from Wizt::Phong
static std::string PhongShaderFunction ()
 vec4 Phong(vec4 VertexInEyeSpace, vec3 NormalInEyeSpace, vec4 DiffuseColor, float shininess, float sidedness);
Static Public Member Functions inherited from Wizt::Illuminatable
static RenderBasin::glsl DefineLightSources (VRenderContext &Context)
 Define the shader variable lightNum that contains the number of active light sources.
static bool feedAnemone (VRenderContext &Context, AnemoneCreatorBase &AC)
static bool feedAnemone (const AnemoneCreatorContext &ACC)
static bool isValidAnemone (VRenderContext &Context, const AnemoneCreatorBase &AC)
 Check for consistency of the number of light sources.
static bool isValidAnemone (VRenderContext &Context, const WeakPtr< AnemoneCreatorBase > &AC)
 Check for consistency of the number of light sources.
static bool isValidAnemone (const AnemoneCreatorContext &ACC)
 Check for consistency of the number of light sources.

Detailed Description

A shader for bivectors.

Member Function Documentation

◆ fragment_shader()

std::string Wizt::BivectorAsSpiral::fragment_shader ( VRenderContext & Context) const
overridevirtual

Fragmentshader GLGS code that might stem from an text file.

Implements Wizt::Programmable.

◆ geometry_shader()

std::string Wizt::BivectorAsSpiral::geometry_shader ( VRenderContext & Context) const
overridevirtual

Reimplemented from Wizt::Programmable.

◆ vertex_shader()

std::string Wizt::BivectorAsSpiral::vertex_shader ( VRenderContext & Context) const
overridevirtual

Vertexshader GLGS code.

Implements Wizt::Programmable.

References vertex_shader().

Referenced by vertex_shader().