17 #ifndef AGXRENDER_RENDERERSINGLETON_H
18 #define AGXRENDER_RENDERERSINGLETON_H
21 # pragma warning(push)
22 # pragma warning( disable : 4251 )
37 class ConstraintImplementation;
82 : m_position( position ),
m_size( size ), m_color( color ) {}
106 : m_start( start ), m_end(
end ),
m_size( size ), m_color( color ) {}
134 : m_text( text ), m_position( position ), m_color( color ) {}
159 : m_v0( v0 ), m_v1( v1 ), m_v2( v2 ),
m_size(size), m_color( color ) {}
210 add(
Point( position, size, color ) );
220 addStatic(
Point( position, size, color ) );
231 add(
Line( start,
end, size, color ) );
241 addStatic(
Line( start,
end, size, color ) );
252 add(
Text( text, position, color ) );
262 addStatic(
Text( text, position, color ) );
273 add(
Triangle(v0, v1, v2, size, color));
283 addStatic(
Triangle(v0, v1, v2, size, color));
296 SINGLETON_CLASSNAME_METHOD();
318 # pragma warning(pop)
#define AGXPHYSICS_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
agx::Vec4f getColor() const
Frame(const agx::AffineMatrix4x4 &frame, agx::Real scale=agx::Real(0.5), const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
const agx::AffineMatrix4x4 & getFrame() const
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))
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 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.
void clearStatics()
Clear statistics.
void add(const Point &point)
Add temporary point (sphere).
void add(const agx::Vec3 &start, const agx::Vec3 &end, agx::Real size, const agx::Vec4f &color)
Add temporary line (cylinder)
void addStatic(const agx::Vec3 &start, const agx::Vec3 &end, agx::Real size, const agx::Vec4f &color)
Add static line (cylinder)
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.
static RenderSingleton * instance()
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.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
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.
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)