proland::MaskOrthoLayer Class Reference

An OrthoGPUProducer layer to draw a Graph as a mask. More...

#include <MaskOrthoLayer.h>

Inheritance diagram for proland::MaskOrthoLayer:
proland::GraphLayer

List of all members.

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< Tesselatortess
 The tesselator used to draw areas.

Detailed Description

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.

Author:
Antoine Begault, Guillaume Piolat

Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

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.


Member Data Documentation

The Color used in blend equations.

The blending equations to be used to combine this mask with the previous content of the channel channel.

Drawn color.

Drawn depth.

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.

The tesselator used to draw areas.

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.


Generated on Sat May 12 09:42:49 2012 for proland by  doxygen 1.6.1