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

renderer for contacts More...

#include <RenderContacts.hpp>

Inherits Render.

Public Member Functions

 RenderContacts ()
 constructor
 
virtual ~RenderContacts ()
 destructor
 
void addContact (const rw::sensor::Contact3D &contacts)
 add a contact to render
 
void addContacts (const std::vector< rw::sensor::Contact3D > &contacts)
 add a number of contacts to render
 
void setContacts (const std::vector< rw::sensor::Contact3D > &contacts)
 set the contacts to render
 
void setColor (double r, double g, double b)
 set the color used for the model More...
 
virtual void draw (const rw::graphics::DrawableNode::RenderInfo &info, DrawType type, double alpha) const
 
- Public Member Functions inherited from Render
virtual ~Render ()
 destructor
 

Additional Inherited Members

- 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
 
- Protected Member Functions inherited from Render
 Render ()
 Only instances of classes inheriting Render is allowed.
 

Detailed Description

renderer for contacts

Member Function Documentation

◆ draw()

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

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.

◆ setColor()

void setColor ( double  r,
double  g,
double  b 
)

set the color used for the model

Parameters
r[in] red color value
g[in] green color value
b[in] blue color value

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