RenderForceTorque makes a visualization of forces and torques.
More...
#include <RenderForceTorque.hpp>
Inherits Render.
|
| Render () |
| Only instances of classes inheriting Render is allowed.
|
|
RenderForceTorque makes a visualization of forces and torques.
◆ draw()
- 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.
◆ getColorForce()
Get the current color used for the force arrow.
- Returns
- the color as (r,g,b) vector.
◆ getColorTorque()
Get the current color used for the torque arrow.
- Returns
- the color as (r,g,b) vector.
◆ getForce()
Get the force currently set.
- Returns
- the force.
◆ getScaleForce()
float getScaleForce |
( |
| ) |
const |
Get the current scaling of the force vector in meters per Newton.
- Returns
- the scale factor
◆ getScaleTorque()
float getScaleTorque |
( |
| ) |
const |
Get the current scaling of the torque vector in meters per Newton meter.
- Returns
- the scale factor
◆ getTorque()
Get the torque currently set.
- Returns
- the torque.
◆ setColorForce()
void setColorForce |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
Sets color of the force arrow.
- Parameters
-
r | [in] red color component |
g | [in] green color component |
b | [in] blue color component |
◆ setColorTorque()
void setColorTorque |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
Sets color of the torque arrow.
- Parameters
-
r | [in] red color component |
g | [in] green color component |
b | [in] blue color component |
◆ setForce()
Set the force.
- Parameters
-
◆ setScaleForce()
void setScaleForce |
( |
float |
scale | ) |
|
Set the current scaling of the force vector in meters per Newton.
- Parameters
-
scale | [in] the scale factor |
◆ setScales()
void setScales |
( |
float |
scaleForce, |
|
|
float |
scaleTorque |
|
) |
| |
Set the current scaling of the force and torque arrows in meters per unit.
- Parameters
-
scaleForce | [in] the scale factor for force |
scaleTorque | [in] the scale factor for torque |
◆ setScaleTorque()
void setScaleTorque |
( |
float |
scale | ) |
|
Set the current scaling of the torque vector in meters per Newton meter.
- Parameters
-
scale | [in] the scale factor |
◆ setTorque()
Set the torque.
- Parameters
-
The documentation for this class was generated from the following file: