Interface class to access Axis properties and functions.
More...
#include <Controller.h>
|
EAxisLocation | getLocation () const |
| Returns the location of the axis in the constellation of axes.
|
|
AxisMovements | getMovements () const |
| Returns the possible movements the is instance can make.
|
|
const char * | getName () const |
| Returns the name of this instance.
|
|
const char * | getDescription () const |
| Returns the description of this instance.
|
|
double | getCurrent (EAxisValueType avt) const |
| Returns the current position/velocity/acceleration.
|
|
bool | setCurrent (EAxisValueType avt, double val) |
| Sets the current position/velocity/acceleration. Only when not moving.
|
|
double | getAccuracy () const |
| Returns the accuracy for velocity and position.
|
|
double | getResolution () const |
| Returns the resolution of the axis.
|
|
double | getMinMax (EAxisMinMax amm) const |
| Gets the current extremes from this axis.
|
|
bool | setOffset (double ofs) |
| Set the position offset.
|
|
double | setOffset () const |
| Get the position offset.
|
|
double | getTarget (EAxisValueType avt) const |
| Returns the current velocity.
|
|
bool | setTarget (EAxisValueType avt, double val) |
| Sets the current velocity.
|
|
bool | setPosition (double value) |
| Sets the current position.
|
|
double | normalized (double pos) const |
| normalize the passed position for all unlimited rotation axes. Uses accuracy to find the actual position to normalize. The passed value is also returned.
|
|
bool | setMode (EAxisMode mode) |
| Sets the axis mode for operation. Returns false on failure.
|
|
EAxisMode | getMode () const |
| Returns the mode of operation.
|
|
bool | canModeChange (EAxisMode cur_mode, EAxisMode new_mode, bool pos_cmplt, bool vel_cmplt, bool con_cmplt) |
| Returns true if the mode can be changed.
|
|
|
| Axis (Controller *mc, EAxisLocation) |
| Constructor that registers itself at the passed controller.
|
|
virtual | ~Axis () |
| Virtual destructor for possible derived destructors.
|
|
Interface class to access Axis properties and functions.
◆ PtrVector
Easy to use vector for an array of Axis pointers.
◆ Axis()
Constructor that registers itself at the passed controller.
◆ ~Axis()
virtual sf::gmi::Controller::Axis::~Axis |
( |
| ) |
|
|
protectedvirtual |
Virtual destructor for possible derived destructors.
◆ canModeChange()
bool sf::gmi::Controller::Axis::canModeChange |
( |
EAxisMode |
cur_mode, |
|
|
EAxisMode |
new_mode, |
|
|
bool |
pos_cmplt, |
|
|
bool |
vel_cmplt, |
|
|
bool |
con_cmplt |
|
) |
| |
Returns true if the mode can be changed.
◆ getAccuracy()
double sf::gmi::Controller::Axis::getAccuracy |
( |
| ) |
const |
Returns the accuracy for velocity and position.
◆ getCurrent()
double sf::gmi::Controller::Axis::getCurrent |
( |
EAxisValueType |
avt | ) |
const |
Returns the current position/velocity/acceleration.
◆ getDescription()
const char * sf::gmi::Controller::Axis::getDescription |
( |
| ) |
const |
Returns the description of this instance.
◆ getLocation()
Returns the location of the axis in the constellation of axes.
◆ getMinMax()
double sf::gmi::Controller::Axis::getMinMax |
( |
EAxisMinMax |
amm | ) |
const |
Gets the current extremes from this axis.
◆ getMode()
EAxisMode sf::gmi::Controller::Axis::getMode |
( |
| ) |
const |
Returns the mode of operation.
◆ getMovements()
Returns the possible movements the is instance can make.
◆ getName()
const char * sf::gmi::Controller::Axis::getName |
( |
| ) |
const |
Returns the name of this instance.
◆ getResolution()
double sf::gmi::Controller::Axis::getResolution |
( |
| ) |
const |
Returns the resolution of the axis.
◆ getTarget()
double sf::gmi::Controller::Axis::getTarget |
( |
EAxisValueType |
avt | ) |
const |
Returns the current velocity.
◆ normalized()
double sf::gmi::Controller::Axis::normalized |
( |
double |
pos | ) |
const |
normalize the passed position for all unlimited rotation axes. Uses accuracy to find the actual position to normalize. The passed value is also returned.
◆ setCurrent()
bool sf::gmi::Controller::Axis::setCurrent |
( |
EAxisValueType |
avt, |
|
|
double |
val |
|
) |
| |
Sets the current position/velocity/acceleration. Only when not moving.
◆ setMode()
bool sf::gmi::Controller::Axis::setMode |
( |
EAxisMode |
mode | ) |
|
Sets the axis mode for operation. Returns false on failure.
◆ setOffset() [1/2]
double sf::gmi::Controller::Axis::setOffset |
( |
| ) |
const |
◆ setOffset() [2/2]
bool sf::gmi::Controller::Axis::setOffset |
( |
double |
ofs | ) |
|
◆ setPosition()
bool sf::gmi::Controller::Axis::setPosition |
( |
double |
value | ) |
|
Sets the current position.
◆ setTarget()
bool sf::gmi::Controller::Axis::setTarget |
( |
EAxisValueType |
avt, |
|
|
double |
val |
|
) |
| |
Sets the current velocity.
◆ _movements
Holds the possible movements.
The documentation for this class was generated from the following file: