Inheritance diagram for osg::ImpostorSprite:
Public Member Functions | |
ImpostorSprite () | |
virtual Object * | cloneType () const |
virtual Object * | clone (const CopyOp &) const |
virtual bool | isSameKindAs (const Object *obj) const |
virtual const char * | libraryName () const |
virtual const char * | className () const |
void | setParent (Impostor *parent) |
Impostor * | getParent () |
const Impostor * | getParent () const |
void | setStoredLocalEyePoint (const Vec3 &v) |
const Vec3 & | getStoredLocalEyePoint () const |
void | setLastFrameUsed (int frameNumber) |
int | getLastFrameUsed () const |
Vec3 * | getCoords () |
const Vec3 * | getCoords () const |
Vec2 * | getTexCoords () |
const Vec2 * | getTexCoords () const |
Vec3 * | getControlCoords () |
const Vec3 * | getControlCoords () const |
float | calcPixelError (const Matrix &MVPW) const |
void | setTexture (Texture2D *tex, int s, int t) |
Texture2D * | getTexture () |
const Texture2D * | getTexture () const |
int | s () const |
int | t () const |
virtual void | drawImplementation (State &state) const |
virtual bool | supports (AttributeFunctor &) const |
virtual void | accept (AttributeFunctor &af) |
virtual bool | supports (ConstAttributeFunctor &) const |
virtual void | accept (ConstAttributeFunctor &af) const |
virtual bool | supports (PrimitiveFunctor &) const |
virtual void | accept (PrimitiveFunctor &pf) const |
Public Attributes | |
Vec4 | _color |
Protected Member Functions | |
ImpostorSprite (const ImpostorSprite &) | |
ImpostorSprite & | operator= (const ImpostorSprite &) |
virtual | ~ImpostorSprite () |
virtual bool | computeBound () const |
Protected Attributes | |
Impostor * | _parent |
ImpostorSpriteManager * | _ism |
ImpostorSprite * | _previous |
ImpostorSprite * | _next |
int | _lastFrameUsed |
Vec3 | _storedLocalEyePoint |
Vec3 | _coords [4] |
Vec2 | _texcoords [4] |
Vec3 | _controlcoords [4] |
Texture2D * | _texture |
int | _s |
int | _t |
Friends | |
class | osg::ImpostorSpriteManager |
|
|
|
|
|
|
|
Accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has. Reimplemented from osg::Drawable. |
|
Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. Reimplemented from osg::Drawable. |
|
Accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. Reimplemented from osg::Drawable. |
|
Calculate the pixel error value for passing in the ModelViewProjectionWindow transform, which transform local coords into screen space. |
|
return the name of the object's class type. Must be defined by derived classes. Reimplemented from osg::Drawable. |
|
Clone on ImpostorSprite just returns a clone of type, since it is not appropriate to share data of an ImpostorSprite. Implements osg::Object. |
|
Clone an object of the same type as an ImpostorSprite. Implements osg::Object. |
|
compute the bounding box of the drawable. Method must be implemented by subclasses. Reimplemented from osg::Drawable. |
|
Draw ImpostorSprite directly. Implements osg::Drawable. |
|
Get the const control coordinates of the corners of the quad. |
|
Get the control coordinates of the corners of the quad. The control coordinates are the corners of the quad projected out onto the front face of bounding box which enclosed the impostor geometry when it was pre-rendered into the impostor sprite's texture. At the point of creation/or update of the impostor sprite the control coords will lie on top of the corners of the quad in screen space - with a pixel error of zero. Once the camera moves relative to the impostor sprite the control coords will no longer lie on top of the corners of the quad in screen space - a pixel error will have accumulated. This pixel error can then be used to determine whether the impostor needs to be updated. Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left. |
|
Get the const coordinates of the corners of the quad. |
|
Get the coordinates of the corners of the quad. Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left. |
|
Get the frame number for when the ImpostorSprite was last used in rendering. |
|
Get the const parent, which is an Impostor. |
|
Get the parent, which is an Impostor. |
|
Get the eye point for when the ImpostorSprite was snapped. |
|
Get the const texture coordinates of the corners of the quad. |
|
Get the texture coordinates of the corners of the quad. Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left. |
|
|
|
|
|
Reimplemented from osg::Drawable. |
|
return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. Reimplemented from osg::Drawable. |
|
|
|
|
|
Set the frame number for when the ImpostorSprite was last used in rendering. |
|
Set the parent, which must be an Impostor. Unlike conventional Drawables, ImpostorSprites can only ever have one parent. |
|
Set the eye point for when the ImpostorSprite was snapped. |
|
|
|
Return true, osg::ImpostorSprite does support accept(PrimitiveFunctor&). Reimplemented from osg::Drawable. |
|
Return true, osg::ImpostorSprite does support accept(ConstAttributeFunctor&). Reimplemented from osg::Drawable. |
|
Return true, osg::ImpostorSprite does support accept(AttributeFunctor&). Reimplemented from osg::Drawable. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|