An OrthoGPUProducer layer to draw a Graph as a mask. More...
#include <MaskOrthoLayer.h>
Classes | |
struct | BlendParams |
Structure used to pass blend arguments to the framebuffer. More... | |
Public Member Functions | |
MaskOrthoLayer (ptr< GraphProducer > graphs, set< int > ignored, ptr< Program > layerProgram, int writeMask, vec4f color, float depth, float widthFactor, BlendParams blendParams, vec4f blendColor, int displayLevel, bool deform=false) | |
Creates a new MaskOrthoLayer. | |
virtual | ~MaskOrthoLayer () |
Deletes this MaskOrthoLayer. | |
Protected Member Functions | |
MaskOrthoLayer () | |
Creates an uninitialized MaskOrthoLayer. | |
void | init (ptr< GraphProducer > graphs, set< int > ignored, ptr< Program > layerProgram, int writeMask, vec4f color, float depth, float widthFactor, BlendParams blendParams, vec4f blendColor, int displayLevel, bool deform=false) |
Initializes thie MaskOrthoLayer. | |
Private Attributes | |
set< int > | ignored |
The curve type that the mask should ignore (not draw). | |
int | writeMask |
The channels into which the graphs must be drawn. | |
vec4f | color |
Drawn color. | |
float | depth |
Drawn depth. | |
BlendParams | blendParams |
The blending equations to be used to combine this mask with the previous content of the channel channel. | |
vec4f | blendColor |
The Color used in blend equations. | |
ptr< Mesh< vec2f, unsigned int > > | mesh |
The mesh used to draw curves and areas. | |
ptr< Tesselator > | tess |
The tesselator used to draw areas. |
An OrthoGPUProducer layer to draw a Graph as a mask.
This layer can draw the graph in a specific channel, and can combine it with the previous content of this channel via blending equations.
proland::MaskOrthoLayer::MaskOrthoLayer | ( | ptr< GraphProducer > | graphs, | |
set< int > | ignored, | |||
ptr< Program > | layerProgram, | |||
int | writeMask, | |||
vec4f | color, | |||
float | depth, | |||
float | widthFactor, | |||
BlendParams | blendParams, | |||
vec4f | blendColor, | |||
int | displayLevel, | |||
bool | deform = false | |||
) |
Creates a new MaskOrthoLayer.
graphs | the GraphProducer that produces the graphs to be drawn by this layer. | |
ignored | the curve type that the mask should ignore (not draw). | |
layerProgram | the Program to be used to draw the graphs. | |
writeMask | the channels into which the graphs must be drawn. Must be used as a bit value. 0 = none, 1 = Red, 2 = Green, 4 = Blue, 8 = Alpha 16 = DepthBuffer, 32 = FSTENCIL, 64 = BSTENCIL. | |
color | drawn color. | |
depth | drawn depth. | |
blend | the blending equations to be used to combine this mask with the previous content of the channel channel. | |
blendColor | the color used in blend equations. | |
displayLevel | the quadtree level at which the display of this layer must start. |
virtual proland::MaskOrthoLayer::~MaskOrthoLayer | ( | ) | [virtual] |
Deletes this MaskOrthoLayer.
proland::MaskOrthoLayer::MaskOrthoLayer | ( | ) | [protected] |
Creates an uninitialized MaskOrthoLayer.
void proland::MaskOrthoLayer::init | ( | ptr< GraphProducer > | graphs, | |
set< int > | ignored, | |||
ptr< Program > | layerProgram, | |||
int | writeMask, | |||
vec4f | color, | |||
float | depth, | |||
float | widthFactor, | |||
BlendParams | blendParams, | |||
vec4f | blendColor, | |||
int | displayLevel, | |||
bool | deform = false | |||
) | [protected] |
Initializes thie MaskOrthoLayer.
See MaskOrthoLayer.
vec4f proland::MaskOrthoLayer::blendColor [private] |
The Color used in blend equations.
The blending equations to be used to combine this mask with the previous content of the channel channel.
vec4f proland::MaskOrthoLayer::color [private] |
Drawn color.
float proland::MaskOrthoLayer::depth [private] |
Drawn depth.
set<int> proland::MaskOrthoLayer::ignored [private] |
The curve type that the mask should ignore (not draw).
ptr<Mesh< vec2f, unsigned int> > proland::MaskOrthoLayer::mesh [private] |
The mesh used to draw curves and areas.
ptr<Tesselator> proland::MaskOrthoLayer::tess [private] |
The tesselator used to draw areas.
int proland::MaskOrthoLayer::writeMask [private] |
The channels into which the graphs must be drawn.
Must be used as a bit value. 0 = none, 1 = Red, 2 = Green, 4 = Blue, 8 = Alpha 16 = DepthBuffer, 32 = FSTENCIL, 64 = BSTENCIL.