|
AGX Dynamics
2.37.2.0
|
Utility class for creating debug rendering objects. More...
#include <RenderSingleton.h>
Inheritance diagram for agxRender::RenderSingleton:Classes | |
| class | Frame |
| class | Line |
| Defines a Line to be used in DebugRendering. More... | |
| class | Point |
| Defines a point to be used in DebugRendering. More... | |
| class | Text |
| Defines Text to be used in DebugRendering. More... | |
| class | Triangle |
| Defines a Triangle to be used in DebugRendering. More... | |
Public Member Functions | |
| void | add (const Point &point) |
| Add temporary point (sphere). More... | |
| void | add (const agx::Vec3 &position, agx::Real size, const agx::Vec4f &color) |
| Add temporary point (sphere). More... | |
| void | add (const Line &line) |
| Add temporary line (cylinder) More... | |
| void | add (const agx::Vec3 &start, const agx::Vec3 &end, agx::Real size, const agx::Vec4f &color) |
| Add temporary line (cylinder) More... | |
| void | add (const Text &text) |
| Add temporary text. More... | |
| void | add (const agx::String &text, const agx::Vec2 &position, const agx::Vec4f &color) |
| Add temporary text. More... | |
| void | add (const Triangle &triangle) |
| Add temporary triangle. More... | |
| void | add (const agx::Vec3 &v0, const agx::Vec3 &v1, const agx::Vec3 &v2, const agx::Real size, const agx::Vec4f &color) |
| Add temporary triangle. More... | |
| void | add (const agx::AffineMatrix4x4 &frame, agx::Real scale, const agx::Vec4f &color) |
| Add temporary frame. More... | |
| void | addStatic (const Point &point) |
| Add static point (sphere). More... | |
| void | addStatic (const agx::Vec3 &position, agx::Real size, const agx::Vec4f &color) |
| Add static point (sphere). More... | |
| void | addStatic (const Line &line) |
| Add static line (cylinder) More... | |
| void | addStatic (const agx::Vec3 &start, const agx::Vec3 &end, agx::Real size, const agx::Vec4f &color) |
| Add static line (cylinder) More... | |
| void | addStatic (const Text &text) |
| Add static text. More... | |
| void | addStatic (const agx::String &text, const agx::Vec2 &position, const agx::Vec4f &color) |
| Add static text. More... | |
| void | addStatic (const Triangle &triangle) |
| Add static triangle. More... | |
| void | addStatic (const agx::Vec3 &v0, const agx::Vec3 &v1, const agx::Vec3 &v2, const agx::Real size, const agx::Vec4f &color) |
| Add static triangle. More... | |
| void | addStatic (const agx::AffineMatrix4x4 &frame, agx::Real scale, const agx::Vec4f &color) |
| Add static frame. More... | |
| void | clearAll () |
| Clear everything. More... | |
| void | clearStatics () |
| Clear statistics. More... | |
| void | clearTemporaries () |
| Clear the list of temporary RenderProxies. More... | |
| void | render (agxRender::RenderManager *mgr) |
| Called by Simulation to update the debug rendering. More... | |
Public Member Functions inherited from agx::Singleton | |
| Singleton (int priority=DEFAULT_PRIORITY) | |
| Default constructor. More... | |
| virtual std::string | getClassName () const =0 |
| int | getPriority () const |
| Return the shutdown priority of the singleton instance. More... | |
Static Public Member Functions | |
| static RenderSingleton * | instance () |
| static bool | isInitialized () |
Protected Member Functions | |
| RenderSingleton () | |
| virtual void | shutdown () override |
| Implement this method to cleanup your Singleton class. More... | |
Protected Member Functions inherited from agx::Singleton | |
| virtual | ~Singleton () |
| Destructor. More... | |
| void | _shutdown () |
Additional Inherited Members | |
Public Types inherited from agx::Singleton | |
| enum | Priority { HIGHEST_PRIORITY = 2147483647, LOWEST_PRIORITY = 10000, DEFAULT_PRIORITY = 1073741824 } |
| Specifies the ranges of the priority which can be assigned to a singleton at the time of creation. More... | |
Utility class for creating debug rendering objects.
Definition at line 54 of file RenderSingleton.h.
|
protected |
| void agxRender::RenderSingleton::add | ( | const Point & | point | ) |
Add temporary point (sphere).
|
inline |
Add temporary point (sphere).
Definition at line 209 of file RenderSingleton.h.
| void agxRender::RenderSingleton::add | ( | const Line & | line | ) |
Add temporary line (cylinder)
|
inline |
Add temporary line (cylinder)
Definition at line 230 of file RenderSingleton.h.
| void agxRender::RenderSingleton::add | ( | const Text & | text | ) |
Add temporary text.
|
inline |
Add temporary text.
Definition at line 251 of file RenderSingleton.h.
| void agxRender::RenderSingleton::add | ( | const Triangle & | triangle | ) |
Add temporary triangle.
|
inline |
Add temporary triangle.
Definition at line 272 of file RenderSingleton.h.
| void agxRender::RenderSingleton::add | ( | const agx::AffineMatrix4x4 & | frame, |
| agx::Real | scale, | ||
| const agx::Vec4f & | color | ||
| ) |
Add temporary frame.
| void agxRender::RenderSingleton::addStatic | ( | const Point & | point | ) |
Add static point (sphere).
|
inline |
Add static point (sphere).
Definition at line 219 of file RenderSingleton.h.
| void agxRender::RenderSingleton::addStatic | ( | const Line & | line | ) |
Add static line (cylinder)
|
inline |
Add static line (cylinder)
Definition at line 240 of file RenderSingleton.h.
| void agxRender::RenderSingleton::addStatic | ( | const Text & | text | ) |
Add static text.
|
inline |
Add static text.
Definition at line 261 of file RenderSingleton.h.
| void agxRender::RenderSingleton::addStatic | ( | const Triangle & | triangle | ) |
Add static triangle.
|
inline |
Add static triangle.
Definition at line 282 of file RenderSingleton.h.
| void agxRender::RenderSingleton::addStatic | ( | const agx::AffineMatrix4x4 & | frame, |
| agx::Real | scale, | ||
| const agx::Vec4f & | color | ||
| ) |
Add static frame.
| void agxRender::RenderSingleton::clearAll | ( | ) |
Clear everything.
| void agxRender::RenderSingleton::clearStatics | ( | ) |
Clear statistics.
| void agxRender::RenderSingleton::clearTemporaries | ( | ) |
Clear the list of temporary RenderProxies.
|
static |
|
static |
| void agxRender::RenderSingleton::render | ( | agxRender::RenderManager * | mgr | ) |
Called by Simulation to update the debug rendering.
|
overrideprotectedvirtual |
Implement this method to cleanup your Singleton class.
Reimplemented from agx::Singleton.