![]() |
RobWorkProject
23.9.11-
|
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< Render > | Ptr |
| 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. | |
renderer for rendering points
|
inline |
add a single point
| p | [in] point to add |
| void addPoints | ( | const std::vector< rw::math::Vector3D<>> & | points | ) |
adds points to the list of points
| points | [in] points to be added |
|
virtual |
| 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.
| void setColor | ( | double | r, |
| double | g, | ||
| double | b | ||
| ) |
set the color used for the model
| r | [in] red color value |
| g | [in] green color value |
| b | [in] blue color value |
| void setPoints | ( | const std::vector< rw::math::Vector3D<>> & | points | ) |
sets the points that are t be rendered
| points | [in] points to be rendered |