24 #ifndef __OSGHEIGHTFIELD_H
25 #define __OSGHEIGHTFIELD_H
58 static osg::HeightField*
loadFromPPM(
const std::string& filename,
double height,
static double coding(CodingMode mode, const unsigned char *data)
return the height using the given coding mode. The data pointer points to RGB data point ...
Definition: osgheightfield.cpp:124
static 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...
Definition: osgheightfield.cpp:141
virtual void setMatrix(const osg::Matrix &matrix)
Sets the transformation matrix of this object (position and orientation)
Definition: osgheightfield.cpp:88
Matrixd Matrix
Definition: osgforwarddecl.h:47
Interface class for graphic primitives like spheres, boxes, and meshes, which can be drawn by OSG...
Definition: osgprimitive.h:62
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
Definition: osgheightfield.h:44
osg::HeightField * field
Definition: osgheightfield.h:64
float y_size
Definition: osgheightfield.h:66
OsgHandle osgHandle
Definition: osgprimitive.h:107
Quality
Definition: osgprimitive.h:64
Graphical HeightField.
Definition: osgheightfield.h:36
Definition: osgheightfield.h:44
virtual const osg::HeightField * getHeightField() const
Definition: osgheightfield.h:53
virtual void init(const OsgHandle &osgHandle, Quality quality=Middle)
Initialisation of the primitive.
Definition: osgheightfield.cpp:97
Definition: osgheightfield.h:44
Definition: osgprimitive.h:64
OSGHeightField(osg::HeightField *heightfield, float x_size, float y_size)
Definition: osgheightfield.cpp:58
float x_size
Definition: osgheightfield.h:65
CodingMode
height coding using in the read in bitmap.
Definition: osgheightfield.h:44