![]() |
RobWorkProject
23.9.11-
|
Render for linear and angular velocity. More...
#include <RenderVelocity.hpp>
Inherits Render.
Public Types | |
typedef rw::core::Ptr< RenderVelocity > | Ptr |
smart pointer type to this class | |
![]() | |
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 | |
Public Member Functions | |
RenderVelocity () | |
Constructor. | |
virtual | ~RenderVelocity () |
Destructor. | |
void | draw (const rw::graphics::DrawableNode::RenderInfo &info, rw::graphics::DrawableNode::DrawType type, double alpha) const |
rw::math::VelocityScrew6D | getVelocity () const |
Get the currently set velocity. More... | |
float | getScaleLinear () const |
Get the current scaling of the linear velocity in meters per meter per second. More... | |
float | getScaleAngular () const |
Get the angular scaling of the angular velocity in meters per radians per second. More... | |
void | setVelocity (rw::math::VelocityScrew6D<> velocity) |
Set the velocity. More... | |
void | setScaleLinear (float scale) |
Set the scaling of the linear velocity in meters per meter per second. More... | |
void | setScaleAngular (float scale) |
Set the angular scaling of the angular velocity in meters per radians per second. More... | |
void | setScales (float scaleLinear, float scaleAngular) |
Set the current scaling of the linar and angular velocity arrows. More... | |
rw::math::Vector3D< float > | getColorLinear () const |
Get the current color used for the linear velocity arrow. More... | |
rw::math::Vector3D< float > | getColorAngular () const |
Get the current color used for the angular velocity arrow. More... | |
void | setColorLinear (float r, float g, float b) |
Sets color of the linear velocity arrow. More... | |
void | setColorAngular (float r, float g, float b) |
Sets color of the angular velocity arrow. More... | |
void | setResolution (unsigned int resolution) |
Set the resolution of the rendering. More... | |
![]() | |
virtual | ~Render () |
destructor | |
Additional Inherited Members | |
![]() | |
Render () | |
Only instances of classes inheriting Render is allowed. | |
Render for linear and angular velocity.
|
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.
rw::math::Vector3D<float> getColorAngular | ( | ) | const |
Get the current color used for the angular velocity arrow.
rw::math::Vector3D<float> getColorLinear | ( | ) | const |
Get the current color used for the linear velocity arrow.
float getScaleAngular | ( | ) | const |
Get the angular scaling of the angular velocity in meters per radians per second.
float getScaleLinear | ( | ) | const |
Get the current scaling of the linear velocity in meters per meter per second.
rw::math::VelocityScrew6D getVelocity | ( | ) | const |
Get the currently set velocity.
void setColorAngular | ( | float | r, |
float | g, | ||
float | b | ||
) |
Sets color of the angular velocity arrow.
r | [in] red color component. |
g | [in] green color component. |
b | [in] blue color component. |
void setColorLinear | ( | float | r, |
float | g, | ||
float | b | ||
) |
Sets color of the linear velocity arrow.
r | [in] red color component. |
g | [in] green color component. |
b | [in] blue color component. |
void setResolution | ( | unsigned int | resolution | ) |
Set the resolution of the rendering.
The round parts will be discretized in the given resolution. Default value is 32.
resolution |
void setScaleAngular | ( | float | scale | ) |
Set the angular scaling of the angular velocity in meters per radians per second.
scale | [in] the scale factor. |
void setScaleLinear | ( | float | scale | ) |
Set the scaling of the linear velocity in meters per meter per second.
scale | [in] the scale factor. |
void setScales | ( | float | scaleLinear, |
float | scaleAngular | ||
) |
Set the current scaling of the linar and angular velocity arrows.
scaleLinear | [in] the scale factor for linear velocity. |
scaleAngular | [in] the scale factor for angular velocity. |
void setVelocity | ( | rw::math::VelocityScrew6D<> | velocity | ) |
Set the velocity.
velocity | [in] the velocity. |