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

Public Member Functions | |
| VRS_TYPEINFO (TimeEvent, Event) | |
| TimeEvent (Clock *clock, const Moment &moment=Moment(), const Moment &lastMoment=Moment()) | |
| void | setMoment (const Moment &m) |
| Moment | getMoment () const |
| void | setLastMoment (const Moment &lastM) |
| Moment | getLastMoment () const |
| Clock * | clock () const |
| can return NULL | |
| VRS::TimeEvent::TimeEvent | ( | Clock * | clock, | |
| const Moment & | moment = Moment(), |
|||
| const Moment & | lastMoment = Moment() | |||
| ) |
| void VRS::TimeEvent::setMoment | ( | const Moment & | m | ) |
| Moment VRS::TimeEvent::getMoment | ( | ) | const |
| void VRS::TimeEvent::setLastMoment | ( | const Moment & | lastM | ) |
| Moment VRS::TimeEvent::getLastMoment | ( | ) | const |
The last moment specifies the moment a time event has been generated before this time event.
| Clock* VRS::TimeEvent::clock | ( | ) | const |
can return NULL
The moment associated with a time event can be modified. (this is done, for example, by time modifier nodes). `clock' returns the clock by which this event was generated. Note that access to the clock results in undefined behavior after the event's traversal of the graph is finished. To get around this (usually there is no need to), the clock needs to be referenced.