 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
17 #ifndef AGXRENDER_RENDERERSINGLETON_H
18 #define AGXRENDER_RENDERERSINGLETON_H
21 # pragma warning(push)
22 # pragma warning( disable : 4251 )
37 class ConstraintImplementation;
65 void clearTemporaries();
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 ) {}
205 void add(
const Point& point );
210 add(
Point( position, size, color ) );
215 void addStatic(
const Point& point );
220 addStatic(
Point( position, size, color ) );
226 void add(
const Line& line );
231 add(
Line( start,
end, size, color ) );
236 void addStatic(
const Line& line );
241 addStatic(
Line( start,
end, size, color ) );
247 void add(
const Text& text );
252 add(
Text( text, position, color ) );
257 void addStatic(
const Text& text );
262 addStatic(
Text( text, position, color ) );
268 void add(
const Triangle& triangle);
273 add(
Triangle(v0, v1, v2, size, color));
278 void addStatic(
const Triangle& triangle);
283 addStatic(
Triangle(v0, v1, v2, size, color));
296 SINGLETON_CLASSNAME_METHOD();
318 # pragma warning(pop)
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.
Point(const agx::Vec3 &position, agx::Real size=agx::Real(0.4), const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
LinearProbingHashSetImplementation< KeyT, HashT >::iterator end(LinearProbingHashSetImplementation< KeyT, HashT > &set)
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 debugRenderConstraintFrames(const agx::Constraint *constraint, float scale, agxRender::RenderManager *mgr=nullptr, agx::Bool overrideInvalid=false)
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
Frame(const agx::AffineMatrix4x4 &frame, agx::Real scale=agx::Real(0.5), const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
Defines a Line to be used in DebugRendering.
AGXPHYSICS_EXPORT void debugRenderFrame(const agx::AffineMatrix4x4 &transform, float scale, const agx::Vec4f &colorIdentifier, agxRender::RenderManager *mgr=nullptr)
agx::Vec4f getColor() const
const agx::AffineMatrix4x4 & getFrame() const
A class holding 4 dimensional vectors and providing basic arithmetic.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
void add(const agx::String &text, const agx::Vec2 &position, const agx::Vec4f &color)
Add temporary text.
#define AGXPHYSICS_EXPORT
Line(const agx::Vec3 &start, const agx::Vec3 &end, agx::Real size=0.02f, const agx::Vec4f &color=agx::Vec4f(1, 1, 1, 1))
Utility class for creating debug rendering objects.
bool AGXPHYSICS_EXPORT isInitialized()
agx::Real getScale() const
void AGXPHYSICS_EXPORT shutdown()
Shutdown of the AGX Dynamics API will be done when the number of shutdown matches the number of calls...
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
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 &position, agx::Real size, const agx::Vec4f &color)
Add static point (sphere).
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))
void add(const agx::Vec3 &position, agx::Real size, const agx::Vec4f &color)
Add temporary point (sphere).
Defines a Triangle to be used in DebugRendering.
The base class for a constraint.
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))
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Defines a point to be used in DebugRendering.
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 agx::Vec3 &start, const agx::Vec3 &end, agx::Real size, const agx::Vec4f &color)
Add static line (cylinder)
void addStatic(const agx::String &text, const agx::Vec2 &position, const agx::Vec4f &color)
Add static text.