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

renderer for rendering points More...

#include <RenderPoints.hpp>

Inherits Render.

Public Member Functions

 RenderPoints ()
 constructor
 
virtual ~RenderPoints ()
 destructor
 
void addPoint (const rw::math::Vector3D<> &p)
 add a single point More...
 
void addPoints (const std::vector< rw::math::Vector3D<>> &points)
 adds points to the list of points More...
 
void setPoints (const std::vector< rw::math::Vector3D<>> &points)
 sets the points that are t 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 points
 
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

renderer for rendering points

Member Function Documentation

◆ addPoint()

void addPoint ( const rw::math::Vector3D<> &  p)
inline

add a single point

Parameters
p[in] point to add

◆ addPoints()

void addPoints ( const std::vector< rw::math::Vector3D<>> &  points)

adds points to the list of points

Parameters
points[in] points to be added

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

◆ 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

◆ setPoints()

void setPoints ( const std::vector< rw::math::Vector3D<>> &  points)

sets the points that are t be rendered

Parameters
points[in] points to be rendered

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