Inheritance diagram for Eaagles::Instruments::LcRotarySwitch:


Public Member Functions | |
| LcRotarySwitch () | |
| bool | setNumPositions (const int newPositions) |
| int | getNumPositions () |
| bool | setStartPosition (const int newStartPosition) |
| int | getStartPosition () |
| bool | setStartAngle (const float newStartAngle) |
| float | getStartAngle () |
| bool | setFinishAngle (const float newFinishAngle) |
| float | getFinishAngle () |
| int | getCurrentPosition () |
| virtual void | draw () |
| virtual bool | onSingleClick () |
| virtual bool | onDoubleClick () |
| virtual bool | event (const int event, Basic::LcObject *const obj=0) |
Protected Member Functions | |
| bool | setSlotNumPositions (const Basic::LcNumber *newType) |
| bool | setSlotStartPosition (const Basic::LcNumber *newType) |
| bool | setSlotStartAngle (const Basic::LcNumber *newType) |
| bool | setSlotFinishAngle (const Basic::LcNumber *newType) |
Private Member Functions | |
| void | reInitialize () |
Private Attributes | |
| int | numPositions |
| int | startPosition |
| float | startAngle |
| float | finishAngle |
| float | degPerMovement |
| int | currentPosition |
| float | currentAngle |
| Eaagles::Instruments::LcRotarySwitch::LcRotarySwitch | ( | ) |
| bool Eaagles::Instruments::LcRotarySwitch::setNumPositions | ( | const int | newPositions | ) | [inline] |
Set total number of switch positions.
| int Eaagles::Instruments::LcRotarySwitch::getNumPositions | ( | ) | [inline] |
Get total number of switch positions.
| bool Eaagles::Instruments::LcRotarySwitch::setStartPosition | ( | const int | newStartPosition | ) | [inline] |
Set the switch starting position.
| int Eaagles::Instruments::LcRotarySwitch::getStartPosition | ( | ) | [inline] |
Get the switch starting position.
| bool Eaagles::Instruments::LcRotarySwitch::setStartAngle | ( | const float | newStartAngle | ) | [inline] |
Set position 1 physical switch angle (deg).
| float Eaagles::Instruments::LcRotarySwitch::getStartAngle | ( | ) | [inline] |
Get position 1 physical switch angle (deg).
| bool Eaagles::Instruments::LcRotarySwitch::setFinishAngle | ( | const float | newFinishAngle | ) | [inline] |
Set finish position physical switch angle (deg).
| float Eaagles::Instruments::LcRotarySwitch::getFinishAngle | ( | ) | [inline] |
Get finish position physical switch angle (deg).
| int Eaagles::Instruments::LcRotarySwitch::getCurrentPosition | ( | ) | [inline] |
Get current switch position.
| void Eaagles::Instruments::LcRotarySwitch::draw | ( | ) | [virtual] |
| bool Eaagles::Instruments::LcRotarySwitch::onSingleClick | ( | ) | [virtual] |
Right now, this function merely detects when the button has been clicked, but it can be overridden to do anything.
Reimplemented from Eaagles::Instruments::LcButton.
| bool Eaagles::Instruments::LcRotarySwitch::onDoubleClick | ( | ) | [virtual] |
right mouse click - rotate switch to previous position
| virtual bool Eaagles::Instruments::LcRotarySwitch::event | ( | const int | event, | |
| Basic::LcObject *const | obj = 0 | |||
| ) | [virtual] |
| bool Eaagles::Instruments::LcRotarySwitch::setSlotNumPositions | ( | const Basic::LcNumber * | newType | ) | [protected] |
Sets the number of physical switch positions.
| bool Eaagles::Instruments::LcRotarySwitch::setSlotStartPosition | ( | const Basic::LcNumber * | newType | ) | [protected] |
Sets the starting physical switch position.
| bool Eaagles::Instruments::LcRotarySwitch::setSlotStartAngle | ( | const Basic::LcNumber * | newType | ) | [protected] |
Set position 1 switch angle.
| bool Eaagles::Instruments::LcRotarySwitch::setSlotFinishAngle | ( | const Basic::LcNumber * | newType | ) | [protected] |
Sets ending position switch angle.
| void Eaagles::Instruments::LcRotarySwitch::reInitialize | ( | ) | [private] |
helper function to initialize values upon change
int Eaagles::Instruments::LcRotarySwitch::numPositions [private] |
number of physical switch positions
int Eaagles::Instruments::LcRotarySwitch::startPosition [private] |
starting switch position
float Eaagles::Instruments::LcRotarySwitch::startAngle [private] |
starting position angle (deg)
float Eaagles::Instruments::LcRotarySwitch::finishAngle [private] |
finish position angle (deg)
float Eaagles::Instruments::LcRotarySwitch::degPerMovement [private] |
degrees between positions
int Eaagles::Instruments::LcRotarySwitch::currentPosition [private] |
current switch position
float Eaagles::Instruments::LcRotarySwitch::currentAngle [private] |
current switch angle
1.5.0