#include <osgheightfield.h>
Inherits OSGPrimitive.
Inheritance diagram for OSGHeightField:


Public Types | |
| enum | CodingMode { Red, Sum, LowMidHigh } |
| height coding using in the read in bitmap. More... | |
Public Member Functions | |
| OSGHeightField (osg::HeightField *heightfield, float x_size, float y_size) | |
| OSGHeightField (const std::string &filename, float x_size, float y_size, float height) | |
| virtual void | setMatrix (const osg::Matrix &matrix) |
| Sets the transformation matrix of this object (position and orientation). | |
| virtual void | init (const OsgHandle &osgHandle, Quality quality=Middle) |
| Initialisation of the primitive. | |
| virtual const osg::HeightField * | getHeightField () const |
Static Public Member Functions | |
| osg::HeightField * | loadFromPPM (const std::string &filename, double height, CodingMode codingMode=Red) |
| loads an ppm image and returns the height field using the given coding and the height (maximal height of the heightfield) | |
| double | coding (CodingMode mode, const unsigned char *data) |
| return the height using the given coding mode. The data pointer points to RGB data point | |
Protected Attributes | |
| osg::HeightField * | field |
| float | x_size |
| float | y_size |
|
|
height coding using in the read in bitmap.
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
return the height using the given coding mode. The data pointer points to RGB data point
|
|
|
|
|
||||||||||||
|
Initialisation of the primitive. Must in order to place the object into the scene. This function should be overloaded Implements OSGPrimitive.
|
|
||||||||||||||||
|
loads an ppm image and returns the height field using the given coding and the height (maximal height of the heightfield)
|
|
|
Sets the transformation matrix of this object (position and orientation).
Reimplemented from OSGPrimitive.
|
|
|
|
|
|
|
|
|
|
1.3.8