AGX Dynamics 2.37.3.3
Loading...
Searching...
No Matches
agxRender Namespace Reference

Namespace containing classes for handling debug rendering of collision geometries, constraints, contacts and rigid bodies. More...

Classes

class  BoxProxy
 Subclass that implements a BoxProxy. More...
 
class  CapsuleProxy
 Subclass that implements a CapsuleProxy. More...
 
class  Color
 Utility color class with "common colors". More...
 
class  ConeProxy
 Subclass that implements a ConeProxy. More...
 
class  ContactsProxy
 Class holding contacts that makes it possible to batch render these objects. More...
 
class  CylinderProxy
 Subclass that implements a CylinderProxy. More...
 
class  Graph
 Class that implements a simple graph for plotting scalar values. More...
 
class  HeightFieldProxy
 Subclass that implements a HeightfieldProxy. More...
 
class  HollowCylinderProxy
 Subclass that implements a CylinderProxy. More...
 
class  HollowTruncatedConeProxy
 Subclass that implements a HollowTruncatedConeProxy. More...
 
class  LineProxy
 Subclass that implements a LineProxy. More...
 
class  PlaneProxy
 Subclass that implements a PlaneProxy. More...
 
class  Renderable
 Inherit from this class and implement the render() method to make it it self during debug rendering. More...
 
class  RenderManager
 Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc. More...
 
class  RenderProxy
 Abstract base class which encapsulated information for rendering a specific shape. More...
 
class  RenderProxyFactory
 Abstract class which is responsible for returning a pointer to a specified RenderProxy type. More...
 
class  RenderSingleton
 Utility class for creating debug rendering objects. More...
 
class  RigidBodyBatchRenderProxy
 Class holding rigid bodies that makes it possible to batch render these objects. More...
 
class  SpaceListener
 A listener that will be responsible for calling RenderManager every time a Shape is added/removed from space. More...
 
class  SphereProxy
 Subclass that implements a SphereProxy. More...
 
class  TextProxy
 Subclass that implements a TextProxy. More...
 
class  TrimeshProxy
 Subclass that implements a TrimeshProxy. More...
 
class  TruncatedConeProxy
 Subclass that implements a TruncatedConeProxy. More...
 
class  WireRenderProxy
 
class  WireShapeProxy
 Subclass that implements a WireShapeProxy. More...
 

Typedefs

typedef agx::Vector< ColorColorVector
 
typedef agx::observer_ptr< const GraphGraphConstObserver
 
typedef agx::ref_ptr< const GraphGraphConstRef
 
typedef agx::observer_ptr< GraphGraphObserver
 
typedef agx::ref_ptr< GraphGraphRef
 
typedef agx::observer_ptr< const RenderableRenderableConstObserver
 
typedef agx::ref_ptr< const RenderableRenderableConstRef
 
typedef agx::observer_ptr< RenderableRenderableObserver
 
typedef agx::ref_ptr< RenderableRenderableRef
 
typedef agx::observer_ptr< const RenderManagerRenderManagerConstObserver
 
typedef agx::ref_ptr< const RenderManagerRenderManagerConstRef
 
typedef agx::observer_ptr< RenderManagerRenderManagerObserver
 
typedef agx::ref_ptr< RenderManagerRenderManagerRef
 
typedef agx::observer_ptr< const RenderProxyRenderProxyConstObserver
 
typedef agx::ref_ptr< const RenderProxyRenderProxyConstRef
 
typedef agx::observer_ptr< const RenderProxyFactoryRenderProxyFactoryConstObserver
 
typedef agx::ref_ptr< const RenderProxyFactoryRenderProxyFactoryConstRef
 
typedef agx::observer_ptr< RenderProxyFactoryRenderProxyFactoryObserver
 
typedef agx::ref_ptr< RenderProxyFactoryRenderProxyFactoryRef
 
typedef agx::observer_ptr< RenderProxyRenderProxyObserver
 
typedef agx::ref_ptr< RenderProxyRenderProxyRef
 
