36 #ifndef RaycastVolume_INCLUDE_ONCE 37 #define RaycastVolume_INCLUDE_ONCE 48 void onActorRenderStarted(
Actor* actor, real frame_clock,
const Camera* cam,
Renderable* renderable,
const Shader* shader,
int pass );
53 void bindActor(
Actor* );
65 void setBox(
const AABB& box );
84 void generateTextureCoordinates(
const ivec3& img_size );
86 const std::vector< ref<Light> >&
lights()
const {
return mLights; }
87 std::vector< ref<Light> >&
lights() {
return mLights; }
Associates a Renderable object to an Effect and Transform.
ref< Geometry > mGeometry
Geometry * geometry()
Returns the Geometry associated to a RaycastVolume and its bound Actor.
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
The Geometry class is a Renderable that implements a polygonal mesh made of polygons, lines and points.
Visualization Library main namespace.
void onActorDelete(Actor *)
Event notifying that an Actor is being deleted.
std::vector< ref< Light > > mLights
const fvec3 * texCoords() const
Returns the texture coordinates assigned to each of the 8 box corners of the volume.
const Geometry * geometry() const
Returns the Geometry associated to a RaycastVolume and its bound Actor.
The AABB class implements an axis-aligned bounding box using vl::real precision.
fvec3 * texCoords()
Returns the texture coordinates assigned to each of the 8 box corners of the volume.
std::vector< ref< Light > > & lights()
An abstract class that represents all the objects that can be rendered.
fvec3 * vertCoords()
Returns the coordinates assigned to each of the 8 box corners of the volume.
ref< ArrayFloat3 > mVertCoord
const AABB & box() const
The dimensions of the box enclosing the volume.
const std::vector< ref< Light > > & lights() const
The ActorEventCallback class defines a callback object to react to Actor-related events.
Manages most of the OpenGL rendering states responsible of the final aspect of the rendered objects...
The ref<> class is used to reference-count an Object.
ref< ArrayFloat3 > mTexCoord
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
A ActorEventCallback used to render a volume using GPU raycasting.
const fvec3 * vertCoords() const
Returns the coordinates assigned to each of the 8 box corners of the volume.