version 3.3

VRS::TimeGroup Class Reference

Poly Behavior Node with VRSTime Layout. More...

#include <vrs/sg/timegroup.h>

Inheritance diagram for VRS::TimeGroup:

VRS::PolyBehavior VRS::BehaviorNode VRS::SharedObj VRS::Visitable VRS::TimeSequence VRS::TimeSimultaneity VRS::TimeTable

List of all members.

Public Member Functions

 TimeGroup ()
void append (BehaviorNode *node)
void prepend (BehaviorNode *node)
void insert (int, BehaviorNode *node)
void refreshMarks (BehaviorNode *b)
void remove (int i)
void remove (BehaviorNode *node)
void clear ()
bool contains (BehaviorNode *node) const
virtual int childNodes () const
virtual BehaviorNodechildNode (int i) const
virtual TimeRequirement timeRequirement () const
virtual void activate (int hint=BehaviorNode::NoHint)
virtual void deactivate (int hint=BehaviorNode::NoHint)
void registerProgressCB (Callback2< const TimeGroup *, unsigned int > *cb)
void unregisterProgressCB (Callback2< const TimeGroup *, unsigned int > *cb)
virtual
BehaviorNode::InvalidationHint 
handle (Event *)
virtual void modified ()
 VRS_TYPEINFO (TimeGroup, PolyBehavior)

Protected Member Functions

virtual void childConfiguration (bool inserted, BehaviorNode *node)
virtual TimeRequirement buildTimeRequirements ()=0
virtual void buildLifeTimes (TimeEvent *firstTimeEvent)=0
void registerChild (int child, VRSTime start, VRSTime end)
TimeEventtimeEvent (const Moment &)

Classes

struct  ChildInterval
struct  TimeMark


Detailed Description

Poly Behavior Node with VRSTime Layout.

Constructor & Destructor Documentation

VRS::TimeGroup::TimeGroup (  ) 


Member Function Documentation

void VRS::TimeGroup::append ( BehaviorNode node  ) 

Adds the specified behavior node to the list of children. The behavior node will become the last child of the list and is willfully DEACTIVATED since behavior nodes are now active by default.

void VRS::TimeGroup::prepend ( BehaviorNode node  ) 

Adds the specified behavior node to the list of children. The behavior node will become the first child of the list and is willfully DEACTIVATED since behavior nodes are now active by default.

void VRS::TimeGroup::insert ( int  ,
BehaviorNode node 
)

Adds the specified behavior node to the list of children. The behavior node will be inserted at the specified position and is willfully DEACTIVATED since behavior nodes are now active by default.

void VRS::TimeGroup::refreshMarks ( BehaviorNode b  ) 

void VRS::TimeGroup::remove ( int  i  ) 

void VRS::TimeGroup::remove ( BehaviorNode node  ) 

void VRS::TimeGroup::clear (  ) 

bool VRS::TimeGroup::contains ( BehaviorNode node  )  const

virtual int VRS::TimeGroup::childNodes (  )  const [virtual]

Implements VRS::PolyBehavior.

virtual BehaviorNode* VRS::TimeGroup::childNode ( int  i  )  const [virtual]

'childNodes' returns the number of subgraphs associated to the behavior node. 'childNode' returns the handle to the i-th child node.

Implements VRS::PolyBehavior.

virtual TimeRequirement VRS::TimeGroup::timeRequirement (  )  const [virtual]

A behavior node defines its time requirement. The default time requirement is set to "undefined".

Reimplemented from VRS::BehaviorNode.

virtual void VRS::TimeGroup::activate ( int  hint = BehaviorNode::NoHint  )  [virtual]

Reimplemented from VRS::BehaviorNode.

virtual void VRS::TimeGroup::deactivate ( int  hint = BehaviorNode::NoHint  )  [virtual]

Reimplemented from VRS::BehaviorNode.

void VRS::TimeGroup::registerProgressCB ( Callback2< const TimeGroup *, unsigned int > *  cb  ) 

void VRS::TimeGroup::unregisterProgressCB ( Callback2< const TimeGroup *, unsigned int > *  cb  ) 

'Callback' objects can observe the deactivation of child nodes. The argument for the callback is a pointer to the TimeGroup and an integer as index of the child which has been deactivated.

virtual BehaviorNode::InvalidationHint VRS::TimeGroup::handle ( Event  )  [virtual]

VRSTime behavior groups can receive time events and propagate them to their child nodes. Other events are not handled.

Implements VRS::BehaviorNode.

virtual void VRS::TimeGroup::modified (  )  [virtual]

Reimplemented from VRS::SharedObj.

VRS::TimeGroup::VRS_TYPEINFO ( TimeGroup  ,
PolyBehavior   
)

virtual void VRS::TimeGroup::childConfiguration ( bool  inserted,
BehaviorNode node 
) [protected, virtual]

Reimplemented in VRS::TimeTable.

virtual TimeRequirement VRS::TimeGroup::buildTimeRequirements (  )  [protected, pure virtual]

virtual void VRS::TimeGroup::buildLifeTimes ( TimeEvent firstTimeEvent  )  [protected, pure virtual]

void VRS::TimeGroup::registerChild ( int  child,
VRSTime  start,
VRSTime  end 
) [protected]

TimeEvent* VRS::TimeGroup::timeEvent ( const Moment  )  [protected]


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