AGX Dynamics  2.37.2.0
agxRender::RenderSingleton Class Reference

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...
 

Detailed Description

Utility class for creating debug rendering objects.

Definition at line 54 of file RenderSingleton.h.

Constructor & Destructor Documentation

◆ RenderSingleton()

agxRender::RenderSingleton::RenderSingleton ( )
protected

Member Function Documentation

◆ add() [1/9]

void agxRender::RenderSingleton::add ( const Point &  point)

Add temporary point (sphere).

◆ add() [2/9]

void agxRender::RenderSingleton::add ( const agx::Vec3 &  position,
agx::Real  size,
const agx::Vec4f &  color 
)
inline

Add temporary point (sphere).

Definition at line 209 of file RenderSingleton.h.

◆ add() [3/9]

void agxRender::RenderSingleton::add ( const Line &  line)

Add temporary line (cylinder)

◆ add() [4/9]

void agxRender::RenderSingleton::add ( const agx::Vec3 &  start,
const agx::Vec3 &  end,
agx::Real  size,
const agx::Vec4f &  color 
)
inline

Add temporary line (cylinder)

Definition at line 230 of file RenderSingleton.h.

◆ add() [5/9]

void agxRender::RenderSingleton::add ( const Text &  text)

Add temporary text.

◆ add() [6/9]

void agxRender::RenderSingleton::add ( const agx::String &  text,
const agx::Vec2 &  position,
const agx::Vec4f &  color 
)
inline

Add temporary text.

Definition at line 251 of file RenderSingleton.h.

◆ add() [7/9]

void agxRender::RenderSingleton::add ( const Triangle &  triangle)

Add temporary triangle.

◆ add() [8/9]

void agxRender::RenderSingleton::add ( const agx::Vec3 &  v0,
const agx::Vec3 &  v1,
const agx::Vec3 &  v2,
const agx::Real  size,
const agx::Vec4f &  color 
)
inline

Add temporary triangle.

Definition at line 272 of file RenderSingleton.h.

◆ add() [9/9]

void agxRender::RenderSingleton::add ( const agx::AffineMatrix4x4 &  frame,
agx::Real  scale,
const agx::Vec4f &  color 
)

Add temporary frame.

◆ addStatic() [1/9]

void agxRender::RenderSingleton::addStatic ( const Point &  point)

Add static point (sphere).

◆ addStatic() [2/9]

void agxRender::RenderSingleton::addStatic ( const agx::Vec3 &  position,
agx::Real  size,
const agx::Vec4f &  color 
)
inline

Add static point (sphere).

Definition at line 219 of file RenderSingleton.h.

◆ addStatic() [3/9]

void agxRender::RenderSingleton::addStatic ( const Line &  line)

Add static line (cylinder)

◆ addStatic() [4/9]

void agxRender::RenderSingleton::addStatic ( const agx::Vec3 &  start,
const agx::Vec3 &  end,
agx::Real  size,
const agx::Vec4f &  color 
)
inline

Add static line (cylinder)

Definition at line 240 of file RenderSingleton.h.

◆ addStatic() [5/9]

void agxRender::RenderSingleton::addStatic ( const Text &  text)

Add static text.

◆ addStatic() [6/9]

void agxRender::RenderSingleton::addStatic ( const agx::String &  text,
const agx::Vec2 &  position,
const agx::Vec4f &  color 
)
inline

Add static text.

Definition at line 261 of file RenderSingleton.h.

◆ addStatic() [7/9]

void agxRender::RenderSingleton::addStatic ( const Triangle &  triangle)

Add static triangle.

◆ addStatic() [8/9]

void agxRender::RenderSingleton::addStatic ( const agx::Vec3 &  v0,
const agx::Vec3 &  v1,
const agx::Vec3 &  v2,
const agx::Real  size,
const agx::Vec4f &  color 
)
inline

Add static triangle.

Definition at line 282 of file RenderSingleton.h.

◆ addStatic() [9/9]

void agxRender::RenderSingleton::addStatic ( const agx::AffineMatrix4x4 &  frame,
agx::Real  scale,
const agx::Vec4f &  color 
)

Add static frame.

◆ clearAll()

void agxRender::RenderSingleton::clearAll ( )

Clear everything.

◆ clearStatics()

void agxRender::RenderSingleton::clearStatics ( )

Clear statistics.

◆ clearTemporaries()

void agxRender::RenderSingleton::clearTemporaries ( )

Clear the list of temporary RenderProxies.

◆ instance()

static RenderSingleton* agxRender::RenderSingleton::instance ( )
static
Returns
a pointer to the RenderSingleton

◆ isInitialized()

static bool agxRender::RenderSingleton::isInitialized ( )
static
Returns
true if this singleton is initialized (instance would then return != 0)

◆ render()

void agxRender::RenderSingleton::render ( agxRender::RenderManager *  mgr)

Called by Simulation to update the debug rendering.

◆ shutdown()

virtual void agxRender::RenderSingleton::shutdown ( )
overrideprotectedvirtual

Implement this method to cleanup your Singleton class.

Reimplemented from agx::Singleton.


The documentation for this class was generated from the following file: