proland::WaterOrthoLayer Class Reference

An OrthoGPUProducer layer to draw static rivers and lakes. More...

#include <WaterOrthoLayer.h>

Inheritance diagram for proland::WaterOrthoLayer:
proland::GraphLayer

List of all members.

Public Types

enum  riverType {
  BORDER = -2,
  OBSTACLE = -1,
  RIVER = 0,
  ISLAND = 1,
  LAKE = 2
}
 

Predefined type for rivers.

More...

Public Member Functions

 WaterOrthoLayer (ptr< GraphProducer > graphProducer, ptr< Program > layerProgram, int displayLevel=0, bool quality=true, vec4f color=vec4f(0, 0, 0, 0), bool deform=false)
 Creates a new WaterOrthoLayer.
virtual ~WaterOrthoLayer ()
 Deletes this WaterOrthoLayer.

Protected Member Functions

 WaterOrthoLayer ()
 Creates an uninitialized WaterOrthoLayer.
void init (ptr< GraphProducer > graphProducer, ptr< Program > layerProgram, int displayLevel=0, bool quality=true, vec4f color=vec4f(0, 0, 0, 0), bool deform=true)
 Initializes this WaterOrthoLayer.

Private Attributes

vec4f color
 Water color.
ptr< Mesh< vec2f, unsigned int > > mesh
 The mesh used for drawing curves.
ptr< Tesselatortess
 The tesselator used for drawing areas.

Detailed Description

An OrthoGPUProducer layer to draw static rivers and lakes.

Author:
Antoine Begault, Guillaume Piolat

Member Enumeration Documentation

Predefined type for rivers.

Used for drawing and managing rivers.

Enumerator:
BORDER 

River Banks. Curves with this type have as ancestor the curve representing the center of the river they belong to.

OBSTACLE 

Floating obstacle or islands.

RIVER 

Basic river.

ISLAND 

Represents islands when area1 != NULL.

LAKE 

Lake.


Constructor & Destructor Documentation

proland::WaterOrthoLayer::WaterOrthoLayer ( ptr< GraphProducer graphProducer,
ptr< Program >  layerProgram,
int  displayLevel = 0,
bool  quality = true,
vec4f  color = vec4f(0, 0, 0, 0),
bool  deform = false 
)

Creates a new WaterOrthoLayer.

Parameters:
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 water (default 0:0:0).
deform true if the produced tiles will be mapped on a spherical terrain.
virtual proland::WaterOrthoLayer::~WaterOrthoLayer (  )  [virtual]

Deletes this WaterOrthoLayer.

proland::WaterOrthoLayer::WaterOrthoLayer (  )  [protected]

Creates an uninitialized WaterOrthoLayer.


Member Function Documentation

void proland::WaterOrthoLayer::init ( ptr< GraphProducer graphProducer,
ptr< Program >  layerProgram,
int  displayLevel = 0,
bool  quality = true,
vec4f  color = vec4f(0, 0, 0, 0),
bool  deform = true 
) [protected]

Initializes this WaterOrthoLayer.

See WaterOrthoLayer.


Member Data Documentation

Water color.

ptr< Mesh<vec2f, unsigned int> > proland::WaterOrthoLayer::mesh [private]

The mesh used for drawing curves.

The tesselator used for drawing areas.


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