Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The RenderingAbstract class is the base of all the rendering related sub-classes. More...
#include <RenderingAbstract.hpp>
Public Member Functions | |
RenderingAbstract () | |
Constructor. More... | |
RenderingAbstract (const RenderingAbstract &)=default | |
Copy Constructor. More... | |
virtual void | render ()=0 |
Executes the rendering. More... | |
RenderingAbstract & | operator= (const RenderingAbstract &other) |
void | dispatchOnRenderingStarted () |
Calls the RenderEventCallback::onRenderingStarted() method of all the active callback objects. More... | |
void | dispatchOnRenderingFinished () |
Calls the RenderEventCallback::onRenderingFinished() method of all the active callback objects. More... | |
Collection< RenderEventCallback > * | onStartedCallbacks () |
Returns the list of RenderEventCallback objects registered to the onRenderingStarted() event notification. More... | |
const Collection< RenderEventCallback > * | onStartedCallbacks () const |
Returns the list of RenderEventCallback objects registered to the onRenderingStarted() event notification. More... | |
Collection< RenderEventCallback > * | onFinishedCallbacks () |
Returns the list of RenderEventCallback objects registered to the onRenderingFinished() event notification. More... | |
const Collection< RenderEventCallback > * | onFinishedCallbacks () const |
Returns the list of RenderEventCallback objects registered to the onRenderingFinished() event notification. More... | |
void | setEnableMask (unsigned int mask) |
The enable mask of the Rendering, used to define wheter the rendering is enabled or not, and which objects should be rendered. More... | |
unsigned int | enableMask () const |
The enable mask of the Rendering, used to define wheter the rendering is enabled or not, and which objects should be rendered. More... | |
bool | isEnabled (unsigned int mask) |
bool | isEnabled (const Actor *actor) |
void | setFrameClock (real cur_time) |
The update time of the current rendering frame. More... | |
real | frameClock () const |
The update time of the current rendering frame. More... | |
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... | |
Protected Attributes | |
ref< Collection< RenderEventCallback > > | mOnStartedCallbacks |
ref< Collection< RenderEventCallback > > | mOnFinishedCallbacks |
real | mFrameClock |
unsigned int | mEnableMask |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
Additional Inherited Members | |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
The RenderingAbstract class is the base of all the rendering related sub-classes.
Definition at line 45 of file RenderingAbstract.hpp.
RenderingAbstract::RenderingAbstract | ( | ) |
Constructor.
Definition at line 39 of file RenderingAbstract.cpp.
References mEnableMask, mFrameClock, mOnFinishedCallbacks, and mOnStartedCallbacks.
|
default |
Copy Constructor.
void RenderingAbstract::dispatchOnRenderingFinished | ( | ) |
Calls the RenderEventCallback::onRenderingFinished() method of all the active callback objects.
Definition at line 72 of file RenderingAbstract.cpp.
References isEnabled(), mOnFinishedCallbacks, onFinishedCallbacks(), and vl::Collection< T >::size().
Referenced by vl::RenderingTree::render(), and vl::Rendering::render().
void RenderingAbstract::dispatchOnRenderingStarted | ( | ) |
Calls the RenderEventCallback::onRenderingStarted() method of all the active callback objects.
Definition at line 59 of file RenderingAbstract.cpp.
References isEnabled(), mOnStartedCallbacks, onStartedCallbacks(), and vl::Collection< T >::size().
Referenced by vl::RenderingTree::render(), and vl::Rendering::render().
|
inline |
The enable mask of the Rendering, used to define wheter the rendering is enabled or not, and which objects should be rendered.
Definition at line 85 of file RenderingAbstract.hpp.
Referenced by vl::Rendering::fillRenderQueue(), vl::RenderingTree::render(), and vl::Rendering::render().
|
inline |
The update time of the current rendering frame.
Definition at line 94 of file RenderingAbstract.hpp.
Referenced by vl::Rendering::fillRenderQueue(), vl::RenderingTree::render(), and vl::Rendering::render().
|
inline |
Definition at line 87 of file RenderingAbstract.hpp.
Referenced by dispatchOnRenderingFinished(), dispatchOnRenderingStarted(), vl::Rendering::fillRenderQueue(), and vl::Rendering::render().
|
inline |
Definition at line 88 of file RenderingAbstract.hpp.
References vl::Actor::enableMask(), and vl::Actor::isEnabled().
|
inline |
Returns the list of RenderEventCallback objects registered to the onRenderingFinished() event notification.
Definition at line 74 of file RenderingAbstract.hpp.
Referenced by dispatchOnRenderingFinished(), and vl::Applet::keyReleaseEvent().
|
inline |
Returns the list of RenderEventCallback objects registered to the onRenderingFinished() event notification.
Definition at line 77 of file RenderingAbstract.hpp.
|
inline |
Returns the list of RenderEventCallback objects registered to the onRenderingStarted() event notification.
Definition at line 68 of file RenderingAbstract.hpp.
Referenced by dispatchOnRenderingStarted().
|
inline |
Returns the list of RenderEventCallback objects registered to the onRenderingStarted() event notification.
Definition at line 71 of file RenderingAbstract.hpp.
RenderingAbstract & RenderingAbstract::operator= | ( | const RenderingAbstract & | other | ) |
Definition at line 48 of file RenderingAbstract.cpp.
References mEnableMask, mFrameClock, mOnFinishedCallbacks, and mOnStartedCallbacks.
|
pure virtual |
Executes the rendering.
Implemented in vl::Rendering, and vl::RenderingTree.
Referenced by vl::Applet::updateEvent().
|
inline |
The enable mask of the Rendering, used to define wheter the rendering is enabled or not, and which objects should be rendered.
Definition at line 82 of file RenderingAbstract.hpp.
|
inline |
The update time of the current rendering frame.
Definition at line 91 of file RenderingAbstract.hpp.
Referenced by vl::Applet::updateEvent().
|
protected |
Definition at line 100 of file RenderingAbstract.hpp.
Referenced by operator=(), vl::Rendering::operator=(), and RenderingAbstract().
|
protected |
Definition at line 99 of file RenderingAbstract.hpp.
Referenced by operator=(), and RenderingAbstract().
|
protected |
Definition at line 98 of file RenderingAbstract.hpp.
Referenced by dispatchOnRenderingFinished(), operator=(), and RenderingAbstract().
|
protected |
Definition at line 97 of file RenderingAbstract.hpp.
Referenced by dispatchOnRenderingStarted(), operator=(), and RenderingAbstract().
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:53.
© Copyright Michele Bosi. All rights reserved.