Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
The EdgeUpdateCallback class updates at every frame the edges of an Actor for the purpose of edge-enhancement. More...
#include <EdgeUpdateCallback.hpp>
Public Member Functions | |
| virtual const char * | className () |
| Returns the name of the class. | |
| EdgeUpdateCallback () | |
| EdgeUpdateCallback (const std::vector< EdgeExtractor::Edge > &edge) | |
| void | setShowCreases (bool sonly) |
If true only the edges forming the silhouette of an object will be rendered. | |
| bool | showCreases () const |
If true only the edges forming the silhouette of an object will be rendered. | |
| virtual void | onActorDelete (Actor *) |
| Event notifying that an Actor is being deleted. | |
| virtual void | onActorRenderStarted (Actor *act, Real, const Camera *cam, Renderable *renderable, const Shader *, int pass) |
| Event generated just before an Actor is rendered but after the render states are ready and setup. | |
| const std::vector < EdgeExtractor::Edge > & | edges () const |
| std::vector < EdgeExtractor::Edge > & | edges () |
The EdgeUpdateCallback class updates at every frame the edges of an Actor for the purpose of edge-enhancement.
| vl::EdgeUpdateCallback::EdgeUpdateCallback | ( | ) | [inline] |
| vl::EdgeUpdateCallback::EdgeUpdateCallback | ( | const std::vector< EdgeExtractor::Edge > & | edge ) | [inline] |
| virtual const char* vl::EdgeUpdateCallback::className | ( | ) | [inline, virtual] |
Returns the name of the class.
Reimplemented from vl::Object.
| void vl::EdgeUpdateCallback::setShowCreases | ( | bool | sonly ) | [inline] |
If true only the edges forming the silhouette of an object will be rendered.
| bool vl::EdgeUpdateCallback::showCreases | ( | ) | const [inline] |
If true only the edges forming the silhouette of an object will be rendered.
| virtual void vl::EdgeUpdateCallback::onActorDelete | ( | Actor * | actor ) | [inline, virtual] |
Event notifying that an Actor is being deleted.
Implements vl::ActorEventCallback.
| virtual void vl::EdgeUpdateCallback::onActorRenderStarted | ( | Actor * | actor, |
| Real | frame_clock, | ||
| const Camera * | cam, | ||
| Renderable * | renderable, | ||
| const Shader * | shader, | ||
| int | pass | ||
| ) | [inline, virtual] |
Event generated just before an Actor is rendered but after the render states are ready and setup.
Reimplement to react to this event.
| actor | The Actor bound to this rendering callback. |
| frame_clock | The current rendering frame time, usually used for animation purposes. |
| cam | The camera used for the current rendering. |
| renderable | The currently selected Actor LOD. |
| shader | The currently active Shader. |
| pass | The current Actor[s] rendering pass. |
Implements vl::ActorEventCallback.
| const std::vector<EdgeExtractor::Edge>& vl::EdgeUpdateCallback::edges | ( | ) | const [inline] |
| std::vector<EdgeExtractor::Edge>& vl::EdgeUpdateCallback::edges | ( | ) | [inline] |