|
openscenegraph
|
Public Types | |
| typedef std::vector< float > | HeightList |
Public Types inherited from osg::Object | |
| enum | DataVariance { DYNAMIC, STATIC, UNSPECIFIED } |
Public Member Functions | |
| HeightField () | |
| HeightField (const HeightField &mesh, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
| META_Shape (osg, HeightField) | |
| void | allocate (unsigned int numColumns, unsigned int numRows) |
| unsigned int | getNumColumns () const |
| unsigned int | getNumRows () const |
| void | setOrigin (const osg::Vec3 &origin) |
| const osg::Vec3 & | getOrigin () const |
| void | setXInterval (float dx) |
| float | getXInterval () const |
| void | setYInterval (float dy) |
| float | getYInterval () const |
| osg::FloatArray * | getFloatArray () |
| const osg::FloatArray * | getFloatArray () const |
| HeightList & | getHeightList () |
| const HeightList & | getHeightList () const |
| void | setSkirtHeight (float skirtHeight) |
| float | getSkirtHeight () const |
| void | setBorderWidth (unsigned int borderWidth) |
| unsigned int | getBorderWidth () const |
| void | setRotation (const Quat &quat) |
| const Quat & | getRotation () const |
| Matrix | computeRotationMatrix () const |
| bool | zeroRotation () const |
| void | setHeight (unsigned int c, unsigned int r, float value) |
| float & | getHeight (unsigned int c, unsigned int r) |
| float | getHeight (unsigned int c, unsigned int r) const |
| Vec3 | getVertex (unsigned int c, unsigned int r) const |
| Vec3 | getNormal (unsigned int c, unsigned int r) const |
| Vec2 | getHeightDelta (unsigned int c, unsigned int r) const |
Public Member Functions inherited from osg::Shape | |
| Shape () | |
| Shape (const Shape &sa, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
| virtual Object * | cloneType () const =0 |
| virtual Object * | clone (const CopyOp &) const =0 |
| virtual bool | isSameKindAs (const Object *obj) const |
| virtual const char * | libraryName () const |
| virtual const char * | className () const |
| virtual void | accept (ShapeVisitor &)=0 |
| virtual void | accept (ConstShapeVisitor &) const =0 |
Public Member Functions inherited from osg::Object | |
| Object () | |
| Object (bool threadSafeRefUnref) | |
| Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
| virtual void | setThreadSafeRefUnref (bool threadSafe) |
| virtual void | setName (const std::string &name) |
| void | setName (const char *name) |
| const std::string & | getName () const |
| void | setDataVariance (DataVariance dv) |
| DataVariance | getDataVariance () const |
| virtual void | computeDataVariance () |
| void | setUserDataContainer (osg::UserDataContainer *udc) |
| osg::UserDataContainer * | getUserDataContainer () |
| const osg::UserDataContainer * | getUserDataContainer () const |
| osg::UserDataContainer * | getOrCreateUserDataContainer () |
| virtual void | setUserData (Referenced *obj) |
| virtual Referenced * | getUserData () |
| virtual const Referenced * | getUserData () const |
| template<typename T > | |
| bool | getUserValue (const std::string &name, T &value) const |
| template<typename T > | |
| void | setUserValue (const std::string &name, const T &value) |
| virtual void | resizeGLObjectBuffers (unsigned int) |
| virtual void | releaseGLObjects (osg::State *=0) const |
| template<typename T > | |
| BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject bool | getUserValue (const std::string &name, T &value) const |
Public Member Functions inherited from osg::Referenced | |
| Referenced () | |
| Referenced (bool threadSafeRefUnref) | |
| Referenced (const Referenced &) | |
| Referenced & | operator= (const Referenced &) |
| bool | getThreadSafeRefUnref () const |
| OpenThreads::Mutex * | getRefMutex () const |
| int | ref () const |
| int | unref () const |
| int | unref_nodelete () const |
| int | referenceCount () const |
| ObserverSet * | getObserverSet () const |
| ObserverSet * | getOrCreateObserverSet () const |
| void | addObserver (Observer *observer) const |
| void | removeObserver (Observer *observer) const |
Protected Member Functions | |
| virtual | ~HeightField () |
Protected Member Functions inherited from osg::Shape | |
| virtual | ~Shape () |
Protected Member Functions inherited from osg::Object | |
| virtual | ~Object () |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| unsigned int | _columns |
| unsigned int | _rows |
| osg::Vec3 | _origin |
| float | _dx |
| float | _dy |
| float | _skirtHeight |
| unsigned int | _borderWidth |
| Quat | _rotation |
| osg::ref_ptr< osg::FloatArray > | _heights |
Protected Attributes inherited from osg::Object | |
| std::string | _name |
| DataVariance | _dataVariance |
| osg::UserDataContainer * | _userDataContainer |
Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
| static bool | getThreadSafeReferenceCounting () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
| typedef std::vector<float> osg::HeightField::HeightList |
| osg::HeightField::HeightField | ( | ) |
| osg::HeightField::HeightField | ( | const HeightField & | mesh, |
| const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
| ) |
|
protectedvirtual |
| void osg::HeightField::allocate | ( | unsigned int | numColumns, |
| unsigned int | numRows | ||
| ) |
|
inline |
|
inline |
Get the width in number of cells in from the edge that the height field should be rendered from.
|
inline |
Get the FloatArray height data.
|
inline |
Get the const FloatArray height data.
|
inline |
|
inline |
| Vec2 osg::HeightField::getHeightDelta | ( | unsigned int | c, |
| unsigned int | r | ||
| ) | const |
|
inline |
|
inline |
| Vec3 osg::HeightField::getNormal | ( | unsigned int | c, |
| unsigned int | r | ||
| ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the height of the skirt to render around the edge of HeightField.
|
inline |
|
inline |
|
inline |
| osg::HeightField::META_Shape | ( | osg | , |
| HeightField | |||
| ) |
|
inline |
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.
|
inline |
|
inline |
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, particularly of ones with different resolutions.
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.6