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

SaveTrajectoryFltkMenu Class Reference

VMDFltkMenu subclass implementing a GUI for saving trajectory and coordinate frames to files. More...

#include <SaveTrajectoryFltkMenu.h>

Inheritance diagram for SaveTrajectoryFltkMenu:

VMDFltkMenu VMDMenu UIObject List of all members.

Public Methods

 SaveTrajectoryFltkMenu (VMDApp *)
int selectmol (int molindex)
 This will make the "molno"-th molecule be the selected one in the VMDMenu. The VMDMenu will return TRUE if it has processed this event, and FALSE if it ignores it. The first molecule starts at 0. More...

void do_save ()
void molchooser_activate_selection ()
 "Activates" the currently selected molchooser molecule, must be called after all calls to molchooser->value(xxx). More...

void select_atoms (const char *)

Protected Methods

int act_on_command (int, Command *)
 update the display due to a command being executed. Return whether any action was taken on this command. Arguments are the command type, command object, and the success of the command (T or F). More...


Protected Attributes

int selected_molid

Detailed Description

VMDFltkMenu subclass implementing a GUI for saving trajectory and coordinate frames to files.

Definition at line 34 of file SaveTrajectoryFltkMenu.h.


Constructor & Destructor Documentation

SaveTrajectoryFltkMenu::SaveTrajectoryFltkMenu VMDApp  
 

Definition at line 162 of file SaveTrajectoryFltkMenu.C.

References Command::ANIM_DELETE, UIObject::command_wanted, Command::MOL_ADDREP, Command::MOL_DEL, Command::MOL_DELREP, Command::MOL_MODREP, Command::MOL_MODREPITEM, Command::MOL_NEW, Command::MOL_RENAME, molchooser_cb, Command::PLUGIN_UPDATE, repchooser_cb, save_cb, selected_molid, size, VMDMENU_BROWSER_BG, VMDMENU_BROWSER_SEL, VMDMENU_CHOOSER_BG, VMDMENU_CHOOSER_SEL, and VMDMENU_VALUE_SEL.


Member Function Documentation

int SaveTrajectoryFltkMenu::act_on_command int    type,
Command   command
[protected, virtual]
 

update the display due to a command being executed. Return whether any action was taken on this command. Arguments are the command type, command object, and the success of the command (T or F).

Reimplemented from UIObject.

Definition at line 265 of file SaveTrajectoryFltkMenu.C.

References Command::ANIM_DELETE, UIObject::app, MolFilePlugin::can_write_timesteps, command, MolFilePlugin::extension, VMDApp::list_plugins, Command::MOL_ADDREP, Command::MOL_DEL, Command::MOL_DELREP, Command::MOL_MODREP, Command::MOL_MODREPITEM, Command::MOL_NEW, Command::MOL_RENAME, molchooser_activate_selection, n, MolFilePlugin::name, NULL, Command::PLUGIN_UPDATE, selected_molid, and set_chooser_from_string.

void SaveTrajectoryFltkMenu::do_save  
 

Definition at line 47 of file SaveTrajectoryFltkMenu.C.

References UIObject::app, VMDApp::atomSelParser, AtomSel::change, FileSpec::first, FileSpec::last, mask, MoleculeList::mol_from_id, VMDApp::molecule_id, VMDApp::molecule_numframes, VMDApp::molecule_savetrajectory, VMDApp::moleculeList, NULL, AtomSel::on, AtomSel::PARSE_SUCCESS, FileSpec::selection, FileSpec::stride, VMDApp::vmd_choose_file, FileSpec::WAIT_ALL, FileSpec::WAIT_BACK, and FileSpec::waitfor.

void SaveTrajectoryFltkMenu::molchooser_activate_selection  
 

"Activates" the currently selected molchooser molecule, must be called after all calls to molchooser->value(xxx).

Definition at line 121 of file SaveTrajectoryFltkMenu.C.

References UIObject::app, BaseMolecule::get_volume_data, MoleculeList::mol_from_id, VMDApp::molecule_id, VMDApp::molecule_numframes, VMDApp::moleculeList, VMDApp::molrep_get_selection, VolumetricData::name, VMDApp::num_molreps, BaseMolecule::num_volume_data, and selected_molid.

Referenced by act_on_command, and selectmol.

void SaveTrajectoryFltkMenu::select_atoms const char *   
 

Definition at line 158 of file SaveTrajectoryFltkMenu.C.

int SaveTrajectoryFltkMenu::selectmol int    molindex [virtual]
 

This will make the "molno"-th molecule be the selected one in the VMDMenu. The VMDMenu will return TRUE if it has processed this event, and FALSE if it ignores it. The first molecule starts at 0.

Reimplemented from VMDMenu.

Definition at line 320 of file SaveTrajectoryFltkMenu.C.

References UIObject::app, molchooser_activate_selection, and VMDApp::num_molecules.


Member Data Documentation

int SaveTrajectoryFltkMenu::selected_molid [protected]
 

Definition at line 50 of file SaveTrajectoryFltkMenu.h.

Referenced by act_on_command, molchooser_activate_selection, and SaveTrajectoryFltkMenu.


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