typedef agx::ref_ptr< WireRenderProxyWireRenderProxyRef
 

Enumerations

enum  Flags {
  RENDER_GEOMETRIES = 1 , RENDER_BOUNDING_VOLUMES = 1 << 1 , RENDER_GEOMETRY_CONTACTS = 1 << 2 , RENDER_PARTICLE_CONTACTS = 1 << 3 ,
  RENDER_PARTICLE_GEOMETRY_CONTACTS = 1 << 4 , RENDER_CONSTRAINTS = 1 << 5 , RENDER_BODIES = 1 << 6 , RENDER_PARTICLE_SYSTEMS = 1 << 7 ,
  RENDER_PARTICLE_EMITTERS = 1 << 8 , RENDER_TEXT = 1 << 9 , RENDER_AABB_TREES = 1 << 10 , RENDER_SENSORS = 1 << 11 ,
  RENDER_MESH = 1 << 12 , RENDER_NICE_CONTACTS = 1 << 13 , RENDER_STATISTICS = 1 << 14 , RENDER_RENDERABLES = 1 << 15 ,
  RENDER_BODY_PARTITION = 1 << 16 , RENDER_BATCH_CONTACTS = 1 << 17 , RENDER_BATCH_BODIES = 1 << 18 , RENDER_BATCH_WIRES = 1 << 19 ,
  RENDER_OBSERVER_FRAMES = 1 << 20 , RENDER_CONTACTS , RENDER_DEFAULT
}
 Flags for specifying what is enabled in the debug rendering system. More...
 
enum  PrimitiveType {
  PRIMITIVE_BOX , PRIMITIVE_CAPSULE , PRIMITIVE_CYLINDER , PRIMITIVE_CONE ,
  PRIMITIVE_LINE , PRIMITIVE_PLANE , PRIMITIVE_SPHERE , PRIMITIVE_TRIMESH ,
  PRIMITIVE_HEIGHT_FIELD , PRIMITIVE_TRIANGLE , PRIMITIVE_SPHERE_BATCH , PRIMITIVE_TEXT ,
  PRIMITIVE_CONTACTS , PRIMITIVE_HOLLOW_CYLINDER , PRIMITIVE_TRUNCATED_CONE , PRIMITIVE_HOLLOW_TRUNCATED_CONE ,
  NUM_PRIMITIVES
}
 

Functions

AGXPHYSICS_EXPORT void debugRenderConstraintFrames (const agx::Constraint *constraint, float scale, agxRender::RenderManager *mgr=nullptr, agx::Bool overrideInvalid=false)
 
AGXPHYSICS_EXPORT void debugRenderConstraintFrames (const agx::ConstraintImplementation *constraint, float scale, agxRender::RenderManager *mgr=nullptr, agx::Bool overrideInvalid=false)
 
AGXPHYSICS_EXPORT void debugRenderFrame (const agx::AffineMatrix4x4 &transform, float scale, const agx::Vec4f &colorIdentifier, agxRender::RenderManager *mgr=nullptr)
 

Detailed Description

Namespace containing classes for handling debug rendering of collision geometries, constraints, contacts and rigid bodies.

By implementing the RenderProxyFactor and specialization of RenderProxy, one can get rendering for just about any rendering engine.

Typedef Documentation

◆ ColorVector

Definition at line 250 of file Color.h.

◆ GraphConstObserver

Definition at line 30 of file Graph.h.

◆ GraphConstRef

Definition at line 30 of file Graph.h.

◆ GraphObserver

Definition at line 30 of file Graph.h.

◆ GraphRef

Definition at line 30 of file Graph.h.

◆ RenderableConstObserver

Definition at line 35 of file Renderable.h.

◆ RenderableConstRef

Definition at line 35 of file Renderable.h.

◆ RenderableObserver

◆ RenderableRef

Definition at line 35 of file Renderable.h.

◆ RenderManagerConstObserver

◆ RenderManagerConstRef

Definition at line 95 of file RenderManager.h.

