![]() |
Scanframe Modular Application 0.1.0
|
Interface class to access Axis properties and functions. More...
#include <Controller.h>
Public Types | |
| typedef TVector< Axis * > | PtrVector |
| Easy to use vector for an array of Axis pointers. | |
Public Member Functions | |
| 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. | |
| value_type | getCurrent (EAxisValueType avt) const |
| Returns the current position/velocity/acceleration. | |
| bool | setCurrent (EAxisValueType avt, value_type val) |
| Sets the current position/velocity/acceleration. Only when not moving. | |
| value_type | getAccuracy () const |
| Returns the accuracy for velocity and position. | |
| value_type | getResolution () const |
| Returns the resolution of the axis. | |
| value_type | getMinMax (EAxisMinMax amm) const |
| Gets the current extremes from this axis. | |
| bool | setOffset (double ofs) |
| Set the position offset. | |
| value_type | setOffset () const |
| Get the position offset. | |
| double | getTarget (EAxisValueType avt) const |
| Returns the current velocity. | |
| bool | setTarget (EAxisValueType avt, value_type val) |
| Sets the current velocity. | |
| bool | setPosition (value_type value) |
| Sets the current position. | |
| value_type | normalized (value_type 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_complete, bool vel_complete, bool con_complete) |
| Returns true if the mode can be changed. | |
Protected Member Functions | |
| Axis (Controller *mc, EAxisLocation) | |
| Constructor that registers itself at the passed controller. | |
| virtual | ~Axis () |
| Virtual destructor for possible derived destructors. | |
Protected Attributes | |
| AxisMovements | _movements |
| Holds the possible movements. | |
Interface class to access Axis properties and functions.
| typedef TVector<Axis*> sf::gmi::Controller::Axis::PtrVector |
Easy to use vector for an array of Axis pointers.
|
protected |
Constructor that registers itself at the passed controller.
|
protectedvirtual |
Virtual destructor for possible derived destructors.
| 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.
Returns the accuracy for velocity and position.
| value_type sf::gmi::Controller::Axis::getCurrent | ( | EAxisValueType | avt | ) | const |
Returns the current position/velocity/acceleration.
| const char * sf::gmi::Controller::Axis::getDescription | ( | ) | const |
Returns the description of this instance.
Returns the location of the axis in the constellation of axes.
| value_type sf::gmi::Controller::Axis::getMinMax | ( | EAxisMinMax | amm | ) | const |
Gets the current extremes from this axis.
| EAxisMode sf::gmi::Controller::Axis::getMode | ( | ) | const |
Returns the mode of operation.
| AxisMovements sf::gmi::Controller::Axis::getMovements | ( | ) | const |
Returns the possible movements the is instance can make.
| const char * sf::gmi::Controller::Axis::getName | ( | ) | const |
Returns the name of this instance.
Returns the resolution of the axis.
| double sf::gmi::Controller::Axis::getTarget | ( | EAxisValueType | avt | ) | const |
Returns the current velocity.
| value_type sf::gmi::Controller::Axis::normalized | ( | value_type | 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 sf::gmi::Controller::Axis::setCurrent | ( | EAxisValueType | avt, |
| value_type | val ) |
Sets the current position/velocity/acceleration. Only when not moving.
| bool sf::gmi::Controller::Axis::setMode | ( | EAxisMode | mode | ) |
Sets the axis mode for operation. Returns false on failure.
Get the position offset.
| bool sf::gmi::Controller::Axis::setOffset | ( | double | ofs | ) |
Set the position offset.
| bool sf::gmi::Controller::Axis::setPosition | ( | value_type | value | ) |
Sets the current position.
| bool sf::gmi::Controller::Axis::setTarget | ( | EAxisValueType | avt, |
| value_type | val ) |
Sets the current velocity.
|
protected |
Holds the possible movements.