RobWorkProject  24.6.21-
Public Member Functions | List of all members
BtDebugRender Class Reference

Debug render for the Bullet engine. More...

#include <BtDebugRender.hpp>

Inherits SimulatorDebugRender.

Public Member Functions

 BtDebugRender (BtSimulator *sim)
 Constructor. More...
 
virtual ~BtDebugRender ()
 Destructor.
 
virtual void draw (const rw::graphics::DrawableNode::RenderInfo &info, DrawType type, double alpha) const
 draws the object. More...
 
virtual void setDrawMask (unsigned int mask)
 Set the draw mask. More...
 
- Public Member Functions inherited from Render
virtual ~Render ()
 destructor
 

Additional Inherited Members

- Public Types inherited from SimulatorDebugRender
typedef rw::core::Ptr< SimulatorDebugRenderPtr
 Smart pointer type for SimulatorDebugRender.
 
- Public Types inherited from Render
typedef rw::core::Ptr< RenderPtr
 smart pointer type to this class
 
typedef DrawableNode::DrawType DrawType
 when calling render on the draw mode or type can be specified. See DrawableNode::DrawType
 
- Static Public Attributes inherited from SimulatorDebugRender
static const unsigned int DRAW_NOTHING = 0
 Draw mask for drawing nothing.
 
static const unsigned int DRAW_CONTACT_NORMAL = 1
 Draw mask for drawing contact normals.
 
static const unsigned int DRAW_FRICTION_CONE = 2
 Draw mask for drawing contact friction cones.
 
static const unsigned int DRAW_BODY_FORCES = 4
 Draw mask for drawing body forces.
 
static const unsigned int DRAW_COLLISION_GEOMETRY = 8
 Draw mask for drawing collision geometries.
 
- Protected Member Functions inherited from SimulatorDebugRender
 SimulatorDebugRender ()
 Constructor.
 
- Protected Member Functions inherited from Render
 Render ()
 Only instances of classes inheriting Render is allowed.
 

Detailed Description

Debug render for the Bullet engine.

Constructor & Destructor Documentation

◆ BtDebugRender()

Constructor.

Parameters
simthe simulator the debug render is associated to.

Member Function Documentation

◆ draw()

virtual void draw ( const rw::graphics::DrawableNode::RenderInfo info,
DrawType  type,
double  alpha 
) const
virtual

draws the object.

Parameters
info[in] state and rendering specific info
type[in] the drawtype which is being used
alpha[in] the alpha value to render with

Implements Render.

◆ setDrawMask()

virtual void setDrawMask ( unsigned int  mask)
virtual

Set the draw mask.

Parameters
mask[in] the draw mask.

Implements SimulatorDebugRender.


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