An OrthoGPUProducer layer to draw fields. More...
#include <FieldsOrthoLayer.h>
Public Member Functions | |
FieldsOrthoLayer (ptr< GraphProducer > graphProducer, ptr< Program > layerProgram, ptr< Program > fillProgram, int displayLevel=0, bool quality=true) | |
Creates a new FieldsOrthoLayer. | |
virtual | ~FieldsOrthoLayer () |
Deletes this FieldsOrthoLayer. | |
Protected Member Functions | |
FieldsOrthoLayer () | |
Creates an uninitialized FieldsOrthoLayer. | |
void | init (ptr< GraphProducer > graphProducer, ptr< Program > layerProgram, ptr< Program > fillProgram, int displayLevel=0, bool quality=true) |
Initializes this FieldsOrthoLayer. | |
Protected Attributes | |
ptr< Program > | fill |
Program used to fill areas. | |
Private Member Functions | |
vec4f * | getColor (AreaPtr field, mat3f **dcolor, vec3f **stripeSize, vec2f &stripeDir) |
Returns the color of a given Area, depending on its type. | |
Private Attributes | |
ptr< Mesh< vec2f, unsigned int > > | mesh |
The mesh used for drawing curves. | |
ptr< Tesselator > | tess |
The tesselator used for drawing areas. | |
ptr< Uniform3f > | fillOffsetU |
Matrix used to compute border color in the shader. | |
Static Private Attributes | |
static vec4f | COLOR [10] |
Fields colors. | |
static mat3f | DCOLOR [10] |
Fields dColor. | |
static vec3f | STRIPES [10] |
Fields stripe size. |
An OrthoGPUProducer layer to draw fields.
proland::FieldsOrthoLayer::FieldsOrthoLayer | ( | ptr< GraphProducer > | graphProducer, | |
ptr< Program > | layerProgram, | |||
ptr< Program > | fillProgram, | |||
int | displayLevel = 0 , |
|||
bool | quality = true | |||
) |
Creates a new FieldsOrthoLayer.
graphProducer | the GraphProducer that produces the graphs to be drawn by this layer. | |
layerProgram | the Program to be used to draw the graphs. | |
fillProgram | the GLSL Program to be used to fill areas in this Layer. | |
displayLevel | the quadtree level at which the display of this layer must start. | |
quality | enable or not the quality mode (better display). |
virtual proland::FieldsOrthoLayer::~FieldsOrthoLayer | ( | ) | [virtual] |
Deletes this FieldsOrthoLayer.
proland::FieldsOrthoLayer::FieldsOrthoLayer | ( | ) | [protected] |
Creates an uninitialized FieldsOrthoLayer.
vec4f* proland::FieldsOrthoLayer::getColor | ( | AreaPtr | field, | |
mat3f ** | dcolor, | |||
vec3f ** | stripeSize, | |||
vec2f & | stripeDir | |||
) | [private] |
void proland::FieldsOrthoLayer::init | ( | ptr< GraphProducer > | graphProducer, | |
ptr< Program > | layerProgram, | |||
ptr< Program > | fillProgram, | |||
int | displayLevel = 0 , |
|||
bool | quality = true | |||
) | [protected] |
Initializes this FieldsOrthoLayer.
See FieldsOrthoLayer.
vec4f proland::FieldsOrthoLayer::COLOR[10] [static, private] |
Fields colors.
mat3f proland::FieldsOrthoLayer::DCOLOR[10] [static, private] |
Fields dColor.
ptr<Program> proland::FieldsOrthoLayer::fill [protected] |
Program used to fill areas.
ptr<Uniform3f> proland::FieldsOrthoLayer::fillOffsetU [private] |
Matrix used to compute border color in the shader.
ptr< Mesh<vec2f, unsigned int> > proland::FieldsOrthoLayer::mesh [private] |
The mesh used for drawing curves.
vec3f proland::FieldsOrthoLayer::STRIPES[10] [static, private] |
Fields stripe size.
ptr<Tesselator> proland::FieldsOrthoLayer::tess [private] |
The tesselator used for drawing areas.