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

MainFltkMenu.C File Reference

#include "Inform.h"
#include "MainFltkMenu.h"
#include "FL/Fl_Menu_Bar.H"
#include "FL/Fl_Menu_Button.H"
#include "FL/Fl_Menu_Item.H"
#include "MolBrowser.h"
#include "frame_selector.h"
#include "FL/Fl_Radio_Button.H"
#include "FL/Fl_Value_Slider.H"
#include "FL/Fl_Int_Input.H"
#include "TextEvent.h"
#include "FL/fl_file_chooser.H"
#include "FL/forms.H"
#include "VMDApp.h"
#include "VMDMenu.h"
#include "CommandQueue.h"
#include "CmdMenu.h"
#include "CmdAnimate.h"
#include "Mouse.h"
#include "FPS.h"
#include "Stage.h"
#include "Axes.h"
#include "Scene.h"
#include "Animation.h"
#include "DisplayDevice.h"
#include "PickModeList.h"

Go to the source code of this file.


Defines

#define EXT_MENU_NAME "Extensions"
#define MAINFLTKMENUHEIGHT 190
#define MAINFLTKMENUWIDTH 470

Enumerations

enum DispMenu {
DM_RESETVIEW = 0, DM_STOPROTATION, DM_PERSPECTIVE, DM_ORTHOGRAPHIC,
DM_ANTIALIASING, DM_DEPTHCUEING, DM_FPS, DM_LIGHT0,
DM_LIGHT1, DM_LIGHT2, DM_LIGHT3, DM_AXES,
DM_BACKGROUND, DM_STAGE, DM_STEREO, DM_STEREOEYESWAP,
DM_RENDERMODE, DM_DISPSETTINGS, DM_LASTMENUITEM
}

Functions

void menu_cb (Fl_Widget *w, void *v)
void loadnew_cb (Fl_Widget *w, void *v)
void render_cb (Fl_Widget *w, void *v)
void savestate_cb (Fl_Widget *w, void *)
void logfile_cb (Fl_Widget *w, void *)
void logconsole_cb (Fl_Widget *w, void *)
void logoff_cb (Fl_Widget *w, void *)
void quit_cb (Fl_Widget *w, void *)
void aa_cb (Fl_Widget *w, void *)
void depthcue_cb (Fl_Widget *w, void *)
void fps_cb (Fl_Widget *w, void *)
void light_cb (Fl_Widget *w, void *v)
void stage_cb (Fl_Widget *w, void *v)
void axes_cb (Fl_Widget *w, void *v)
void backgroundmode_cb (Fl_Widget *w, void *v)
void stereo_cb (Fl_Widget *w, void *v)
void stereoswap_cb (Fl_Widget *w, void *v)
void rendermode_cb (Fl_Widget *w, void *v)
void resetview_cb (Fl_Widget *w, void *)
void stoprotation_cb (Fl_Widget *w, void *)
void proj_cb (Fl_Widget *w, void *)
void mouse_cb (Fl_Widget *w, void *v)
void move_light_cb (Fl_Widget *w, void *v)
void help_cb (Fl_Widget *w, void *v)
void mol_top_cb (Fl_Widget *w, void *v)
void mol_active_cb (Fl_Widget *w, void *v)
void mol_displayed_cb (Fl_Widget *w, void *v)
void mol_fixed_cb (Fl_Widget *w, void *v)
void mol_rename_cb (Fl_Widget *w, void *v)
void mol_cancel_cb (Fl_Widget *w, void *v)
void mol_delete_ts_cb (Fl_Widget *w, void *v)
void mol_delete_cb (Fl_Widget *w, void *v)
void loadstate_cb (Fl_Widget *w, void *v)
void cb_cb (Fl_Widget *w, void *v)
void curframe_cb (Fl_Widget *w, void *v)
void start_cb (Fl_Widget *, void *v)
void stop_cb (Fl_Widget *, void *v)
void prev_cb (Fl_Widget *, void *v)
void next_cb (Fl_Widget *, void *v)
void forward_cb (Fl_Widget *w, void *v)
void reverse_cb (Fl_Widget *w, void *v)
void style_cb (Fl_Widget *w, void *v)
void step_cb (Fl_Widget *w, void *v)
void speed_cb (Fl_Widget *w, void *v)

Variables

const MenuBehavior file_menu_behavior []
const Fl_Menu_Item init_file_menuitems []
const MenuBehavior molecule_menu_behavior []
const Fl_Menu_Item init_molecule_menuitems []
const MenuBehavior browserpopup_menu_behavior []
const Fl_Menu_Item init_browserpopup_menuitems []
const Fl_Menu_Item graphics_menuitems []
int cbdata []
const Fl_Menu_Item init_display_menuitems []
const Fl_Menu_Item init_mouse_menuitems []
const Fl_Menu_Item init_help_menuitems []

