14#ifndef OSGSIM_IMPOSTOR
15#define OSGSIM_IMPOSTOR 1
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Vec3f Vec3
Definition Vec3:21
BoundingSphered BoundingSphere
Definition BoundingSphere:308
The osgSim library is a NodeKit that extends the core scene graph to support nodes and drawables that...
Definition BlinkSequence:27
Definition buffered_value:79
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
LOD - Level Of Detail group node which allows switching between children depending on distance from e...
Definition LOD:36
LOD()
Default constructor The default constructor sets.
const BoundingSphere & getBound() const
Definition Node:425
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
virtual void traverse(osg::NodeVisitor &nv)
Traverse downwards : calls children's accept method with NodeVisitor.
osg::buffered_object< ImpostorSpriteList > _impostorSpriteListBuffer
Definition Impostor:111
const ImpostorSpriteList & getImpostorSpriteList(unsigned int contexID) const
Get a const list of ImpostorSprites attached to this const Impostor.
Definition Impostor:103
ImpostorSprite * findBestImpostorSprite(unsigned int contextID, const osg::Vec3 &currLocalEyePoint) const
Find the ImposterSprite which fits the current eye point best.
virtual ~Impostor()
Definition Impostor:109
Impostor(const Impostor &es, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Definition Impostor:69
ImpostorSprite * createImpostorSprite(osgUtil::CullVisitor *cv)
ImpostorSpriteList & getImpostorSpriteList(unsigned int contexID)
Get the list of ImpostorSprites attached to this Impostor.
Definition Impostor:100
float getImpostorThreshold() const
Definition Impostor:86
void setImpostorThreshold(float distance)
Set the Impostor threshold distance.
Definition Impostor:83
void setImpostorThresholdToBound(float ratio=1.0f)
Set the Impostor threshold distance relative to the node's bounding sphere's radius.
Definition Impostor:91
std::vector< osg::ref_ptr< ImpostorSprite > > ImpostorSpriteList
Definition Impostor:77
META_Node(osgSim, Impostor)
float _impostorThreshold
Definition Impostor:115
void addImpostorSprite(unsigned int contextID, ImpostorSprite *is)
Add an ImpostorSprite to the Impostor.
virtual osg::BoundingSphere computeBound() const
Compute the bounding sphere around Node's geometry or children.
An ImposterSprite is a textured quad which is rendered in place of 3D geometry.
Definition ImpostorSprite:38
Basic NodeVisitor implementation for rendering a scene.
Definition CullVisitor:49
#define OSGSIM_EXPORT
Definition Export:38