Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CommandQueue Class Reference

Stores Commands to be run in a queue, notifies UIs when they are run. More...

#include <CommandQueue.h>

List of all members.

Public Methods

 CommandQueue (void)
 constructor. More...

 ~CommandQueue (void)
 destructor. More...

void register_UI (UIObject *)
 add a new UIObject. More...

void unregister_UI (UIObject *)
 remove a UIObject. More...

void append (Command *)
 enqueue a command, does not execute. More...

void runcommand (Command *)
 run a new command. More...

void execute_all (void)
 execute commands until queue is empty. More...

void check_events ()
 Have registered UI's check for events. More...


Detailed Description

Stores Commands to be run in a queue, notifies UIs when they are run.

Definition at line 51 of file CommandQueue.h.


Constructor & Destructor Documentation

CommandQueue::CommandQueue void   
 

constructor.

Definition at line 35 of file CommandQueue.C.

CommandQueue::~CommandQueue void   
 

destructor.

Definition at line 42 of file CommandQueue.C.

References ResizeArray< Command * >::num.


Member Function Documentation

void CommandQueue::append Command  
 

enqueue a command, does not execute.

Definition at line 76 of file CommandQueue.C.

References ResizeArray< Command * >::append.

Referenced by Molecule::close_coor_file.

void CommandQueue::check_events  
 

Have registered UI's check for events.

Definition at line 88 of file CommandQueue.C.

References UIObject::active, UIObject::check_event, and ResizeArray< UIObject * >::num.

Referenced by VMDApp::VMDupdate.

void CommandQueue::execute_all void   
 

execute commands until queue is empty.

Definition at line 80 of file CommandQueue.C.

References ResizeArray< Command * >::clear, n, ResizeArray< Command * >::num, and runcommand.

Referenced by VMDApp::VMDupdate.

void CommandQueue::register_UI UIObject  
 

add a new UIObject.

Definition at line 47 of file CommandQueue.C.

References ResizeArray< UIObject * >::append, and ResizeArray< UIObject * >::find.

Referenced by UIObject::UIObject.

void CommandQueue::runcommand Command  
 

run a new command.

Definition at line 59 of file CommandQueue.C.

References UIObject::act_on_command, Command::Cmdtype, Command::gettype, n, ResizeArray< UIObject * >::num, and UIObject::want_command.

