32 #ifndef SlicedVolume_INCLUDE_ONCE 33 #define SlicedVolume_INCLUDE_ONCE 50 void onActorRenderStarted(
Actor* actor, real frame_clock,
const Camera* cam,
Renderable* renderable,
const Shader* shader,
int pass);
55 void bindActor(
Actor*);
75 void setBox(
const AABB& box);
87 void generateTextureCoordinates(
const ivec3& size);
91 void generateTextureCoordinates(
const ivec3& img_size,
const ivec3& min_corner,
const ivec3& max_corner);
Associates a Renderable object to an Effect and Transform.
Geometry * geometry()
Returns the Geometry associated to a SlicedVolume and its bound Actor.
void setSliceCount(int count)
Defines the number of slices used to render the volume: more slices generate a better (and slower) re...
Actor * actor()
Returns the currently bound actor.
const Geometry * geometry() const
Returns the Geometry associated to a SlicedVolume and its bound Actor.
ref< Geometry > mGeometry
int sliceCount() const
Returns the number of slices used to render the volume.
A ActorEventCallback used to render a volume using viewport aligned slices.
#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.
const fvec3 * texCoords() const
Returns the texture coordinates assigned to each of the 8 box corners of the volume.
The AABB class implements an axis-aligned bounding box using vl::real precision.
An abstract class that represents all the objects that can be rendered.
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.
Represents a virtual camera defining, among other things, the point of view from which scenes can be ...
const AABB & box() const
The dimensions of the box enclosing the volume.
fvec3 * texCoords()
Returns the texture coordinates assigned to each of the 8 box corners of the volume.
void onActorDelete(Actor *)
Event notifying that an Actor is being deleted.
const Actor * actor() const
Returns the currently bound actor.