CartographyColorizator Class Reference

Utility class that allows colorization of points a height field according to their height, with an cartography look. More...

List of all members.

Public Member Functions

 CartographyColorizator (float valMin=0, float valGround=0, float valGroundI=.5f, float valMax=1)
void valsFromHF (const osg::HeightField *pHF)
osg::Vec4f operator() (float val)

Public Attributes

const osg::Vec4f colWater0
const osg::Vec4f colWater1
const osg::Vec4f colGround0
const osg::Vec4f colGround1
const osg::Vec4f colGround2

Protected Attributes

float valMin
float valGround
float valGroundI
float valMax


Detailed Description

Utility class that allows colorization of points a height field according to their height, with an cartography look.

Definition at line 233 of file Utility3D.cpp.


Constructor & Destructor Documentation

CartographyColorizator::CartographyColorizator ( float  valMin = 0,
float  valGround = 0,
float  valGroundI = .5f,
float  valMax = 1 
) [inline]

Definition at line 235 of file Utility3D.cpp.

References ASSERT, valGround, valGroundI, valMax, and valMin.


Member Function Documentation

osg::Vec4f CartographyColorizator::operator() ( float  val  )  [inline]

Definition at line 274 of file Utility3D.cpp.

References ASSERT, colGround0, colGround1, colGround2, colWater1, valGround, valGroundI, valMax, and valMin.

void CartographyColorizator::valsFromHF ( const osg::HeightField *  pHF  )  [inline]

Definition at line 250 of file Utility3D.cpp.

References ASSERT, clampl(), clampu(), valGround, valGroundI, valMax, and valMin.

Referenced by createHeightColorization().


Member Data Documentation

Definition at line 291 of file Utility3D.cpp.

Referenced by operator()().

Definition at line 292 of file Utility3D.cpp.

Referenced by operator()().

Definition at line 293 of file Utility3D.cpp.

Referenced by operator()().

Definition at line 289 of file Utility3D.cpp.

Definition at line 290 of file Utility3D.cpp.

Referenced by operator()().

Definition at line 296 of file Utility3D.cpp.

Referenced by CartographyColorizator(), operator()(), and valsFromHF().

Definition at line 296 of file Utility3D.cpp.

Referenced by CartographyColorizator(), operator()(), and valsFromHF().

float CartographyColorizator::valMax [protected]

Definition at line 296 of file Utility3D.cpp.

Referenced by CartographyColorizator(), operator()(), and valsFromHF().

float CartographyColorizator::valMin [protected]

Definition at line 296 of file Utility3D.cpp.

Referenced by CartographyColorizator(), operator()(), and valsFromHF().


The documentation for this class was generated from the following file:

Generated on Sun Jan 17 11:39:26 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9