32 #ifndef VolumePlot_INCLUDE_ONCE 33 #define VolumePlot_INCLUDE_ONCE 59 virtual float operator()(
float x,
float y,
float z)
const = 0;
67 void compute(
const Function& func,
float threshold);
133 void evaluateFunction(
float* scalar,
const fvec3& min_corner,
const fvec3& max_corner,
const Function& func);
Associates a Renderable object to an Effect and Transform.
const Effect * isosurfaceEffect() const
Used to get/set the rendering options (like color, material, transparency) etc. of the isosurface...
ref< Text > mTextTemplate
ref< Effect > mIsosurfaceEffect
Generates a 3D plot with labels and isosurface. The isosurface is generated using the MarchingCubes a...
Geometry * isosurfaceGeometry()
The Geometry representing the isosurface.
const fvec3 & minCorner() const
Default value: fvec3(-1,-1,-1)
A Renderable that renders text with a given Font.
ActorTree * actorTreeMulti()
The String class implements an advanced UTF16 (Unicode BMP) string manipulation engine.
const String & labelFormat() const
Sets the format of the labels.
A font to be used with a Text renderable.
void setLabelFont(Font *font)
The Font to be used for the box labels.
const Geometry * isosurfaceGeometry() const
The Geometry representing the isosurface.
ref< Actor > mIsosurfaceActor
void setPlotTransform(Transform *tr)
The transform associated to the whole plot.
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
Text * textTemplate()
A Text used to initialize the plot labels.
The Geometry class is a Renderable that implements a polygonal mesh made of polygons, lines and points.
Visualization Library main namespace.
const Transform * plotTransform() const
The transform associated to the whole plot.
Effect * boxEffect()
Used to get/set the rendering options (like color, material, transparency) etc. of the box...
ref< Transform > mPlotTransform
std::vector< ref< Actor > > mActors
A function to be used with VolumePlot.
The base class for all the reference counted objects.
Actor * isosurfaceActor()
The Actor representing the isosurface.
ivec3 mSamplingResolution
Defines the sequence of Shader objects used to render an Actor.
void setSamplingResolution(const ivec3 &size)
Default value: ivec3(64,64,64)
const Actor * isosurfaceActor() const
The Actor representing the isosurface.
const ActorTree * actorTreeMulti() const
Font * labelFont()
The Font to be used for the box labels.
const fvec3 & maxCorner() const
Default value: fvec3(+1,+1,+1)
The ref<> class is used to reference-count an Object.
void setLabelFormat(const String &format)
Sets the format of the label to be generated, es. "(%.2n %.2n %.2n)" or "<%.3n, %.3n, %.3n>".
const ivec3 & samplingResolution() const
Default value: ivec3(64,64,64)
Transform * plotTransform()
The transform associated to the whole plot.
Effect * isosurfaceEffect()
Used to get/set the rendering options (like color, material, transparency) etc. of the isosurface...
The ActorTree class implements a generic tree whose nodes contain Actors.
void setMaxCorner(const fvec3 &max_corner)
Default value: fvec3(+1,+1,+1)
const Effect * boxEffect() const
Used to get/set the rendering options (like color, material, transparency) etc. of the box...
const Text * textTemplate() const
A Text used to initialize the plot labels.
const Font * labelFont() const
The Font to be used for the box labels.
void setMinCorner(const fvec3 &min_corner)
Default value: fvec3(-1,-1,-1)
ref< Geometry > mIsosurfaceGeometry
ref< ActorTree > mActorTreeMulti