version 3.3

VRS::TimeEvent Class Reference

VRS time event class. More...

#include <vrs/sg/timeevent.h>

Inheritance diagram for VRS::TimeEvent:

VRS::Event VRS::SharedObj VRS::Visitable

List of all members.

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
Clockclock () const
 can return NULL


Detailed Description

VRS time event class.

Constructor & Destructor Documentation

VRS::TimeEvent::TimeEvent ( Clock clock,
const Moment moment = Moment(),
const Moment lastMoment = Moment() 
)


Member Function Documentation

VRS::TimeEvent::VRS_TYPEINFO ( TimeEvent  ,
Event   
)

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.


The documentation for this class was generated from the following file:

Generated on Sat May 18 06:00:34 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact