45 VL_DEBUG_SET_OBJECT_NAME()
59 for(
int i=0; i<actors.
size(); ++i)
68 real radius = real(-1.0);
69 for(
int i=0; i<actors.
size(); ++i)
Associates a Renderable object to an Effect and Transform.
const T * at(int i) const
SceneManager()
Constructor.
bool isEnabled() const
Whether an Actor should be considered for rendering, picking, scene bounding box calculation etc...
unsigned int enableMask() const
The enable mask to be used by extractVisibleActors()
const vec3 & center() const
Returns the center of the sphere.
vec3 center() const
Returns the center of the AABB.
void setBoundingBox(const AABB &bbox)
Explicitly set the scene manager's bounding sphere. See also computeBounds().
void setNull()
Sets ths AABB as null, that is, empty.
const Sphere & boundingSphere() const
Returns the bounding sphere (not guaranteed to be up to date) that contains this Actor.
unsigned int enableMask() const
The enable mask of an Actor is usually used to defines whether the actor should be rendered or not de...
bool isEnabled(Actor *a) const
Returns true if "a->enableMask() & enableMask()) != 0".
Visualization Library main namespace.
real radius() const
Returns the radius of the sphere.
void setBoundsDirty(bool dirty)
Flags a scene manager's bounding box and bounding sphere as dirty. The bounds will be recomputed usin...
const AABB & boundingBox() const
Returns the scene manager's bounding box.
The AABB class implements an axis-aligned bounding box using vl::real precision.
void setBoundingSphere(const Sphere &sphere)
Explicitly set the scene manager's bounding sphere. See also computeBounds().
void setRadius(real radius)
Sets the radius of the sphere.
const AABB & boundingBox() const
Returns the bounding box (not guaranteed to be up to date) that contains this Actor.
The Sphere class defines a sphere using a center and a radius using vl::real precision.
Defined as a simple subclass of Collection<Actor>, see Collection for more information.
virtual void extractActors(ActorCollection &list)=0
Appends all the Actors contained in the scene manager without performing frustum culling or checking ...
void computeBounds()
Computes the bounding box and bounding sphere of an Actor if boundsDirty().
virtual void computeBounds()
Computes the bounding box and bounding sphere of the scene manager and of all the Actors contained in...
bool isNull() const
Returns true if the sphere is null, ie, if radius is < 0.
void setCenter(const vec3 ¢er)
Sets the center of the sphere.