◆ RenderManagerObserver

◆ RenderManagerRef

◆ RenderProxyConstObserver

◆ RenderProxyConstRef

◆ RenderProxyFactoryConstObserver

◆ RenderProxyFactoryConstRef

◆ RenderProxyFactoryObserver

◆ RenderProxyFactoryRef

◆ RenderProxyObserver

◆ RenderProxyRef

◆ WireRenderProxyRef

Enumeration Type Documentation

◆ Flags

Flags for specifying what is enabled in the debug rendering system.

Enumerator
RENDER_GEOMETRIES 

Render collision geometries.

RENDER_BOUNDING_VOLUMES 

Render bounding volumes for geometries.

RENDER_GEOMETRY_CONTACTS 

Render geometry contacts.

RENDER_PARTICLE_CONTACTS 

Render particle contacts.

RENDER_PARTICLE_GEOMETRY_CONTACTS 

Render particle-geometry contacts.

RENDER_CONSTRAINTS 

Render rigid body constraint attachments.

RENDER_BODIES 

Render rigid body mass centers.

RENDER_PARTICLE_SYSTEMS 

Render particle systems.

RENDER_PARTICLE_EMITTERS 

Render particle emitters.

RENDER_TEXT 

Render text.

RENDER_AABB_TREES 

Render AABB trees.

RENDER_SENSORS 

Render geometries which are sensors.

RENDER_MESH 

Render trimesh/height field.

RENDER_NICE_CONTACTS 

Render contacts with high fidelity.

RENDER_STATISTICS 

Render statistics text/graphs onto screen.

RENDER_RENDERABLES 

Execute render for all registered Renderables.

RENDER_BODY_PARTITION 

Color for a RigidBody is selected based on which partition it belongs to.

RENDER_BATCH_CONTACTS 

Render contacts as one batch call for all contacts.

RENDER_BATCH_BODIES 

Batch render bodies.

RENDER_BATCH_WIRES 

Wire content batch rendered.

RENDER_OBSERVER_FRAMES 

Render Observer frames.

RENDER_CONTACTS 

Render all types of contacts.

RENDER_DEFAULT 

The default rendering mode.

Definition at line 58 of file RenderManager.h.

◆ PrimitiveType

Enumerator
PRIMITIVE_BOX 
PRIMITIVE_CAPSULE 
PRIMITIVE_CYLINDER 
PRIMITIVE_CONE 
PRIMITIVE_LINE 
PRIMITIVE_PLANE 
PRIMITIVE_SPHERE 
PRIMITIVE_TRIMESH 
PRIMITIVE_HEIGHT_FIELD 
PRIMITIVE_TRIANGLE 
PRIMITIVE_SPHERE_BATCH 
PRIMITIVE_TEXT 
PRIMITIVE_CONTACTS 
PRIMITIVE_HOLLOW_CYLINDER 
PRIMITIVE_TRUNCATED_CONE 
PRIMITIVE_HOLLOW_TRUNCATED_CONE 
NUM_PRIMITIVES 

Definition at line 51 of file agxRender/RenderProxy.h.

Function Documentation

◆ debugRenderConstraintFrames() [1/2]

AGXPHYSICS_EXPORT void agxRender::debugRenderConstraintFrames ( const agx::Constraint constraint,
float  scale,
agxRender::RenderManager mgr = nullptr,
agx::Bool  overrideInvalid = false 
)

◆ debugRenderConstraintFrames() [2/2]

AGXPHYSICS_EXPORT void agxRender::debugRenderConstraintFrames ( const agx::ConstraintImplementation constraint,
float  scale,
agxRender::RenderManager mgr = nullptr,
agx::Bool  overrideInvalid = false 
)

◆ debugRenderFrame()

AGXPHYSICS_EXPORT void agxRender::debugRenderFrame ( const agx::AffineMatrix4x4 transform,
float  scale,
const agx::Vec4f colorIdentifier,
agxRender::RenderManager mgr = nullptr 
)