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

GraphicsFltkMenu Class Reference

VMDFltkMenu subclass implementing a GUI for controlling graphical representations of molecules. More...

#include <GraphicsFltkMenu.h>

Inheritance diagram for GraphicsFltkMenu:

VMDFltkMenu VMDMenu UIObject List of all members.

Public Methods

 GraphicsFltkMenu (VMDApp *)
 ~GraphicsFltkMenu ()
int selectmol (int molno)
 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 update_molchooser ()
void update_repbrowser (bool remember_position=false)
void update_rep ()
void update_repindex ()
void update_pbc ()
void set_pbc (int, int)
void reset_rep ()
void update_selection (const char *txt)
 put the given text into the selection input and perform the callback. If txt is NULL, then restore the last known good selection text. More...

const char * selectiontext () const
int auto_update () const
 Returns true if changes to reps should be applied immediately. More...

void set_autoupdate (int)
 sets selection autoupdate for the currently highlighted rep. More...

void set_colorupdate (int)
 sets color autoupdate for the currently highlighted rep. More...

void use_colorscale_minmax ()
 Cause the current rep to use the current color scale data range values. More...

void use_colorscale_auto ()
 Cause the current rep to autoscale its color scale data range. More...

char * create_repcmd ()
char * create_colorcmd ()
char * create_selcmd ()
char * create_matcmd ()
char * create_multiframecmd ()
void colindex_visible ()
void volindex_visible ()
void volindex_update ()
void show_repcontrols ()
void init_colorchooser ()
void init_materialchooser ()
void init_stylechooser ()

Public Attributes

VMDAppapp
 pointer to parent instance of VMD. More...

int molindex
int repindex
SelectionBuilderselbuilder
NameList< GraphicsFltkRep * > repcontrols

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...


Detailed Description

VMDFltkMenu subclass implementing a GUI for controlling graphical representations of molecules.

Definition at line 45 of file GraphicsFltkMenu.h.


Constructor & Destructor Documentation

GraphicsFltkMenu::GraphicsFltkMenu VMDApp  
 

Definition at line 231 of file GraphicsFltkMenu.C.

References NameList< GraphicsFltkRep * >::add_name, app, Command::ATOMSEL_ADDMACRO, Command::ATOMSEL_DELMACRO, VMDApp::atomSelParser, autoupdate_cb, Scene::color_name, colorscale_auto_cb, colorscale_minmax_cb, colorupdate_cb, UIObject::command_wanted, CTRHEIGHT, CTRWIDTH, NameList< GraphicsFltkRep * >::data, init_colorchooser, init_materialchooser, init_stylechooser, isosurface_cbdata::isorep, Command::MATERIAL_ADD, Command::MATERIAL_DELETE, Command::MATERIAL_RENAME, Command::MOL_ADDREP, Command::MOL_DEL, Command::MOL_DELREP, Command::MOL_DRAWFRAMES, Command::MOL_MODREP, Command::MOL_MODREPITEM, Command::MOL_NEW, Command::MOL_NUMPERIODIC, Command::MOL_ON, Command::MOL_RENAME, Command::MOL_REPCOLORUPDATE, Command::MOL_REPSELUPDATE, Command::MOL_SCALEMINMAX, Command::MOL_SHOWPERIODIC, Command::MOL_SHOWREP, Command::MOL_SMOOTHREP, Command::MOL_VOLUME, molindex, NULL, NameList< GraphicsFltkRep * >::num, orbital_cbdata::orbrep, quicksurf_cbdata::qsurfrep, REGCLRS, repcontrols, repindex, GraphicsFltkRep::reset, VMDApp::scene, selbuilder, orbital_cbdata::self, isosurface_cbdata::self, quicksurf_cbdata::self, size, SelectionBuilder::update_macrobrowser, VMDFLTKTOOLTIP, VMDMENU_BROWSER_BG, VMDMENU_BROWSER_SEL, VMDMENU_CHOOSER_BG, VMDMENU_CHOOSER_SEL, VMDMENU_VALUE_BG, VMDMENU_VALUE_SEL, and widths.

GraphicsFltkMenu::~GraphicsFltkMenu  
 

