Interface class to access Axis properties and functions.
More...
#include <Controller.h>
|
| 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_complete, |
|
|
bool |
vel_complete, |
|
|
bool |
con_complete |
|
) |
| |
Returns true if the mode can be changed.
◆ getAccuracy()
value_type sf::gmi::Controller::Axis::getAccuracy |
( |
| ) |
const |
Returns the accuracy for velocity and position.
◆ getCurrent()
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()
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()
value_type 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()
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()
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]
value_type sf::gmi::Controller::Axis::setOffset |
( |
| ) |
const |
◆ setOffset() [2/2]
bool sf::gmi::Controller::Axis::setOffset |
( |
double |
ofs | ) |
|
◆ setPosition()
bool sf::gmi::Controller::Axis::setPosition |
( |
value_type |
value | ) |
|
Sets the current position.
◆ setTarget()
Sets the current velocity.
◆ _movements
Holds the possible movements.
The documentation for this class was generated from the following file: