openscenegraph
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
osgSim::ImpostorSprite Class Reference
Inheritance diagram for osgSim::ImpostorSprite:
osg::Drawable osg::Node osg::Object osg::Referenced

Public Member Functions

 ImpostorSprite ()
 
virtual osg::Object * cloneType () const
 
virtual osg::Object * clone (const osg::CopyOp &) const
 
virtual bool isSameKindAs (const osg::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 osg::Vec3 &v)
 
const osg::Vec3 & getStoredLocalEyePoint () const
 
void setLastFrameUsed (unsigned int frameNumber)
 
unsigned int getLastFrameUsed () const
 
osg::Vec3 * getCoords ()
 
const osg::Vec3 * getCoords () const
 
osg::Vec2 * getTexCoords ()
 
const osg::Vec2 * getTexCoords () const
 
osg::Vec3 * getControlCoords ()
 
const osg::Vec3 * getControlCoords () const
 
float calcPixelError (const osg::Matrix &MVPW) const
 
void setTexture (osg::Texture2D *tex, int s, int t)
 
osg::Texture2D * getTexture ()
 
const osg::Texture2D * getTexture () const
 
int s () const
 
int t () const
 
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 
virtual bool supports (const Drawable::AttributeFunctor &) const
 
virtual void accept (Drawable::AttributeFunctor &af)
 
virtual bool supports (const Drawable::ConstAttributeFunctor &) const
 
virtual void accept (Drawable::ConstAttributeFunctor &af) const
 
virtual bool supports (const osg::PrimitiveFunctor &) const
 
virtual void accept (osg::PrimitiveFunctor &pf) const
 
virtual osg::BoundingBox computeBoundingBox () const
 
void setCamera (osg::Camera *camera)
 
osg::Camera * getCamera ()
 
const osg::Camera * getCamera () const
 
- Public Member Functions inherited from osg::Drawable
 Drawable ()
 
 Drawable (const Drawable &drawable, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
 META_Node (osg, Drawable)
 
virtual Drawable * asDrawable ()
 
virtual const Drawable * asDrawable () const
 
virtual void computeDataVariance ()
 
MatrixList getWorldMatrices (const osg::Node *haltTraversalAtNode=0) const
 
void setInitialBound (const osg::BoundingBox &bbox)
 
const BoundingBox & getInitialBound () const
 
const BoundingSphere & getBound () const
 
const BoundingBox & getBoundingBox () const
 
virtual BoundingSphere computeBound () const
 
void setComputeBoundingBoxCallback (ComputeBoundingBoxCallback *callback)
 
ComputeBoundingBoxCallback * getComputeBoundingBoxCallback ()
 
const ComputeBoundingBoxCallback * getComputeBoundingBoxCallback () const
 
void setShape (Shape *shape)
 
template<class T >
void setShape (const ref_ptr< T > &shape)
 
Shape * getShape ()
 
const Shape * getShape () const
 
void setSupportsDisplayList (bool flag)
 
bool getSupportsDisplayList () const
 
void setUseDisplayList (bool flag)
 
bool getUseDisplayList () const
 
GLuint & getDisplayList (unsigned int contextID) const
 
virtual void setUseVertexBufferObjects (bool flag)
 
bool getUseVertexBufferObjects () const
 
virtual void dirtyDisplayList ()
 
virtual unsigned int getGLObjectSizeHint () const
 
void draw (RenderInfo &renderInfo) const
 
virtual void compileGLObjects (RenderInfo &renderInfo) const
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
virtual void resizeGLObjectBuffers (unsigned int maxSize)
 
virtual void releaseGLObjects (State *state=0) const
 
virtual void setDrawCallback (DrawCallback *dc)
 
DrawCallback * getDrawCallback ()
 
const DrawCallback * getDrawCallback () const
 
virtual bool supports (const AttributeFunctor &) const
 
virtual void accept (AttributeFunctor &)
 
virtual bool supports (const ConstAttributeFunctor &) const
 
virtual void accept (ConstAttributeFunctor &) const
 
virtual bool supports (const PrimitiveIndexFunctor &) const
 
virtual void accept (PrimitiveIndexFunctor &) const
 
- Public Member Functions inherited from osg::Node
 Node ()
 
 Node (const Node &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual Node * asNode ()
 
virtual const Node * asNode () const
 
virtual Geometry * asGeometry ()
 
virtual const Geometry * asGeometry () const
 
virtual Group * asGroup ()
 
virtual const Group * asGroup () const
 
virtual Transform * asTransform ()
 
virtual const Transform * asTransform () const
 
virtual Camera * asCamera ()
 
virtual const Camera * asCamera () const
 
virtual Switch * asSwitch ()
 
virtual const Switch * asSwitch () const
 
virtual Geode * asGeode ()
 
virtual const Geode * asGeode () const
 
virtual osgTerrain::Terrain * asTerrain ()
 
virtual const osgTerrain::Terrain * asTerrain () const
 
virtual void accept (NodeVisitor &nv)
 
virtual void ascend (NodeVisitor &nv)
 
virtual void traverse (NodeVisitor &)
 
const ParentList & getParents () const
 
ParentList getParents ()
 
Group * getParent (unsigned int i)
 
const Group * getParent (unsigned int i) const
 
unsigned int getNumParents () const
 
NodePathList getParentalNodePaths (osg::Node *haltTraversalAtNode=0) const
 
MatrixList getWorldMatrices (const osg::Node *haltTraversalAtNode=0) const
 
void setUpdateCallback (Callback *nc)
 
template<class T >
void setUpdateCallback (const ref_ptr< T > &nc)
 
Callback * getUpdateCallback ()
 
const Callback * getUpdateCallback () const
 
void addUpdateCallback (Callback *nc)
 
template<class T >
void addUpdateCallback (const ref_ptr< T > &nc)
 
void removeUpdateCallback (Callback *nc)
 
template<class T >
void removeUpdateCallback (const ref_ptr< T > &nc)
 
unsigned int getNumChildrenRequiringUpdateTraversal () const
 
void setEventCallback (Callback *nc)
 
template<class T >
void setEventCallback (const ref_ptr< T > &nc)
 
Callback * getEventCallback ()
 
const Callback * getEventCallback () const
 
void addEventCallback (Callback *nc)
 
template<class T >
void addEventCallback (const ref_ptr< T > &nc)
 
void removeEventCallback (Callback *nc)
 
template<class T >
void removeEventCallback (const ref_ptr< T > &nc)
 
unsigned int getNumChildrenRequiringEventTraversal () const
 
void setCullCallback (Callback *nc)
 
template<class T >
void setCullCallback (const ref_ptr< T > &nc)
 
Callback * getCullCallback ()
 
const Callback * getCullCallback () const
 
void addCullCallback (Callback *nc)
 
template<class T >
void addCullCallback (const ref_ptr< T > &nc)
 
void removeCullCallback (Callback *nc)
 
template<class T >
void removeCullCallback (const ref_ptr< T > &nc)
 
void setCullingActive (bool active)
 
bool getCullingActive () const
 
unsigned int getNumChildrenWithCullingDisabled () const
 
bool isCullingActive () const
 
unsigned int getNumChildrenWithOccluderNodes () const
 
bool containsOccluderNodes () const
 
void setNodeMask (NodeMask nm)
 
NodeMask getNodeMask () const
 
void setStateSet (osg::StateSet *stateset)
 
template<class T >
void setStateSet (const osg::ref_ptr< T > &stateset)
 
osg::StateSet * getOrCreateStateSet ()
 
osg::StateSet * getStateSet ()
 
const osg::StateSet * getStateSet () const
 
void setDescriptions (const DescriptionList &descriptions)
 
DescriptionList & getDescriptions ()
 
const DescriptionList & getDescriptions () const
 
const std::string & getDescription (unsigned int i) const
 
std::string & getDescription (unsigned int i)
 
unsigned int getNumDescriptions () const
 
void addDescription (const std::string &desc)
 
void setInitialBound (const osg::BoundingSphere &bsphere)
 
const BoundingSphere & getInitialBound () const
 
void dirtyBound ()
 
const BoundingSphere & getBound () const
 
void setComputeBoundingSphereCallback (ComputeBoundingSphereCallback *callback)
 
template<class T >
void setComputeBoundingSphereCallback (const ref_ptr< T > &callback)
 
ComputeBoundingSphereCallback * getComputeBoundingSphereCallback ()
 
const ComputeBoundingSphereCallback * getComputeBoundingSphereCallback () const
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
std::string getCompoundClassName () const
 
virtual NodeVisitor * asNodeVisitor ()
 
virtual const NodeVisitor * asNodeVisitor () const
 
virtual StateAttribute * asStateAttribute ()
 
virtual const StateAttribute * asStateAttribute () const
 
virtual Uniform * asUniform ()
 
virtual const Uniform * asUniform () const
 
virtual void setName (const std::string &name)
 
void setName (const char *name)
 
const std::string & getName () const
 
void setDataVariance (DataVariance dv)
 
DataVariance getDataVariance () const
 
void setUserDataContainer (osg::UserDataContainer *udc)
 
template<class T >
void setUserDataContainer (const ref_ptr< T > &udc)
 
osg::UserDataContainer * getUserDataContainer ()
 
const osg::UserDataContainer * getUserDataContainer () const
 
osg::UserDataContainer * getOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
template<class T >
void setUserData (const ref_ptr< T > &ud)
 
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)
 
template<typename T >
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject 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
 

Public Attributes

osg::Vec4 _color
 

Protected Member Functions

 ImpostorSprite (const ImpostorSprite &)
 
ImpostorSprite & operator= (const ImpostorSprite &)
 
virtual ~ImpostorSprite ()
 
- Protected Member Functions inherited from osg::Drawable
Drawable & operator= (const Drawable &)
 
virtual ~Drawable ()
 
void setBound (const BoundingBox &bb) const
 
- Protected Member Functions inherited from osg::Node
virtual ~Node ()
 
void addParent (osg::Group *parent)
 
void removeParent (osg::Group *parent)
 
void setNumChildrenRequiringUpdateTraversal (unsigned int num)
 
void setNumChildrenRequiringEventTraversal (unsigned int num)
 
void setNumChildrenWithCullingDisabled (unsigned int num)
 
void setNumChildrenWithOccluderNodes (unsigned int num)
 
- 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

Impostor * _parent
 
osg::ref_ptr< osg::Camera > _camera
 
ImpostorSpriteManager * _ism
 
ImpostorSprite * _previous
 
ImpostorSprite * _next
 
unsigned int _lastFrameUsed
 
osg::Vec3 _storedLocalEyePoint
 
osg::Vec3 _coords [4]
 
osg::Vec2 _texcoords [4]
 
osg::Vec3 _controlcoords [4]
 
osg::Texture2D * _texture
 
int _s
 
int _t
 
- Protected Attributes inherited from osg::Drawable
BoundingBox _initialBound
 
ref_ptr< ComputeBoundingBoxCallback > _computeBoundCallback
 
BoundingBox _boundingBox
 
bool _boundingBoxComputed
 
ref_ptr< Shape > _shape
 
bool _supportsDisplayList
 
bool _useDisplayList
 
bool _supportsVertexBufferObjects
 
bool _useVertexBufferObjects
 
GLObjectList _globjList
 
ref_ptr< UpdateCallback > _drawableUpdateCallback
 
ref_ptr< EventCallback > _drawableEventCallback
 
ref_ptr< CullCallback > _drawableCullCallback
 
ref_ptr< DrawCallback > _drawCallback
 
- Protected Attributes inherited from osg::Node
BoundingSphere _initialBound
 
ref_ptr< ComputeBoundingSphereCallback > _computeBoundCallback
 
BoundingSphere _boundingSphere
 
bool _boundingSphereComputed
 
ParentList _parents
 
ref_ptr< Callback > _updateCallback
 
unsigned int _numChildrenRequiringUpdateTraversal
 
ref_ptr< Callback > _eventCallback
 
unsigned int _numChildrenRequiringEventTraversal
 
ref_ptr< Callback > _cullCallback
 
bool _cullingActive
 
unsigned int _numChildrenWithCullingDisabled
 
unsigned int _numChildrenWithOccluderNodes
 
NodeMask _nodeMask
 
ref_ptr< StateSet > _stateset
 
- 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
 

Friends

class osgSim::ImpostorSpriteManager
 

Additional Inherited Members

- Public Types inherited from osg::Drawable
enum  AttributeTypes {
  VERTICES = 0, WEIGHTS = 1, NORMALS = 2, COLORS = 3,
  SECONDARY_COLORS = 4, FOG_COORDS = 5, ATTRIBUTE_6 = 6, ATTRIBUTE_7 = 7,
  TEXTURE_COORDS = 8, TEXTURE_COORDS_0 = TEXTURE_COORDS, TEXTURE_COORDS_1 = TEXTURE_COORDS_0+1, TEXTURE_COORDS_2 = TEXTURE_COORDS_0+2,
  TEXTURE_COORDS_3 = TEXTURE_COORDS_0+3, TEXTURE_COORDS_4 = TEXTURE_COORDS_0+4, TEXTURE_COORDS_5 = TEXTURE_COORDS_0+5, TEXTURE_COORDS_6 = TEXTURE_COORDS_0+6,
  TEXTURE_COORDS_7 = TEXTURE_COORDS_0+7
}
 
typedef unsigned int AttributeType
 
- Public Types inherited from osg::Node
typedef std::vector< Group * > ParentList
 
typedef unsigned int NodeMask
 
typedef std::vector< std::string > DescriptionList
 
- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 
- Static Public Member Functions inherited from osg::Drawable
static GLuint generateDisplayList (unsigned int contextID, unsigned int sizeHint=0)
 
static void setMinimumNumberOfDisplayListsToRetainInCache (unsigned int minimum)
 
static unsigned int getMinimumNumberOfDisplayListsToRetainInCache ()
 
static void deleteDisplayList (unsigned int contextID, GLuint globj, unsigned int sizeHint=0)
 
static void flushAllDeletedDisplayLists (unsigned int contextID)
 
static void discardAllDeletedDisplayLists (unsigned int contextID)
 
static void flushDeletedDisplayLists (unsigned int contextID, double &availableTime)
 
- 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 ()
 
- Static Public Attributes inherited from osg::Drawable
static unsigned int s_numberDrawablesReusedLastInLastFrame
 
static unsigned int s_numberNewDrawablesInLastFrame
 
static unsigned int s_numberDeletedDrawablesInLastFrame
 
- Protected Types inherited from osg::Drawable
typedef osg::buffered_value< GLuint > GLObjectList
 

Detailed Description

An ImposterSprite is a textured quad which is rendered in place of 3D geometry. The ImposterSprite is generated by rendering the original 3D geometry to a texture as an image cache. The ImpostorSprite is automatically generated by the osgUtil::CullVisitor so it not necessary to deal with it directly.

Constructor & Destructor Documentation

◆ ImpostorSprite() [1/2]

osgSim::ImpostorSprite::ImpostorSprite ( )

◆ ImpostorSprite() [2/2]

osgSim::ImpostorSprite::ImpostorSprite ( const ImpostorSprite &  )
protected

◆ ~ImpostorSprite()

virtual osgSim::ImpostorSprite::~ImpostorSprite ( )
protectedvirtual

Member Function Documentation

◆ accept() [1/3]

virtual void osgSim::ImpostorSprite::accept ( Drawable::AttributeFunctor &  af)
virtual

Accept an Drawable::AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has.

◆ accept() [2/3]

virtual void osgSim::ImpostorSprite::accept ( Drawable::ConstAttributeFunctor &  af) const
virtual

Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has.

◆ accept() [3/3]

virtual void osgSim::ImpostorSprite::accept ( osg::PrimitiveFunctor &  pf) const
virtual

Accept a PrimtiveFunctor and call its methods to tell it about the internal primitives that this Drawable has.

Reimplemented from osg::Drawable.

◆ calcPixelError()

float osgSim::ImpostorSprite::calcPixelError ( const osg::Matrix &  MVPW) const

Calculate the pixel error value for passing in the ModelViewProjectionWindow transform, which transform local coords into screen space.

◆ className()

virtual const char* osgSim::ImpostorSprite::className ( ) const
inlinevirtual

return the name of the node's class type.

Reimplemented from osg::Node.

◆ clone()

virtual osg::Object* osgSim::ImpostorSprite::clone ( const osg::CopyOp &  ) const
inlinevirtual

Clone on ImpostorSprite just returns a clone of type, since it is not appropriate to share data of an ImpostorSprite.

Reimplemented from osg::Node.

◆ cloneType()

virtual osg::Object* osgSim::ImpostorSprite::cloneType ( ) const
inlinevirtual

Clone an object of the same type as an ImpostorSprite.

Reimplemented from osg::Node.

◆ computeBoundingBox()

virtual osg::BoundingBox osgSim::ImpostorSprite::computeBoundingBox ( ) const
virtual

Compute the bounding box around Drawables's geometry.

Reimplemented from osg::Drawable.

◆ drawImplementation()

virtual void osgSim::ImpostorSprite::drawImplementation ( osg::RenderInfo &  renderInfo) const
virtual

Draw ImpostorSprite directly.

Reimplemented from osg::Drawable.

◆ getCamera() [1/2]

osg::Camera* osgSim::ImpostorSprite::getCamera ( )
inline

Get the camera node to use for pre rendering the impostor sprite's texture.

◆ getCamera() [2/2]

const osg::Camera* osgSim::ImpostorSprite::getCamera ( ) const
inline

Get the const camera node to use for pre rendering the impostor sprite's texture.

◆ getControlCoords() [1/2]

osg::Vec3* osgSim::ImpostorSprite::getControlCoords ( )
inline

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.

◆ getControlCoords() [2/2]

const osg::Vec3* osgSim::ImpostorSprite::getControlCoords ( ) const
inline

Get the const control coordinates of the corners of the quad.

◆ getCoords() [1/2]

osg::Vec3* osgSim::ImpostorSprite::getCoords ( )
inline

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.

◆ getCoords() [2/2]

const osg::Vec3* osgSim::ImpostorSprite::getCoords ( ) const
inline

Get the const coordinates of the corners of the quad.

◆ getLastFrameUsed()

unsigned int osgSim::ImpostorSprite::getLastFrameUsed ( ) const
inline

Get the frame number for when the ImpostorSprite was last used in rendering.

◆ getParent() [1/2]

Impostor* osgSim::ImpostorSprite::getParent ( )
inline

Get the parent, which is an Impostor.

◆ getParent() [2/2]

const Impostor* osgSim::ImpostorSprite::getParent ( ) const
inline

Get the const parent, which is an Impostor.

◆ getStoredLocalEyePoint()

const osg::Vec3& osgSim::ImpostorSprite::getStoredLocalEyePoint ( ) const
inline

Get the eye point for when the ImpostorSprite was snapped.

◆ getTexCoords() [1/2]

osg::Vec2* osgSim::ImpostorSprite::getTexCoords ( )
inline

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.

◆ getTexCoords() [2/2]

const osg::Vec2* osgSim::ImpostorSprite::getTexCoords ( ) const
inline

Get the const texture coordinates of the corners of the quad.

◆ getTexture() [1/2]

osg::Texture2D* osgSim::ImpostorSprite::getTexture ( )
inline

◆ getTexture() [2/2]

const osg::Texture2D* osgSim::ImpostorSprite::getTexture ( ) const
inline

◆ isSameKindAs()

virtual bool osgSim::ImpostorSprite::isSameKindAs ( const osg::Object *  obj) const
inlinevirtual

return true if this and obj are of the same kind of object.

Reimplemented from osg::Node.

◆ libraryName()

virtual const char* osgSim::ImpostorSprite::libraryName ( ) const
inlinevirtual

return the name of the node's library.

Reimplemented from osg::Node.

◆ operator=()

ImpostorSprite& osgSim::ImpostorSprite::operator= ( const ImpostorSprite &  )
inlineprotected

◆ s()

int osgSim::ImpostorSprite::s ( ) const
inline

◆ setCamera()

void osgSim::ImpostorSprite::setCamera ( osg::Camera *  camera)
inline

Set the camera node to use for pre rendering the impostor sprite's texture.

◆ setLastFrameUsed()

void osgSim::ImpostorSprite::setLastFrameUsed ( unsigned int  frameNumber)
inline

Set the frame number for when the ImpostorSprite was last used in rendering.

◆ setParent()

void osgSim::ImpostorSprite::setParent ( Impostor *  parent)
inline

Set the parent, which must be an Impostor. Unlike conventional Drawables, ImpostorSprites can only ever have one parent.

◆ setStoredLocalEyePoint()

void osgSim::ImpostorSprite::setStoredLocalEyePoint ( const osg::Vec3 &  v)
inline

Set the eye point for when the ImpostorSprite was snapped.

◆ setTexture()

void osgSim::ImpostorSprite::setTexture ( osg::Texture2D *  tex,
int  s,
int  t 
)

◆ supports() [1/3]

virtual bool osgSim::ImpostorSprite::supports ( const Drawable::AttributeFunctor &  ) const
inlinevirtual

Return true, osg::ImpostorSprite does support accept(Drawable::AttributeFunctor&).

◆ supports() [2/3]

virtual bool osgSim::ImpostorSprite::supports ( const Drawable::ConstAttributeFunctor &  ) const
inlinevirtual

Return true, osg::ImpostorSprite does support accept(Drawable::ConstAttributeFunctor&).

◆ supports() [3/3]

virtual bool osgSim::ImpostorSprite::supports ( const osg::PrimitiveFunctor &  ) const
inlinevirtual

Return true, osg::ImpostorSprite does support accept(PrimitiveFunctor&).

Reimplemented from osg::Drawable.

◆ t()

int osgSim::ImpostorSprite::t ( ) const
inline

Friends And Related Function Documentation

◆ osgSim::ImpostorSpriteManager

friend class osgSim::ImpostorSpriteManager
friend

Member Data Documentation

◆ _camera

osg::ref_ptr<osg::Camera> osgSim::ImpostorSprite::_camera
protected

◆ _color

osg::Vec4 osgSim::ImpostorSprite::_color

◆ _controlcoords

osg::Vec3 osgSim::ImpostorSprite::_controlcoords[4]
protected

◆ _coords

osg::Vec3 osgSim::ImpostorSprite::_coords[4]
protected

◆ _ism

ImpostorSpriteManager* osgSim::ImpostorSprite::_ism
protected

◆ _lastFrameUsed

unsigned int osgSim::ImpostorSprite::_lastFrameUsed
protected

◆ _next

ImpostorSprite* osgSim::ImpostorSprite::_next
protected

◆ _parent

Impostor* osgSim::ImpostorSprite::_parent
protected

◆ _previous

ImpostorSprite* osgSim::ImpostorSprite::_previous
protected

◆ _s

int osgSim::ImpostorSprite::_s
protected

◆ _storedLocalEyePoint

osg::Vec3 osgSim::ImpostorSprite::_storedLocalEyePoint
protected

◆ _t

int osgSim::ImpostorSprite::_t
protected

◆ _texcoords

osg::Vec2 osgSim::ImpostorSprite::_texcoords[4]
protected

◆ _texture

osg::Texture2D* osgSim::ImpostorSprite::_texture
protected

The documentation for this class was generated from the following file: