RobWorkProject  23.9.11-
Public Member Functions | List of all members
RenderCircles Class Reference

Render a set of circles. More...

#include <RenderCircles.hpp>

Inherits Render.

Public Member Functions

 RenderCircles (float angleResolution=10.0)
 constructor More...
 
virtual ~RenderCircles ()
 destructor
 
void addCircle (const util::CircleModel &circle)
 adds circle to the circles that are allready drawn More...
 
void addCircles (const std::vector< util::CircleModel > &circles)
 adds circles to the circles that are allready drawn
 
void setCircles (const std::vector< util::CircleModel > &circles)
 set the circles that is to be rendered More...
 
void setColor (double r, double g, double b)
 set the color used for the model More...
 
void clear ()
 clear the list of circles
 
void draw (const rw::graphics::DrawableNode::RenderInfo &info, rw::graphics::DrawableNode::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

Render a set of circles.

Constructor & Destructor Documentation

◆ RenderCircles()

RenderCircles ( float  angleResolution = 10.0)

constructor

Parameters
angleResolution[in] the resolution of the circle line segments in degree. The circle is approximated using line segments.

Member Function Documentation

◆ addCircle()

void addCircle ( const util::CircleModel circle)

adds circle to the circles that are allready drawn

Parameters
circle[in] circle to draw

◆ draw()

void draw ( const rw::graphics::DrawableNode::RenderInfo info,
rw::graphics::DrawableNode::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.

◆ setCircles()

void setCircles ( const std::vector< util::CircleModel > &  circles)

set the circles that is to be rendered

Parameters
circles[in] the vector of circles

◆ 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: