#include <logicalinputdevice.h>

Public Member Functions | |
| AxisToAxis (Axis *sourceAxis, double scale=1.0, double offset=0.0) | |
| Constructor. | |
| void | SetSourceAxis (Axis *sourceAxis) |
| Sets the source axis. | |
| Axis * | GetSourceAxis () |
| Returns the source axis. | |
| virtual void | SetTargetAxis (LogicalAxis *targetAxis) |
| Sets the target axis. | |
| virtual LogicalAxis * | GetTargetAxis () |
| Gets the target axis. | |
| void | SetTransformationParameters (double scale, double offset) |
| Sets this mapping's linear transformation parameters. | |
| void | GetTransformationParameters (double *scale, double *offset) const |
| Retrieves this mapping's linear transformation parameters. | |
| virtual bool | AxisStateChanged (const Axis *axis, double oldState, double newState, double delta) |
| Called when an axis' state has changed. | |
Protected Member Functions | |
| virtual | ~AxisToAxis () |
| dtCore::AxisToAxis::AxisToAxis | ( | Axis * | sourceAxis, | |
| double | scale = 1.0, |
|||
| double | offset = 0.0 | |||
| ) |
Constructor.
| sourceAxis | the source axis | |
| scale | the optional scale parameter | |
| offset | the optional offset parameter |
| dtCore::AxisToAxis::~AxisToAxis | ( | ) | [protected, virtual] |
| void dtCore::AxisToAxis::SetSourceAxis | ( | Axis * | sourceAxis | ) |
Sets the source axis.
| sourceAxis | the new source axis |
| Axis * dtCore::AxisToAxis::GetSourceAxis | ( | ) |
Returns the source axis.
| void dtCore::AxisToAxis::SetTargetAxis | ( | LogicalAxis * | targetAxis | ) | [virtual] |
| LogicalAxis * dtCore::AxisToAxis::GetTargetAxis | ( | ) | [virtual] |
| void dtCore::AxisToAxis::SetTransformationParameters | ( | double | scale, | |
| double | offset | |||
| ) |
Sets this mapping's linear transformation parameters.
| scale | the new scale parameter | |
| offset | the new offset parameter |
| void dtCore::AxisToAxis::GetTransformationParameters | ( | double * | scale, | |
| double * | offset | |||
| ) | const |
Retrieves this mapping's linear transformation parameters.
| scale | a pointer to the location in which to store the scale parameter | |
| offset | a pointer to the location in which to store the offset parameter |
| bool dtCore::AxisToAxis::AxisStateChanged | ( | const Axis * | axis, | |
| double | oldState, | |||
| double | newState, | |||
| double | delta | |||
| ) | [virtual] |
Called when an axis' state has changed.
| axis | the changed axis | |
| oldState | the old state of the axis | |
| newState | the new state of the axis | |
| delta | a delta value indicating stateless motion |
| axis | the changed axis | |
| oldState | the old state of the axis | |
| newState | the new state of the axis | |
| delta | a delta value indicating stateless motion |
Implements dtCore::AxisListener.