Classes | Functions

Wavepacket Heightfield Library
[Geometry Libraries]


This library provides basic heightfield support. More...

Collaboration diagram for Wavepacket Heightfield Library:

Classes

class  hfield::Heightfield
 A logical heightfield. More...

Functions

virtual void hfield::Heightfield::dump (const char *txt) const =0 throw ()
virtual int hfield::Heightfield::getWidth (void) const =0 throw ()
virtual int hfield::Heightfield::getLength (void) const =0 throw ()
virtual float hfield::Heightfield::getXZScale (void) const =0 throw ()
virtual float hfield::Heightfield::getYScale (void) const =0 throw ()
virtual short hfield::Heightfield::getMinHeight (void) const =0 throw ()
virtual short hfield::Heightfield::getMaxHeight (void) const =0 throw ()
virtual const short * hfield::Heightfield::getHeightArray (void) const =0 throw ()
 returns raw height values, NOT multipled by yScale yet
virtual smart_ptr
< nstream::Manager
hfield::Heightfield::getStreamManager (void)=0 throw ()
virtual const char * hfield::Heightfield::getHeightfieldPath (void) const =0 throw ()
virtual const char * hfield::Heightfield::getTexturePath (void) const =0 throw ()
virtual float hfield::Heightfield::getHeight (float x, float z) const =0 throw ()
 returns true height values, already multiplied by yScale
static smart_ptr< Heightfield > hfield::Heightfield::create (nstream::Stream *stream)
 Create a heightfield from a named stream.

Detailed Description


This library provides basic heightfield support.

This is for modeling terrains logically on the client and server.


NOTE: this library does NOT support rendering! It is just a logical heightfield. Other libraries (such as Terrain Renderer) know how to render one of these. The purpose of this library is to be useful on the server (no rendering) and client.


Function Documentation

virtual void hfield::Heightfield::dump ( const char *  txt  )  const throw () [pure virtual, inherited]
virtual int hfield::Heightfield::getWidth ( void   )  const throw () [pure virtual, inherited]
virtual int hfield::Heightfield::getLength ( void   )  const throw () [pure virtual, inherited]
virtual float hfield::Heightfield::getXZScale ( void   )  const throw () [pure virtual, inherited]
virtual float hfield::Heightfield::getYScale ( void   )  const throw () [pure virtual, inherited]
virtual short hfield::Heightfield::getMinHeight ( void   )  const throw () [pure virtual, inherited]
virtual short hfield::Heightfield::getMaxHeight ( void   )  const throw () [pure virtual, inherited]
virtual const short* hfield::Heightfield::getHeightArray ( void   )  const throw () [pure virtual, inherited]

returns raw height values, NOT multipled by yScale yet

virtual smart_ptr<nstream::Manager> hfield::Heightfield::getStreamManager ( void   )  throw () [pure virtual, inherited]
virtual const char* hfield::Heightfield::getHeightfieldPath ( void   )  const throw () [pure virtual, inherited]
virtual const char* hfield::Heightfield::getTexturePath ( void   )  const throw () [pure virtual, inherited]
virtual float hfield::Heightfield::getHeight ( float  x,
float  z 
) const throw () [pure virtual, inherited]

returns true height values, already multiplied by yScale

smart_ptr< Heightfield > hfield::Heightfield::create ( nstream::Stream stream  )  [static, inherited]

Create a heightfield from a named stream.

See the Wavepacket named stream library for the nstream interface and usage: http://wavepacket-lib.sourceforge.net/

Definition at line 374 of file heightfield.cpp.