Define Documentation

#define EXT_MENU_NAME "Extensions"

Definition at line 43 of file MainFltkMenu.C.

Referenced by MainFltkMenu::act_on_command, and MainFltkMenu::MainFltkMenu.

#define MAINFLTKMENUHEIGHT 190

Definition at line 851 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

#define MAINFLTKMENUWIDTH 470

Definition at line 859 of file MainFltkMenu.C.

Referenced by MainFltkMenu::draw, and MainFltkMenu::MainFltkMenu.


Enumeration Type Documentation

enum DispMenu

Enumeration values:
DM_RESETVIEW
DM_STOPROTATION
DM_PERSPECTIVE
DM_ORTHOGRAPHIC
DM_ANTIALIASING
DM_DEPTHCUEING
DM_FPS
DM_LIGHT0
DM_LIGHT1
DM_LIGHT2
DM_LIGHT3
DM_AXES
DM_BACKGROUND
DM_STAGE
DM_STEREO
DM_STEREOEYESWAP
DM_RENDERMODE
DM_DISPSETTINGS
DM_LASTMENUITEM

Definition at line 483 of file MainFltkMenu.C.


Function Documentation

void aa_cb ( Fl_Widget * w,
void *
) [static]

Definition at line 138 of file MainFltkMenu.C.

References VMDApp::display_set_aa.

void axes_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 177 of file MainFltkMenu.C.

References VMDApp::axes_set_location.

Referenced by MainFltkMenu::MainFltkMenu.

void backgroundmode_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 183 of file MainFltkMenu.C.

References VMDApp::display_set_background_mode.

Referenced by MainFltkMenu::MainFltkMenu.

void cb_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 611 of file MainFltkMenu.C.

void curframe_cb ( Fl_Widget * w,
void * v
) [static]

void depthcue_cb ( Fl_Widget * w,
void *
) [static]

Definition at line 144 of file MainFltkMenu.C.

References VMDApp::display_set_depthcue.

void forward_cb ( Fl_Widget * w,
void * v
) [static]

void fps_cb ( Fl_Widget * w,
void *
) [static]

Definition at line 158 of file MainFltkMenu.C.

References VMDApp::display_set_fps.

void help_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 250 of file MainFltkMenu.C.

References VMDApp::commandQueue, and CommandQueue::runcommand.

void light_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 164 of file MainFltkMenu.C.

References VMDApp::light_on.

void loadnew_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 68 of file MainFltkMenu.C.

References VMDApp::menu_select_mol, and VMDApp::menu_show.

void loadstate_cb ( Fl_Widget * w,
void * v
) [static]

void logconsole_cb ( Fl_Widget * w,
void *
) [static]

Definition at line 120 of file MainFltkMenu.C.

References VMDApp::commandQueue, and CommandQueue::runcommand.

void logfile_cb ( Fl_Widget * w,
void *
) [static]

void logoff_cb ( Fl_Widget * w,
void *
) [static]

Definition at line 126 of file MainFltkMenu.C.

References VMDApp::commandQueue, and CommandQueue::runcommand.

void menu_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 61 of file MainFltkMenu.C.

References VMDApp::menu_show.

Referenced by MainFltkMenu::act_on_command.

void mol_active_cb ( Fl_Widget * w,
void * v
) [static]

void mol_cancel_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 320 of file MainFltkMenu.C.

References VMDApp::molecule_cancel_io, and VMDApp::molecule_id.

void mol_delete_cb ( Fl_Widget * w,
void * v
) [static]

void mol_delete_ts_cb ( Fl_Widget * w,
void * v
) [static]

void mol_displayed_cb ( Fl_Widget * w,
void * v
) [static]

void mol_fixed_cb ( Fl_Widget * w,
void * v
) [static]

void mol_rename_cb ( Fl_Widget * w,
void * v
) [static]

void mol_top_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 256 of file MainFltkMenu.C.

References VMDApp::molecule_id, and VMDApp::molecule_make_top.

void mouse_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 240 of file MainFltkMenu.C.

References VMDApp::mouse_set_mode.

void move_light_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 245 of file MainFltkMenu.C.

References Mouse::LIGHT, and VMDApp::mouse_set_mode.

void next_cb ( Fl_Widget * ,
void * v
) [static]

Definition at line 666 of file MainFltkMenu.C.

References Animation::ANIM_FORWARD1, and VMDApp::animation_set_dir.

Referenced by MainFltkMenu::MainFltkMenu.

void prev_cb ( Fl_Widget * ,
void * v
) [static]

Definition at line 661 of file MainFltkMenu.C.

References Animation::ANIM_REVERSE1, and VMDApp::animation_set_dir.

Referenced by MainFltkMenu::MainFltkMenu.

void proj_cb ( Fl_Widget * w,
void *
) [static]

Definition at line 234 of file MainFltkMenu.C.

References VMDApp::display_set_projection.

void quit_cb ( Fl_Widget * w,
void *
) [static]

Definition at line 132 of file MainFltkMenu.C.

References VMDApp::VMDexit.

void render_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 91 of file MainFltkMenu.C.

References VMDApp::menu_show.

void rendermode_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 217 of file MainFltkMenu.C.

References VMDApp::display_set_rendermode.

Referenced by MainFltkMenu::MainFltkMenu.

void resetview_cb ( Fl_Widget * w,
void *
) [static]

Definition at line 223 of file MainFltkMenu.C.

References VMDApp::scene_resetview, and VMDApp::scene_stoprotation.

void reverse_cb ( Fl_Widget * w,
void * v
) [static]

void savestate_cb ( Fl_Widget * w,
void *
) [static]

Definition at line 97 of file MainFltkMenu.C.

References VMDApp::save_state.

void speed_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 701 of file MainFltkMenu.C.

References VMDApp::animation_set_speed.

Referenced by MainFltkMenu::MainFltkMenu.

void stage_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 171 of file MainFltkMenu.C.

References VMDApp::stage_set_location.

Referenced by MainFltkMenu::MainFltkMenu.

void start_cb ( Fl_Widget * ,
void * v
) [static]

Definition at line 651 of file MainFltkMenu.C.

References VMDApp::animation_set_frame.

Referenced by MainFltkMenu::MainFltkMenu.

void step_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 695 of file MainFltkMenu.C.

References VMDApp::animation_set_stride.

Referenced by MainFltkMenu::MainFltkMenu.

void stereo_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 193 of file MainFltkMenu.C.

References VMDApp::display_set_stereo.

Referenced by MainFltkMenu::MainFltkMenu.

void stereoswap_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 199 of file MainFltkMenu.C.

References VMDApp::display_set_stereo_swap.

Referenced by MainFltkMenu::MainFltkMenu.

void stop_cb ( Fl_Widget * ,
void * v
) [static]

Definition at line 656 of file MainFltkMenu.C.

References VMDApp::animation_set_frame.

Referenced by MainFltkMenu::MainFltkMenu.

void stoprotation_cb ( Fl_Widget * w,
void *
) [static]

Definition at line 229 of file MainFltkMenu.C.

References VMDApp::scene_stoprotation.

void style_cb ( Fl_Widget * w,
void * v
) [static]

Definition at line 689 of file MainFltkMenu.C.

References VMDApp::animation_set_style.

Referenced by MainFltkMenu::MainFltkMenu.


Variable Documentation

const MenuBehavior browserpopup_menu_behavior[] [static]

int cbdata[] [static]

Initial value:

 {
 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22
}

Definition at line 478 of file MainFltkMenu.C.

const MenuBehavior file_menu_behavior[] [static]

const Fl_Menu_Item graphics_menuitems[] [static]

Initial value:

 {
 {"Representations...", 0, menu_cb, (void *)"graphics"},
 {"Colors...", 0, menu_cb, (void *)"color"},
 {"Materials...", 0, menu_cb, (void *)"material"},
 {"Labels...", 0, menu_cb, (void *)"labels", FL_MENU_DIVIDER},
 {"Tools...", 0, menu_cb, (void *)"tool"}, 
 {0}
}

Definition at line 469 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_browserpopup_menuitems[] [static]

Initial value:

 {
 
 {"New Molecule...", 0, loadnew_cb },
 {"Load Data Into Molecule...", 0, NULL },
 {"Save Coordinates...", 0, NULL , NULL, FL_MENU_DIVIDER},
 
 {"Rename...", 0, mol_rename_cb },
 {"Delete Frames...", 0, mol_delete_ts_cb },
 {"Abort File I/O", 0, mol_cancel_cb, },
 {"Delete Molecule", 0, mol_delete_cb },
 {NULL}
}

Definition at line 456 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_display_menuitems[] [static]

