An OrthoGPUProducer layer to draw forests. More...
#include <ForestOrthoLayer.h>
Public Member Functions | |
ForestOrthoLayer (ptr< GraphProducer > graphProducer, ptr< Program > layerProgram, int displayLevel=0, bool quality=true, vec4f color=vec4f(0, 0, 0, 0)) | |
Creates a new ForestOrthoLayer. | |
virtual | ~ForestOrthoLayer () |
Deletes this ForestOrthoLayer. | |
Protected Member Functions | |
ForestOrthoLayer () | |
Creates an uninitialized ForestOrthoLayer. | |
void | init (ptr< GraphProducer > graphProducer, ptr< Program > layerProgram, int displayLevel=0, bool quality=true, vec4f color=vec4f(0, 0, 0, 0)) |
Initializes this ForestOrthoLayer. | |
Private Attributes | |
vec4f | color |
Forest color. | |
ptr< Mesh< vec2f, unsigned int > > | mesh |
The mesh used for drawing curves. | |
ptr< Tesselator > | tess |
The tesselator used for drawing areas. |
An OrthoGPUProducer layer to draw forests.
proland::ForestOrthoLayer::ForestOrthoLayer | ( | ptr< GraphProducer > | graphProducer, | |
ptr< Program > | layerProgram, | |||
int | displayLevel = 0 , |
|||
bool | quality = true , |
|||
vec4f | color = vec4f(0, 0, 0, 0) | |||
) |
Creates a new ForestOrthoLayer.
graphProducer | the GraphProducer that produces the graphs to be drawn by this layer. | |
layerProgram | the Program to be used to draw the graphs. | |
displayLevel | the quadtree level at which the display of this layer must start. | |
quality | enable or not the quality mode (better display). | |
color | the color of forests (default 0:0:0). |
virtual proland::ForestOrthoLayer::~ForestOrthoLayer | ( | ) | [virtual] |
Deletes this ForestOrthoLayer.
proland::ForestOrthoLayer::ForestOrthoLayer | ( | ) | [protected] |
Creates an uninitialized ForestOrthoLayer.
void proland::ForestOrthoLayer::init | ( | ptr< GraphProducer > | graphProducer, | |
ptr< Program > | layerProgram, | |||
int | displayLevel = 0 , |
|||
bool | quality = true , |
|||
vec4f | color = vec4f(0, 0, 0, 0) | |||
) | [protected] |
Initializes this ForestOrthoLayer.
See ForestOrthoLayer.
vec4f proland::ForestOrthoLayer::color [private] |
Forest color.
ptr< Mesh<vec2f, unsigned int> > proland::ForestOrthoLayer::mesh [private] |
The mesh used for drawing curves.
ptr<Tesselator> proland::ForestOrthoLayer::tess [private] |
The tesselator used for drawing areas.