Referenced by VMDApp::animation_set_dir, VMDApp::animation_set_frame, VMDApp::animation_set_speed, VMDApp::animation_set_stride, VMDApp::animation_set_style, DrawMolecule::append_frame, VMDApp::axes_set_location, DrawMolecule::change_ts, Spaceball::check_event, VMDApp::color_add_item, VMDApp::color_change_name, VMDApp::color_change_rgb, VMDApp::colorscale_setmethod, VMDApp::colorscale_setparams, DrawMolecule::delete_frame, VMDApp::depthcue_set_density, VMDApp::depthcue_set_end, VMDApp::depthcue_set_mode, VMDApp::depthcue_set_start, VMDApp::display_set_aa, VMDApp::display_set_ao, VMDApp::display_set_ao_ambient, VMDApp::display_set_ao_direct, VMDApp::display_set_background_mode, VMDApp::display_set_cachemode, VMDApp::display_set_culling, VMDApp::display_set_depthcue, VMDApp::display_set_dof, VMDApp::display_set_dof_fnumber, VMDApp::display_set_dof_focal_dist, VMDApp::display_set_eyesep, VMDApp::display_set_farclip, VMDApp::display_set_focallen, VMDApp::display_set_fps, VMDApp::display_set_nearclip, VMDApp::display_set_projection, VMDApp::display_set_rendermode, VMDApp::display_set_screen_distance, VMDApp::display_set_screen_height, VMDApp::display_set_shadows, VMDApp::display_set_stereo, VMDApp::display_set_stereo_swap, execute_all, VMDApp::filerender_option, VMDApp::filerender_render, DrawMolecule::force_recalc, help_cb, VMDApp::imd_connect, VMDApp::label_add, VMDApp::label_delete, VMDApp::label_set_text_size, VMDApp::label_set_text_thickness, VMDApp::label_set_textformat, VMDApp::label_set_textoffset, VMDApp::label_show, VMDApp::light_highlight, VMDApp::light_move, VMDApp::light_on, VMDApp::light_rotate, loadstate_cb, logconsole_cb, logfile_cb, logoff_cb, make_tcl_atomsel, MoleculeList::make_top, VMDApp::material_add, VMDApp::material_change, VMDApp::material_delete, VMDApp::material_rename, VMDApp::material_restore_default, VMDApp::menu_add_extension, VMDApp::menu_remove_extension, VMDApp::menu_show, VMDApp::mobile_set_mode, VMDApp::molecule_activate, VMDApp::molecule_add_volumetric, VMDApp::molecule_addrep, VMDApp::molecule_bondsrecalc, VMDApp::molecule_cancel_io, VMDApp::molecule_delete, VMDApp::molecule_delete_all, VMDApp::molecule_deleteframes, VMDApp::molecule_display, VMDApp::molecule_dupframe, VMDApp::molecule_fix, VMDApp::molecule_from_selection_list, VMDApp::molecule_load, VMDApp::molecule_make_top, VMDApp::molecule_modrep, VMDApp::molecule_new, VMDApp::molecule_reanalyze, VMDApp::molecule_rename, VMDApp::molecule_savetrajectory, VMDApp::molecule_set_color, VMDApp::molecule_set_material, VMDApp::molecule_set_selection, VMDApp::molecule_set_style, VMDApp::molecule_ssrecalc, VMDApp::molrep_delete, VMDApp::molrep_reset_scaleminmax, VMDApp::molrep_set_color, VMDApp::molrep_set_colorupdate, VMDApp::molrep_set_drawframes, VMDApp::molrep_set_instances, VMDApp::molrep_set_material, VMDApp::molrep_set_pbc, VMDApp::molrep_set_pbc_images, VMDApp::molrep_set_scaleminmax, VMDApp::molrep_set_selection, VMDApp::molrep_set_selupdate, VMDApp::molrep_set_smoothing, VMDApp::molrep_set_style, VMDApp::molrep_show, VMDApp::mouse_set_mode, PickList::pick_check, PickModeMolLabel::pick_graphics, PickModeUser::pick_molecule_start, PickModeMolLabel::pick_molecule_start, PickModeAddBond::pick_molecule_start, VMDApp::plugin_update, py_copyunitcell, py_imddetach, py_imdkeep, py_imdkill, py_imdpause, py_imdtransfer, UIObject::runcommand, VMDApp::scene_resetview, VMDApp::scene_rock, VMDApp::scene_rockoff, VMDApp::scene_rotate_by, VMDApp::scene_rotate_to, VMDApp::scene_scale_by, VMDApp::scene_scale_to, VMDApp::scene_translate_by, VMDApp::scene_translate_to, VMDApp::set_colorscale_colors, GeometryMol::set_pick_selection, GeometryMol::set_pick_value, VMDApp::spaceball_set_mode, VMDApp::stage_set_location, VMDApp::stage_set_numpanels, VMDApp::stage_set_size, text_cmd_gopython, text_cmd_imd, text_cmd_tool, text_cmd_videostream, VMDApp::tool_change_type, VMDApp::tool_create, VMDApp::tool_delete, VMDApp::tool_set_force_scale, VMDApp::tool_set_position_scale, VMDApp::tool_set_spring_scale, FreeVRButtons::update, VMDApp::VMDinit, and VMDreadStartup.

void CommandQueue::unregister_UI UIObject  
 

remove a UIObject.

Definition at line 52 of file CommandQueue.C.

References ResizeArray< UIObject * >::find, and ResizeArray< UIObject * >::remove.

Referenced by UIObject::~UIObject.


The documentation for this class was generated from the following files:
Generated on Fri Apr 19 02:46:45 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002