class SG_EXPORT osg::HeightField


Inheritance:


Public Methods

[more] HeightField()
[more] HeightField(const HeightField& mesh, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
[more] META_Shape(osg, HeightField)
[more]void allocate(unsigned int numColumns, unsigned int numRows)
[more]void allocateGrid(unsigned int numColumns, unsigned int numRows)
[more]inline unsigned int getNumColumns() const
[more]inline unsigned int getNumRows() const
[more]inline void setOrigin(const osg::Vec3& origin)
[more]inline const osg::Vec3& getOrigin() const
[more]inline void setXInterval(float dx)
[more]inline float getXInterval() const
[more]inline void setYInterval(float dy)
[more]inline float getYInterval() const
[more]void setSkirtHeight(float skirtHeight)
Set the height of the skirt to render around the edge of HeightField.
[more]float getSkirtHeight() const
Get the height of the skirt to render around the edge of HeightField
[more]void setBorderWidth(unsigned int borderWidth)
Set the width in number of cells in from the edge that the height field should be rendered from.
[more]unsigned int getBorderWidth() const
Get the width in number of cells in from the edge that the height field should be rendered from
[more]inline void setRotation(const Quat& quat)
[more]inline const Quat& getRotation() const
[more]inline Matrix getRotationMatrix() const
[more]inline bool zeroRotation() const
[more]inline void setHeight(unsigned int c, unsigned int r, float value)
[more]inline float& getHeight(unsigned int c, unsigned int r)
[more]inline float getHeight(unsigned int c, unsigned int r) const
[more]HeightList& getHeightList()
[more]const HeightList& getHeightList() const
[more]inline Vec3 getVertex(unsigned int c, unsigned int r) const
[more]Vec3 getNormal(unsigned int c, unsigned int r) const

Protected Fields

[more]unsigned int _columns
[more]unsigned int _rows
[more]osg::Vec3 _origin
[more]float _dx
[more]float _dy
[more]float _skirtHeight
[more]unsigned int _borderWidth
[more]Quat _rotation
[more]HeightList _heights

Protected Methods

[more]virtual ~HeightField()


Inherited from Shape:

Public Methods

ovirtual Object* cloneType() const
ovirtual Object* clone(const CopyOp&) const
ovirtual bool isSameKindAs(const Object* obj) const
ovirtual const char* libraryName() const
ovirtual const char* className() const
ovirtual void accept(ShapeVisitor&)
ovirtual void accept(ConstShapeVisitor&) const


Inherited from Object:

Public Classes

oenum DataVariance

Public Methods

oinline void setDataVariance(DataVariance dv)
oinline DataVariance getDataVariance() const
oinline void setUserData(Referenced* obj)
oinline Referenced* getUserData()
oinline const Referenced* getUserData() const

Protected Fields

oDataVariance _dataVariance
oref_ptr<Referenced> _userData


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (const Referenced&)
ostatic void setDeleteHandler(DeleteHandler* handler)
ostatic DeleteHandler* getDeleteHandler()
oinline void ref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline void unref() const

Protected Fields

omutable OpenThreads::Mutex _refMutex
omutable int _refCount


Documentation

o HeightField()

o HeightField(const HeightField& mesh, const CopyOp& copyop=CopyOp::SHALLOW_COPY)

o META_Shape(osg, HeightField)

ovoid allocate(unsigned int numColumns, unsigned int numRows)

ovoid allocateGrid(unsigned int numColumns, unsigned int numRows)

oinline unsigned int getNumColumns() const

oinline unsigned int getNumRows() const

oinline void setOrigin(const osg::Vec3& origin)

oinline const osg::Vec3& getOrigin() const

oinline void setXInterval(float dx)

oinline float getXInterval() const

oinline void setYInterval(float dy)

oinline float getYInterval() const

ovoid setSkirtHeight(float skirtHeight)
Set the height of the skirt to render around the edge of HeightField. The skirt is used as a means of disguising edge boundaries between adjacent HeightField, particular of ones with different resolutions.

ofloat getSkirtHeight() const
Get the height of the skirt to render around the edge of HeightField

ovoid setBorderWidth(unsigned int borderWidth)
Set the width in number of cells in from the edge that the height field should be rendered from. This exists to allow gradient and curvature continutity to be maintained between adjacent HeightField, where the border cells will overlap adjacent HeightField.

ounsigned int getBorderWidth() const
Get the width in number of cells in from the edge that the height field should be rendered from

oinline void setRotation(const Quat& quat)

oinline const Quat& getRotation() const

oinline Matrix getRotationMatrix() const

oinline bool zeroRotation() const

oinline void setHeight(unsigned int c, unsigned int r, float value)

oinline float& getHeight(unsigned int c, unsigned int r)

oinline float getHeight(unsigned int c, unsigned int r) const

oHeightList& getHeightList()

oconst HeightList& getHeightList() const

oinline Vec3 getVertex(unsigned int c, unsigned int r) const

oVec3 getNormal(unsigned int c, unsigned int r) const

ovirtual ~HeightField()

ounsigned int _columns

ounsigned int _rows

oosg::Vec3 _origin

ofloat _dx

ofloat _dy

ofloat _skirtHeight

ounsigned int _borderWidth

oQuat _rotation

oHeightList _heights


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.