| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/sg/fpsclock.h>

Public Member Functions | |
| FPSClock (const VRSTime &start=VRSTime::zero(), const VRSTime &end=VRSTime::maxTime(), const VRSTime &delta=1.0) | |
| const VRSTime & | getStart () const |
| const VRSTime & | getEnd () const |
| const VRSTime & | getCurrent () const |
| const VRSTime & | getDelta () const |
| bool | isBeyondEnd () const |
| void | setStart (const VRSTime &start) |
| void | setEnd (const VRSTime &end) |
| void | setCurrent (const VRSTime ¤t) |
| void | setRange (const VRSTime &start, const VRSTime &end) |
| void | setDelta (const VRSTime &delta) |
| void | setRangeDelta (const VRSTime &start, const VRSTime &end, const VRSTime &delta) |
| void | advance () |
| virtual VRSTime | time () |
| Returns the current (model) time. | |
| VRS_TYPEINFO (FPSClock, Clock) | |
| VRS::FPSClock::FPSClock | ( | const VRSTime & | start = VRSTime::zero(), |
|
| const VRSTime & | end = VRSTime::maxTime(), |
|||
| const VRSTime & | delta = 1.0 | |||
| ) |
A frame-per-second clock sends time events within an explicitly given time interval. The progress of time is handled manually by 'advance()'. It is not a real-time clock.
| const VRSTime & VRS::FPSClock::getStart | ( | ) | const [inline] |
| const VRSTime & VRS::FPSClock::getEnd | ( | ) | const [inline] |
| const VRSTime & VRS::FPSClock::getCurrent | ( | ) | const [inline] |
| const VRSTime & VRS::FPSClock::getDelta | ( | ) | const [inline] |
| bool VRS::FPSClock::isBeyondEnd | ( | ) | const [inline] |
| void VRS::FPSClock::setStart | ( | const VRSTime & | start | ) |
| void VRS::FPSClock::setEnd | ( | const VRSTime & | end | ) |
| void VRS::FPSClock::setCurrent | ( | const VRSTime & | current | ) |
| void VRS::FPSClock::setDelta | ( | const VRSTime & | delta | ) |
| void VRS::FPSClock::setRangeDelta | ( | const VRSTime & | start, | |
| const VRSTime & | end, | |||
| const VRSTime & | delta | |||
| ) |
| void VRS::FPSClock::advance | ( | ) |
Time progress by one step. The step size is defined by the delta value. Advance calls 'tick', i.e., all associated time managers get informed about the new, current time.
| virtual VRSTime VRS::FPSClock::time | ( | ) | [virtual] |