21# pragma warning( disable : 4251 )
35 class ConstraintImplementation;
91 : m_position( position )
126 bool asArrow =
false )
131 , m_asArrow( asArrow )
165 bool m_asArrow =
false;
178 , m_position( position )
293 add(
Point( position, size, color ) );
305 addStatic(
Point( position, size, color ) );
318 add(
Line( start, end, size, color, asArrow ) );
331 addStatic(
Line( start, end, size, color, asArrow ) );
344 add(
Text( text, position, color ) );
357 addStatic(
Text( text, position, color ) );
370 add(
Triangle(v0, v1, v2, size, color));
383 addStatic(
Triangle(v0, v1, v2, size, color));
396 SINGLETON_CLASSNAME_METHOD();
#define AGXPHYSICS_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
agx::Vec4f getColor() const
const agx::AffineMatrix4x4 & getFrame() const
Frame(const agx::AffineMatrix4x4 &frame, agx::Real scale=agx::Real(0.5), const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
agx::Real getScale() const
Defines a Line to be used in DebugRendering.
Line(const agx::Vec3 &start, const agx::Vec3 &end, agx::Real size=0.02f, const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1), bool asArrow=false)
Defines a point to be used in DebugRendering.
Point(const agx::Vec3 &position, agx::Real size=agx::Real(0.4), const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
Defines Text to be used in DebugRendering.
Text(const agx::String &text, const agx::Vec2 &position, const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
Defines a Triangle to be used in DebugRendering.
Triangle(const agx::Vec3 &v0, const agx::Vec3 &v1, const agx::Vec3 &v2, agx::Real size=0.02f, const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
Utility class for creating debug rendering objects.
void clearAll()
Clear everything.
void add(const agx::String &text, const agx::Vec2 &position, const agx::Vec4f &color)
Add temporary text.
void addStatic(const agx::String &text, const agx::Vec2 &position, const agx::Vec4f &color)
Add static text.
void add(const Text &text)
Add temporary text.
static bool isInitialized()
void add(const Triangle &triangle)
Add temporary triangle.
void add(const agx::Vec3 &start, const agx::Vec3 &end, agx::Real size, const agx::Vec4f &color, bool asArrow=false)
Add temporary line (cylinder)
void addStatic(const Triangle &triangle)
Add static triangle.
void add(const Line &line)
Add temporary line (cylinder)
void addStatic(const agx::AffineMatrix4x4 &frame, agx::Real scale, const agx::Vec4f &color)
Add static frame.
void add(const agx::Vec3 &position, agx::Real size, const agx::Vec4f &color)
Add temporary point (sphere).
void addStatic(const Text &text)
Add static text.
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.
void addStatic(const Point &point)
Add static point (sphere).
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.
virtual void shutdown() override
Implement this method to cleanup your Singleton class.
static RenderSingleton * instance()
void clearStatics()
Clear statistics.
void add(const Point &point)
Add temporary point (sphere).
void addStatic(const Line &line)
Add static line (cylinder)
void add(const agx::AffineMatrix4x4 &frame, agx::Real scale, const agx::Vec4f &color)
Add temporary frame.
void clearTemporaries()
Clear the list of temporary RenderProxies.
void render(agxRender::RenderManager *mgr)
Called by Simulation to update the debug rendering.
void addStatic(const agx::Vec3 &start, const agx::Vec3 &end, agx::Real size, const agx::Vec4f &color, bool asArrow=false)
Add static line (cylinder)
void addStatic(const agx::Vec3 &position, agx::Real size, const agx::Vec4f &color)
Add static point (sphere).
The base class for a constraint.
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
A class holding 4 dimensional vectors and providing basic arithmetic.
Namespace containing classes for handling debug rendering of collision geometries,...
AGXPHYSICS_EXPORT void debugRenderFrame(const agx::AffineMatrix4x4 &transform, float scale, const agx::Vec4f &colorIdentifier, agxRender::RenderManager *mgr=nullptr)
AGXPHYSICS_EXPORT void debugRenderConstraintFrames(const agx::Constraint *constraint, float scale, agxRender::RenderManager *mgr=nullptr, agx::Bool overrideInvalid=false)
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.