Initial value:

 {
 {"Reset View", '=', resetview_cb},
 {"Stop Rotation", 0, stoprotation_cb, NULL, FL_MENU_DIVIDER},
 {"Perspective", 0, proj_cb, NULL, FL_MENU_RADIO },
 {"Orthographic", 0, proj_cb, NULL, FL_MENU_RADIO | FL_MENU_DIVIDER},
 {"Antialiasing", 0, aa_cb, NULL, FL_MENU_TOGGLE | FL_MENU_INACTIVE},
 {"Depth Cueing", 0, depthcue_cb, NULL, FL_MENU_TOGGLE | FL_MENU_INACTIVE},
 {"FPS Indicator", 0, fps_cb, NULL, FL_MENU_TOGGLE | FL_MENU_DIVIDER},
 {"Light 0", 0, light_cb, cbdata+0, FL_MENU_TOGGLE},
 {"Light 1", 0, light_cb, cbdata+1, FL_MENU_TOGGLE},
 {"Light 2", 0, light_cb, cbdata+2, FL_MENU_TOGGLE},
 {"Light 3", 0, light_cb, cbdata+3, FL_MENU_TOGGLE | FL_MENU_DIVIDER},
 {"Axes", 0, NULL, NULL, FL_SUBMENU_POINTER},
 {"Background", 0, backgroundmode_cb, NULL, FL_SUBMENU_POINTER},
 {"Stage", 0, NULL, NULL, FL_SUBMENU_POINTER | FL_MENU_DIVIDER},
 {"Stereo", 0, NULL, NULL, FL_SUBMENU_POINTER},
 {"Stereo Eye Swap", 0, NULL, NULL, FL_SUBMENU_POINTER | FL_MENU_DIVIDER},
 {"Rendermode", 0, NULL, NULL, FL_SUBMENU_POINTER | FL_MENU_DIVIDER},
 {"Display Settings...", 0, menu_cb, (void *)"display"},
 {0}
}

Definition at line 511 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_file_menuitems[] [static]

Initial value:

 {
 {"New Molecule...", 0, loadnew_cb},
 {"Load Data Into Molecule...", 0, NULL },
 {"Save Coordinates...", 0, NULL , NULL, FL_MENU_DIVIDER},
 {"Load Visualization State...", 0, loadstate_cb},
 {"Save Visualization State...", 0, savestate_cb, NULL, FL_MENU_DIVIDER},
 {"Log Tcl Commands to Console", 0, logconsole_cb, NULL},
 {"Log Tcl Commands to File...", 0, logfile_cb, NULL},
 {"Turn Off Logging", 0, logoff_cb, NULL, FL_MENU_DIVIDER},
 {"Render...", 0, render_cb, NULL, FL_MENU_DIVIDER},
 {"Quit", 0, quit_cb},
 {NULL}
}

Definition at line 404 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_help_menuitems[] [static]

Initial value:

 {
 {"Quick Help", 0, help_cb, (void*) "quickhelp"},
 {"User's Guide", 0, help_cb, (void*) "userguide"},
 {"Tutorial", 0, help_cb, (void*) "tutorial", FL_MENU_DIVIDER},
 {"Homepage", 0, help_cb, (void*) "homepage"},
 {"FAQ", 0, help_cb, (void*) "faq"},
 {"Mailing List", 0, help_cb, (void*) "maillist"},
 {"Script Library", 0, help_cb, (void*) "scripts"},
 {"Plugin Library", 0, help_cb, (void*) "plugins", FL_MENU_DIVIDER},
 {"3D Renderers", 0, 0, 0, FL_SUBMENU},
 {"POV-Ray", 0, help_cb, (void*) "povray"},
 {"Radiance", 0, help_cb, (void*) "radiance"},
 {"Raster3D", 0, help_cb, (void*) "raster3D"},
 {"Rayshade", 0, help_cb, (void*) "rayshade"},
 {"Tachyon", 0, help_cb, (void*) "tachyon"},
 {"VRML", 0, help_cb, (void*) "vrml"},
 {0},
 {"Auxiliary Programs", 0, 0, 0, FL_SUBMENU},
 {"BioCoRE", 0, help_cb, (void*) "biocore"},
 {"MSMS", 0, help_cb, (void*) "msms"},
 {"NanoShaper", 0, help_cb, (void*) "nanoshaper"},
 {"NAMD", 0, help_cb, (void*) "namd"},
 {"Tcl/Tk", 0, help_cb, (void*) "tcl"},
 {"Python", 0, help_cb, (void*) "python"},
 {0},
 {0}
}

Definition at line 581 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_molecule_menuitems[] [static]

Initial value:

 {
 {"Make Top", 0, mol_top_cb, }, 
 {"Toggle Active", 0, mol_active_cb, },
 {"Toggle Displayed", 0, mol_displayed_cb, },
 {"Toggle Fixed", 0, mol_fixed_cb, NULL, FL_MENU_DIVIDER},
 {"Rename...", 0, mol_rename_cb },
 {"Delete Frames...", 0, mol_delete_ts_cb },
 {"Abort File I/O", 0, mol_cancel_cb, },
 {"Delete Molecule", 0, mol_delete_cb },
 {NULL}
}

Definition at line 431 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const Fl_Menu_Item init_mouse_menuitems[] [static]

Definition at line 545 of file MainFltkMenu.C.

Referenced by MainFltkMenu::MainFltkMenu.

const MenuBehavior molecule_menu_behavior[] [static]

Generated on Mon Nov 17 02:47:40 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

AltStyle によって変換されたページ (->オリジナル) /