Definition at line 596 of file GraphicsFltkMenu.C.


Member Function Documentation

int GraphicsFltkMenu::act_on_command int    type,
Command   cmd
[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 1211 of file GraphicsFltkMenu.C.

References app, Command::ATOMSEL_ADDMACRO, Command::ATOMSEL_DELMACRO, DrawMolecule::component, Displayable::curr_material, BaseMolecule::id, Command::MATERIAL_ADD, Command::MATERIAL_DELETE, MaterialList::material_name, Command::MATERIAL_RENAME, VMDApp::materialList, Command::MOL_ADDREP, Command::MOL_DEL, Command::MOL_DELREP, Command::MOL_DRAWFRAMES, MoleculeList::mol_index_from_id, Command::MOL_MODREP, Command::MOL_MODREPITEM, Command::MOL_NEW, Command::MOL_NUMPERIODIC, Command::MOL_ON, Command::MOL_RENAME, Command::MOL_REPCOLORUPDATE, Command::MOL_REPSELUPDATE, Command::MOL_SCALEMINMAX, Command::MOL_SHOWPERIODIC, Command::MOL_SHOWREP, Command::MOL_SMOOTHREP, Command::MOL_VOLUME, MoleculeList::molecule, VMDApp::moleculeList, molindex, MaterialList::num, repindex, selbuilder, MoleculeList::top, SelectionBuilder::update_macrobrowser, update_molchooser, update_pbc, update_rep, update_repbrowser, and update_repindex.

int GraphicsFltkMenu::auto_update   const
 

Returns true if changes to reps should be applied immediately.

Definition at line 602 of file GraphicsFltkMenu.C.

void GraphicsFltkMenu::colindex_visible  
 

Definition at line 1155 of file GraphicsFltkMenu.C.

References AtomColor::COLORID.

Referenced by update_rep.

char * GraphicsFltkMenu::create_colorcmd  
 

Definition at line 1120 of file GraphicsFltkMenu.C.

References AtomColor::COLORID, find_name_string_from_menuname, AtomColor::TOTAL, and AtomColor::VOLUME.

char * GraphicsFltkMenu::create_matcmd  
 

Definition at line 1147 of file GraphicsFltkMenu.C.

char * GraphicsFltkMenu::create_multiframecmd  
 

Definition at line 1151 of file GraphicsFltkMenu.C.

char * GraphicsFltkMenu::create_repcmd  
 

Definition at line 1114 of file GraphicsFltkMenu.C.

References NameList< GraphicsFltkRep * >::data, GraphicsFltkRep::repcmd, repcontrols, and NameList< GraphicsFltkRep * >::typecode.

char * GraphicsFltkMenu::create_selcmd  
 

Definition at line 1143 of file GraphicsFltkMenu.C.

void GraphicsFltkMenu::init_colorchooser  
 

Definition at line 606 of file GraphicsFltkMenu.C.

References AtomColor::NAME, set_chooser_from_string, and AtomColor::TOTAL.

Referenced by GraphicsFltkMenu.

void GraphicsFltkMenu::init_materialchooser  
 

Definition at line 622 of file GraphicsFltkMenu.C.

References app, MaterialList::material_name, VMDApp::materialList, and MaterialList::num.

Referenced by GraphicsFltkMenu.

void GraphicsFltkMenu::init_stylechooser  
 

Definition at line 629 of file GraphicsFltkMenu.C.

References show_repcontrols, and AtomRep::TOTAL.

Referenced by GraphicsFltkMenu.

void GraphicsFltkMenu::reset_rep  
 

Definition at line 898 of file GraphicsFltkMenu.C.

References NameList< GraphicsFltkRep * >::data, repcontrols, GraphicsFltkRep::reset, and NameList< GraphicsFltkRep * >::typecode.

const char * GraphicsFltkMenu::selectiontext   const
 

Definition at line 894 of file GraphicsFltkMenu.C.

int GraphicsFltkMenu::selectmol int    selmol [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 1282 of file GraphicsFltkMenu.C.

References molindex, and update_molchooser.

void GraphicsFltkMenu::set_autoupdate int   
 

sets selection autoupdate for the currently highlighted rep.

Definition at line 1051 of file GraphicsFltkMenu.C.

References app, VMDApp::molecule_id, molindex, VMDApp::molrep_set_selupdate, and repindex.

void GraphicsFltkMenu::set_colorupdate int   
 

sets color autoupdate for the currently highlighted rep.

Definition at line 1058 of file GraphicsFltkMenu.C.

References app, VMDApp::molecule_id, molindex, VMDApp::molrep_set_colorupdate, and repindex.

void GraphicsFltkMenu::set_pbc int   ,
int   
 

Definition at line 1042 of file GraphicsFltkMenu.C.

References app, BaseMolecule::id, MoleculeList::molecule, VMDApp::moleculeList, molindex, VMDApp::molrep_set_pbc, VMDApp::molrep_set_pbc_images, n, and repindex.

void GraphicsFltkMenu::show_repcontrols  
 

Definition at line 1104 of file GraphicsFltkMenu.C.

References NameList< GraphicsFltkRep * >::data, NameList< GraphicsFltkRep * >::num, repcontrols, and NameList< GraphicsFltkRep * >::typecode.

Referenced by init_stylechooser, and update_rep.

void GraphicsFltkMenu::update_molchooser  
 

Definition at line 904 of file GraphicsFltkMenu.C.

References app, data, NameList< GraphicsFltkRep * >::data, VolumetricData::datarange, GraphicsFltkRepVolumetric::dataset_append, GraphicsFltkRepVolumetric::dataset_clear, AtomRep::FIELDLINES, fill_fltk_molchooser, find_menu_from_string, VMDApp::highlighted_molid, GraphicsFltkRep::is_orbital, GraphicsFltkRep::is_volumetric, AtomRep::ISOSURFACE, BaseMolecule::modify_volume_data, MoleculeList::molecule, VMDApp::molecule_id, VMDApp::moleculeList, molindex, VolumetricData::name, NULL, NameList< GraphicsFltkRep * >::num, BaseMolecule::num_volume_data, GraphicsFltkRepOrbital::regen_orbitallist, GraphicsFltkRepOrbital::regen_wavefunctypes, repcontrols, selbuilder, update_repbrowser, update_repindex, SelectionBuilder::use_molecule, volindex_update, AtomRep::VOLSLICE, and AtomColor::VOLUME.

Referenced by act_on_command, and selectmol.

void GraphicsFltkMenu::update_pbc  
 

Definition at line 1031 of file GraphicsFltkMenu.C.

References app, DrawMolecule::component, DrawMolItem::get_pbc, DrawMolItem::get_pbc_images, MoleculeList::molecule, VMDApp::moleculeList, molindex, n, repindex, and PBCControls::update.

Referenced by act_on_command, and update_rep.

void GraphicsFltkMenu::update_rep  
 

Definition at line 978 of file GraphicsFltkMenu.C.

References app, DrawMolItem::atomColor, DrawMolItem::atomRep, DrawMolItem::atomSel, AtomSel::cmdStr, colindex_visible, AtomColor::color_index, AtomColor::COLORID, DrawMolecule::component, Displayable::curr_material, NameList< GraphicsFltkRep * >::data, AtomSel::do_update, AtomColor::do_update, AtomColor::get_colorscale_minmax, DrawMolItem::get_drawframes, DrawMolItem::get_smoothing, VMDApp::highlighted_rep, AtomRep::is_volumetric, AtomRep::method, AtomColor::method, MoleculeList::molecule, VMDApp::moleculeList, molindex, repcontrols, repindex, selbuilder, set_chooser_from_string, SelectionBuilder::set_selection, GraphicsFltkRep::set_values, show_repcontrols, update_pbc, volindex_visible, AtomColor::VOLUME, and AtomColor::volume_index.

Referenced by act_on_command, and update_repbrowser.

void GraphicsFltkMenu::update_repbrowser bool    remember_position = false
 

Definition at line 959 of file GraphicsFltkMenu.C.

References add_rep_to_browser, app, DrawMolecule::component, DrawMolecule::components, MoleculeList::molecule, VMDApp::moleculeList, molindex, repindex, and update_rep.

Referenced by act_on_command, and update_molchooser.

void GraphicsFltkMenu::update_repindex  
 

Definition at line 1065 of file GraphicsFltkMenu.C.

References app, ResizeArray< int >::append, DrawMolecule::components, MoleculeList::molecule, VMDApp::moleculeList, molindex, n, ResizeArray< int >::num, and repindex.

Referenced by act_on_command, and update_molchooser.

void GraphicsFltkMenu::update_selection const char *    txt
 

put the given text into the selection input and perform the callback. If txt is NULL, then restore the last known good selection text.

Definition at line 879 of file GraphicsFltkMenu.C.

References app, VMDApp::molecule_id, molindex, VMDApp::molrep_get_selection, and repindex.

void GraphicsFltkMenu::use_colorscale_auto  
 

Cause the current rep to autoscale its color scale data range.

Definition at line 862 of file GraphicsFltkMenu.C.

References app, VMDApp::molecule_id, molindex, VMDApp::molrep_get_scaleminmax, VMDApp::molrep_reset_scaleminmax, and repindex.

Referenced by colorscale_auto_cb.

void GraphicsFltkMenu::use_colorscale_minmax  
 

Cause the current rep to use the current color scale data range values.

Definition at line 850 of file GraphicsFltkMenu.C.

References app, VMDApp::molecule_id, molindex, VMDApp::molrep_set_scaleminmax, and repindex.

Referenced by colorscale_minmax_cb.

void GraphicsFltkMenu::volindex_update  
 

Definition at line 1177 of file GraphicsFltkMenu.C.

References app, data, BaseMolecule::get_volume_data, MoleculeList::molecule, VMDApp::moleculeList, molindex, VolumetricData::name, and BaseMolecule::num_volume_data.

Referenced by update_molchooser.

void GraphicsFltkMenu::volindex_visible  
 

Definition at line 1166 of file GraphicsFltkMenu.C.

References AtomColor::VOLUME.

Referenced by update_rep.


Member Data Documentation

VMDApp* GraphicsFltkMenu::app
 

pointer to parent instance of VMD.

Reimplemented from UIObject.

Definition at line 53 of file GraphicsFltkMenu.h.

Referenced by act_on_command, GraphicsFltkMenu, init_materialchooser, GraphicsFltkRepOrbital::regen_excitationlist, GraphicsFltkRepOrbital::regen_orbitallist, GraphicsFltkRepOrbital::regen_wavefunctypes, set_autoupdate, set_colorupdate, set_pbc, update_molchooser, update_pbc, update_rep, update_repbrowser, update_repindex, update_selection, use_colorscale_auto, use_colorscale_minmax, and volindex_update.

int GraphicsFltkMenu::molindex
 

Definition at line 54 of file GraphicsFltkMenu.h.

Referenced by act_on_command, GraphicsFltkMenu, myBrowser::handle, GraphicsFltkRepOrbital::regen_excitationlist, GraphicsFltkRepOrbital::regen_orbitallist, GraphicsFltkRepOrbital::regen_wavefunctypes, selectmol, set_autoupdate, set_colorupdate, set_pbc, update_molchooser, update_pbc, update_rep, update_repbrowser, update_repindex, update_selection, use_colorscale_auto, use_colorscale_minmax, and volindex_update.

NameList<GraphicsFltkRep *> GraphicsFltkMenu::repcontrols
 

Definition at line 123 of file GraphicsFltkMenu.h.

Referenced by create_repcmd, GraphicsFltkMenu, reset_rep, show_repcontrols, update_molchooser, and update_rep.

int GraphicsFltkMenu::repindex
 

Definition at line 55 of file GraphicsFltkMenu.h.

Referenced by act_on_command, GraphicsFltkMenu, set_autoupdate, set_colorupdate, set_pbc, update_pbc, update_rep, update_repbrowser, update_repindex, update_selection, use_colorscale_auto, and use_colorscale_minmax.

SelectionBuilder* GraphicsFltkMenu::selbuilder
 

Definition at line 102 of file GraphicsFltkMenu.h.

Referenced by act_on_command, GraphicsFltkMenu, update_molchooser, and update_rep.


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