next up previous contents
Next: Constructors Up: CommandQueue Previous: CommandQueue

Description

CommandQueue maintains a queue of Command's, and will go through this queue and execute them when requested. The queue is first-in first-out. This object also has the ability to log commands to a file.

There is one global instance of this class in VMD, called commandQueue. It is used by all the user interface objects (UIObject classes). Each time a new action is requested by the user or some other part of VMD, a new Command instance is created and added to the CommandQueue. Within the main event loop of VMD, after each UIObject is checked for new events, the commands in the queue are all executed until the queue is empty (since the execution of one command may result in the queuing of a new command, this process continues until the queue is empty). Each time the queue is checked, the following occurs:


next up previous contents
Next: Constructors Up: CommandQueue Previous: CommandQueue

Justin Gullingsrud
Tue Apr 6 09:26:48 CDT 1999