Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
IntervalManager Class Reference
Inheritance diagram for IntervalManager:
CIntervalManager

Public Member Functions

 __init__ (self, globalPtr=0)
 
 addInterval (self, interval)
 
 finishIntervalsMatching (self, pattern)
 
 getInterval (self, name)
 
 getIntervalsMatching (self, pattern)
 
 interrupt (self)
 
 pauseIntervalsMatching (self, pattern)
 
 removeInterval (self, interval)
 
 step (self)
 
- Public Member Functions inherited from CIntervalManager
 __init__ ()
 
int addCInterval (CInterval interval, bool external)
 Adds the interval to the manager, and returns a unique index for the interval.
 
int findCInterval (str name)
 Returns the index associated with the named interval, if there is such an interval, or -1 if there is not.
 
CInterval getCInterval (int index)
 Returns the interval associated with the given index.
 
EventQueue getEventQueue ()
 Returns the custom event queue to be used for throwing done events from intervals as they finish.
 
int getMaxIndex ()
 Returns one more than the largest interval index number in the manager.
 
int getNextEvent ()
 This should be called by the scripting language after each call to step().
 
int getNextRemoval ()
 This should be called by the scripting language after each call to step().
 
int getNumIntervals ()
 Returns the number of currently active intervals.
 
int interrupt ()
 Pauses or finishes (removes from the active queue) all intervals tagged with auto_pause or auto_finish set to true.
 
 output (Ostream out)
 
 removeCInterval (int index)
 Removes the indicated interval from the queue immediately.
 
 setEventQueue (EventQueue event_queue)
 Specifies a custom event queue to be used for throwing done events from intervals as they finish.
 
 step ()
 This should be called every frame to do the processing for all the active intervals.
 
 write (Ostream out)
 

Public Attributes

 cObj
 
 dd
 
 eventQueue
 
 ivals
 
 MyEventmanager
 
 removedIvals
 

Additional Inherited Members

- Static Public Member Functions inherited from CIntervalManager
static CIntervalManager getGlobalPtr ()
 Returns the pointer to the one global CIntervalManager object.
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
globalPtr = 0 )

Member Function Documentation

◆ addInterval()

addInterval ( self,
interval )

◆ finishIntervalsMatching()

finishIntervalsMatching ( self,
pattern )

◆ getInterval()

getInterval ( self,
name )

◆ getIntervalsMatching()

getIntervalsMatching ( self,
pattern )

◆ interrupt()

interrupt ( self)

◆ pauseIntervalsMatching()

pauseIntervalsMatching ( self,
pattern )

◆ removeInterval()

removeInterval ( self,
interval )

◆ step()

step ( self)

Member Data Documentation

◆ cObj

cObj

◆ dd

dd

◆ eventQueue

eventQueue

◆ ivals

ivals

◆ MyEventmanager

MyEventmanager

◆ removedIvals

removedIvals