Billboard - a Geode which orientates its child osg::Drawable's to face the eye point.
Inheritance:
Public Methods
-
Billboard()
-
Billboard(const Billboard&, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
-
META_Node(osg, Billboard)
-
void setMode(Mode mode)
- Set the billboard rotation mode.
-
inline Mode getMode() const
- Get the billboard rotation mode.
-
void setAxis(const Vec3& axis)
- Set the axis about which all the billboard's drawable rotate.
-
inline const Vec3& getAxis() const
- Get the axis about which all the billboard's drawable rotate.
-
void setNormal(const Vec3& normal)
- Set the normal which defines the billboard's drawable front face, when unrotated.
-
inline const Vec3& getNormal() const
- Get the normal of billboard's drawable front face.
-
inline void setPos(unsigned int i, const Vec3& pos)
- Set the position of specified drawable.
-
inline const Vec3& getPos(unsigned int i) const
- Get the position of specified drawable.
-
inline PositionList& getPositionList()
- Get the PositionList from the billboard
-
inline const PositionList& getPositionList() const
- Get a const PositionList from the billboard
-
virtual bool addDrawable( Drawable* gset )
- Add Drawable to Billboard with default position(0,0,0); If gset not NULL and is not contained in Billboard then increment its reference count, and dirty the bounding box to cause it to recompute on next getBound() and return true for success.
-
virtual bool addDrawable(Drawable* gset, const Vec3& pos)
- Add Drawable to Geode at position pos.
-
virtual bool removeDrawable( Drawable* gset )
- Remove Drawable and associated position from Billboard.
-
inline bool getMatrix(Matrix& modelview, const Vec3& eye_local, const Vec3& pos_local) const
-
virtual bool computeMatrix(Matrix& modelview, const Vec3& eye_local, const Vec3& pos_local) const
Public Members
-
enum Mode
-
typedef std::vector<Vec3> PositionList
- PositionList represents a list of pivot points for each drawable
Protected Fields
-
Mode _mode
-
Vec3 _axis
-
Vec3 _normal
-
PositionList _positionList
-
int _cachedMode
-
Vec3 _side
Protected Methods
-
virtual ~Billboard()
-
virtual bool computeBound() const
-
void updateCache()
Protected Members
-
enum AxisAligned
Inherited from Geode:
Public Methods
-
virtual bool replaceDrawable( Drawable* origDraw, Drawable* newDraw )
-
inline unsigned int getNumDrawables() const
-
inline Drawable* getDrawable( unsigned int i )
-
inline const Drawable* getDrawable( unsigned int i ) const
-
inline bool containsDrawable(const Drawable* gset) const
-
inline DrawableList::iterator findDrawable(const Drawable* gset)
-
inline DrawableList::const_iterator findDrawable(const Drawable* gset) const
-
void compileDrawables(State& state)
Public Members
-
typedef std::vector< ref_ptr<Drawable> > DrawableList
Protected Fields
-
DrawableList _drawables
Documentation
Billboard - a Geode which orientates its child osg::Drawable's to face
the eye point. Typical uses are for trees, or particle explosions.
- enum Mode
- POINT_ROT_EYE
- POINT_ROT_WORLD
- AXIAL_ROT
- Billboard()
- Billboard(const Billboard&, const CopyOp& copyop=CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs shallow copy
- META_Node(osg, Billboard)
- void setMode(Mode mode)
- Set the billboard rotation mode.
- inline Mode getMode() const
- Get the billboard rotation mode.
- void setAxis(const Vec3& axis)
- Set the axis about which all the billboard's drawable rotate. Only utlized when mode==AXIAL_ROT
- inline const Vec3& getAxis() const
- Get the axis about which all the billboard's drawable rotate.
- void setNormal(const Vec3& normal)
- Set the normal which defines the billboard's drawable front face, when unrotated.
- inline const Vec3& getNormal() const
- Get the normal of billboard's drawable front face.
- inline void setPos(unsigned int i, const Vec3& pos)
- Set the position of specified drawable.
- inline const Vec3& getPos(unsigned int i) const
- Get the position of specified drawable.
- typedef std::vector<Vec3> PositionList
- PositionList represents a list of pivot points for each drawable
- inline PositionList& getPositionList()
- Get the PositionList from the billboard
- inline const PositionList& getPositionList() const
- Get a const PositionList from the billboard
- virtual bool addDrawable( Drawable* gset )
- Add Drawable to Billboard with default position(0,0,0);
If gset not NULL and is not contained in Billboard then increment its
reference count, and dirty the bounding box to cause it to recompute on
next getBound() and return true for success. Otherwise return false.
- virtual bool addDrawable(Drawable* gset, const Vec3& pos)
- Add Drawable to Geode at position pos.
If gset not NULL and is not contained in Billboard then increment its
reference count, and dirty the bounding box to cause it to recompute on
next getBound() and return true for success. Otherwise return false.
- virtual bool removeDrawable( Drawable* gset )
- Remove Drawable and associated position from Billboard.
If gset is contained in Billboard then remove it from the geoset
list and decrement its reference count, and dirty the
bounding box to cause it to recompute on next getBound() and
return true for success. If gset is not found then return false
and do not the reference count of gset is left unchanged.
- inline bool getMatrix(Matrix& modelview, const Vec3& eye_local, const Vec3& pos_local) const
- virtual bool computeMatrix(Matrix& modelview, const Vec3& eye_local, const Vec3& pos_local) const
- virtual ~Billboard()
- virtual bool computeBound() const
- enum AxisAligned
- AXIAL_ROT_X_AXIS
- AXIAL_ROT_Y_AXIS
- AXIAL_ROT_Z_AXIS
- CACHE_DIRTY
- Mode _mode
- Vec3 _axis
- Vec3 _normal
- PositionList _positionList
- int _cachedMode
- Vec3 _side
- void updateCache()
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.