Ligament node on a Mechanism2d.
More...
#include <wpi/smartdashboard/MechanismLigament2d.hpp>
Ligament node on a Mechanism2d.
A ligament can have its length changed (like an elevator) or angle changed, like an arm.
- See also
- Mechanism2d
◆ MechanismLigament2d()
| wpi::MechanismLigament2d::MechanismLigament2d |
( |
std::string_view | name, |
|
|
double | length, |
|
|
wpi::units::degree_t | angle, |
|
|
double | lineWidth = 6, |
|
|
const wpi::util::Color8Bit & | color = {235, 137, 52} ) |
◆ GetAngle()
| double wpi::MechanismLigament2d::GetAngle |
( |
| ) |
|
Get the ligament's angle relative to its parent.
- Returns
- the angle
◆ GetColor()
Get the ligament color.
- Returns
- the color of the line
◆ GetLength()
| double wpi::MechanismLigament2d::GetLength |
( |
| ) |
|
Get the ligament length.
- Returns
- the line length
◆ GetLineWeight()
| double wpi::MechanismLigament2d::GetLineWeight |
( |
| ) |
|
Get the line thickness.
- Returns
- the line thickness
◆ SetAngle()
| void wpi::MechanismLigament2d::SetAngle |
( |
wpi::units::degree_t | angle | ) |
|
Set the ligament's angle relative to its parent.
- Parameters
-
◆ SetColor()
Set the ligament color.
- Parameters
-
| color | the color of the line |
◆ SetLength()
| void wpi::MechanismLigament2d::SetLength |
( |
double | length | ) |
|
Set the ligament's length.
- Parameters
-
◆ SetLineWeight()
| void wpi::MechanismLigament2d::SetLineWeight |
( |
double | lineWidth | ) |
|
Set the line thickness.
- Parameters
-
| lineWidth | the line thickness |
◆ UpdateEntries()
The documentation for this class was generated from the following file: