class SG_EXPORT osg::Grid


Inheritance:


Public Methods

[more] Grid()
[more] Grid(const Grid& mesh, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
[more] META_Shape(osg, Grid)
[more]void allocateGrid(unsigned int numColumns, unsigned int numRows)
[more]void setHeight(unsigned int c, unsigned int r, float value)
[more]virtual float getHeight(unsigned int c, unsigned int r) const

Protected Fields

[more]HeightList _heights

Protected Methods

[more] ~Grid()

Protected Members

[more]typedef std::vector<float> HeightList


Inherited from HeightField:

Public Methods

ovirtual bool isSameKindAs(const Object* obj) const
ovirtual const char* libraryName() const
ovirtual const char* className() const
ovirtual void accept(osg::ShapeVisitor& sv)
ovirtual void accept(osg::ConstShapeVisitor& csv) const
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
ovirtual Vec3 getNormal(unsigned int c, unsigned int r) const
oinline void setRotation(const Quat& quat)
oinline const Quat& getRotation() const
oinline Matrix getRotationMatrix() const
oinline bool zeroRotation() const

Protected Fields

ounsigned int _columns
ounsigned int _rows
oosg::Vec3 _origin
ofloat _dx
ofloat _dy
oQuat _rotation


Inherited from Shape:

Public Methods

ovirtual Object* cloneType() const
ovirtual Object* clone(const CopyOp&) const


Inherited from Object:

Public Methods

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

Public Members

oenum DataVariance

Protected Fields

oDataVariance _dataVariance
oref_ptr<Referenced> _userData


Inherited from Referenced:

Public Methods

oinline Referenced& operator = (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 int _refCount


Documentation

o Grid()

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

o META_Shape(osg, Grid)

ovoid allocateGrid(unsigned int numColumns, unsigned int numRows)

ovoid setHeight(unsigned int c, unsigned int r, float value)

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

o ~Grid()

otypedef std::vector<float> HeightList

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++.