32 #ifndef EdgeRenderer_INCLUDE_ONCE 33 #define EdgeRenderer_INCLUDE_ONCE 59 class WFInfo:
public Object 62 WFInfo(): mColor( vl::black ) {}
69 EdgeRenderer(): mLineWidth(1.0f), mPolygonOffsetFactor(1.0f), mPolygonOffsetUnits(1.0f), mCreaseAngle(44.0f), mShowHiddenLines(true), mShowCreases(true), mSmoothLines(true)
71 VL_DEBUG_SET_OBJECT_NAME()
77 WFInfo* declareActor(
Actor* act,
const fvec4& color);
79 WFInfo* declareActor(
Actor* act);
131 void renderSolids(
Camera* camera, real frame_clock);
132 void renderLines(
Camera* camera);
Associates a Renderable object to an Effect and Transform.
void setPolygonOffsetFactor(float factor)
Defines the factor parameter used to render the lines over the polygons. See also http://www...
float creaseAngle() const
The minimum angle (in degrees) considered to generate crease-edges (default is 44 degrees)...
The Renderer class executes the actual rendering on the given RenderQueue.
The EdgeRenderer class implements a special Renderer that automatically extracts and renders the edge...
std::map< ref< Actor >, ref< WFInfo > > mVisibleActors
std::map< ref< Actor >, ref< WFInfo > > mActorCache
float lineWidth() const
Defines the width of the rendered edges.
float polygonOffsetFactor() const
Defines the factor parameter used to render the lines over the polygons. See also http://www...
bool showCreases() const
If set to true shows not only the edges that define the silhouette of an object but also the crease e...
float polygonOffsetUnits() const
Defines the units parameter used to render the lines over the polygons. See also http://www.opengl.org/sdk/docs/man/xhtml/glPolygonOffset.xml for more information.
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
void setDefaultLineColor(const fvec4 &c)
Defines the default color of the rendered edges. You can also define a per-Actor color using the decl...
Visualization Library main namespace.
void setLineWidth(float width)
Defines the width of the rendered edges.
bool smoothLines() const
If set to true the lines will be rendered using antialiasing.
void setPolygonOffsetUnits(float units)
Defines the units parameter used to render the lines over the polygons. See also http://www.opengl.org/sdk/docs/man/xhtml/glPolygonOffset.xml for more information.
const fvec4 & defaultLineColor() const
Defines the default color of the rendered edges. You can also define a per-Actor color using the decl...
The base class for all the reference counted objects.
void setCreaseAngle(float degrees)
The minimum angle (in degrees) considered to generate crease-edges (default is 44 degrees)...
void setShowCreases(bool show)
If set to true shows not only the edges that define the silhouette of an object but also the crease e...
void setShowHiddenLines(bool show)
If set to true shows also the hidden lines with a dashed pattern.
bool showHiddenLines() const
If set to true shows also the hidden lines with a dashed pattern.
#define VLGRAPHICS_EXPORT
The RenderQueue class collects a list of RenderToken objects to be sorted and rendered.
float mPolygonOffsetFactor
void clearCache()
Clears the cache containing the Actor and edge information.
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 ...
void setActorDirty(Actor *actor)
Removes all the edge/rendering information relative to the specified Actor from the cache...
void setSmoothLines(bool smooth)
If set to true the lines will be rendered using antialiasing.
float mPolygonOffsetUnits