Visualization Library 2.0.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [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 | |
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. More... | |
bool | showCreases () const |
If true only the edges forming the silhouette of an object will be rendered. More... | |
virtual void | onActorDelete (Actor *) |
Event notifying that an Actor is being deleted. More... | |
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. More... | |
const std::vector< EdgeExtractor::Edge > & | edges () const |
std::vector< EdgeExtractor::Edge > & | edges () |
Public Member Functions inherited from vl::ActorEventCallback | |
ActorEventCallback () | |
void | setEnabled (bool enabled) |
bool | isEnabled () const |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Protected Attributes inherited from vl::ActorEventCallback | |
bool | mEnabled |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
The EdgeUpdateCallback class updates at every frame the edges of an Actor for the purpose of edge-enhancement.
Definition at line 44 of file EdgeUpdateCallback.hpp.
|
inline |
Definition at line 49 of file EdgeUpdateCallback.hpp.
|
inline |
Definition at line 54 of file EdgeUpdateCallback.hpp.
|
inline |
Definition at line 105 of file EdgeUpdateCallback.hpp.
Referenced by onActorRenderStarted().
|
inline |
Definition at line 106 of file EdgeUpdateCallback.hpp.
|
inlinevirtual |
Event notifying that an Actor is being deleted.
Implements vl::ActorEventCallback.
Definition at line 64 of file EdgeUpdateCallback.hpp.
|
inlinevirtual |
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.
Definition at line 66 of file EdgeUpdateCallback.hpp.
References vl::Matrix4< T_Scalar >::as3x3(), vl::dot(), edges(), vl::Matrix4< T_Scalar >::getInverse(), vl::Vector3< T_Scalar >::normalize(), showCreases(), vl::Actor::transform(), vl::Camera::viewMatrix(), and vl::Transform::worldMatrix().
|
inline |
If true
only the edges forming the silhouette of an object will be rendered.
Definition at line 60 of file EdgeUpdateCallback.hpp.
|
inline |
If true
only the edges forming the silhouette of an object will be rendered.
Definition at line 62 of file EdgeUpdateCallback.hpp.
Referenced by onActorRenderStarted().
Visualization Library 2.0.0 Reference Documentation
Updated on Wed Dec 23 2020 12:44:08.
© Copyright Michele Bosi. All rights reserved.