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

VMDApp Class Reference

The main VMD application instance, created by the main entry point. More...

#include <VMDApp.h>

List of all members.

Public Methods

 VMDApp (int argc, char **argv)
 set list of command line arguments. More...

int VMDinit (int, char **, const char *, int *dispLoc, int *dispSize)
 initialize the global variables and objects for the general library. Must be passed command-line arguments to program. Creates graphics context and all associated objects, and then starts the UI, then adds any commands that should be done at start. When done, flushes command queue and then returns, when the program is ready to start main event loop. Return TRUE on successful initialization, FALSE if anything failed. More...

 ~VMDApp ()
void VMDexit (const char *exitmsg, int exitcode, int pauseseconds)
 Print the given error message and pause for the given number of seconds before setting a flag that willl make VMDupdate return FALSE. More...

int background_processing ()
 Background processing flag indicating whether the main event loop should throttle the CPU consumption back when there aren't any other display updates, event handling, or other activities to perform This flag is used by Molecule to inform VMD when background trajectory loading is going on, for example. More...

void background_processing_clear ()
void background_processing_set ()
void deactivate_uitext_stdin ()
 Turn off event checking for the text interface; if inactive it will still process text from VMD, like hotkey callbacks, but Tk menus will not work. This is experimental code just for the purpose of making it possible to control VMD from a thread in another program. More...

int activate_menus ()
 Activate Fltk menus; this should be called only once and only after VMDinit. Return success. More...

int num_menus ()
 Number of menus we know about. More...

const char * menu_name (int)
 Name of nth menu; 0 <= n < num_menus(). More...

int add_menu (VMDMenu *)
int remove_menu (const char *)
 remove menu. Return success. More...

void menu_add_extension (const char *shortname, const char *menu_path)
 Announce that the menu of the given name is a menu extension. This lets widgets add the menu to their own pulldown menus if they wish. More...

void menu_remove_extension (const char *shortname)
int menu_status (const char *name)
 Return 1 or 0 if the menu is on or off. Return 0 if the menu does not exist. More...

int menu_location (const char *name, int &x, int &y)
 Get the location of the specified menu. More...

int menu_show (const char *name, int on)
 Turn the specified menu on or off. More...

int menu_move (const char *name, int x, int y)
 Move the specified menu to the given location on the screen. More...

int menu_select_mol (const char *name, int molno)
 Tells the specified menu to select the "molno"-th molecule internally. More...

int filerender_num ()
 Number of file render methods. More...

const char * filerender_name (int n)
 Name of Nth file renderer. More...

const char * filerender_prettyname (int n)
 Pretty name of Nth renderer. More...

int filerender_valid (const char *method)
 Return true if renderer exists. More...

const char * filerender_shortname_from_prettyname (const char *pretty)
 Find short renderer name from the "pretty" GUI renderer name. More...

int filerender_has_antialiasing (const char *method)
 Return whether given renderer supports antialiasing. More...

int filerender_aasamples (const char *method, int aasamples)
 Set the antialiasing sample count and return the new value. More...

int filerender_aosamples (const char *method, int aosamples)
 Set the ambient occlusion sample count and return the new value. More...

int filerender_has_imagesize (const char *method)
 Return whether the given renderer supports arbitrary image size. More...

int filerender_imagesize (const char *method, int *imgwidth, int *imgheight)
 Set/get the image size. If *width or *height are zero, then the existing value will be used instead. If aspect ratio is set, then the aspect ratio will be used to determine the other member of the pair. Return success. More...

int filerender_aspectratio (const char *method, float *aspect)
 Set/get the aspect ratio for the image. An aspect ratio of zero means the image is free to take on any size. A positive value means the _height_ of the image will be scaled to maintain the given aspect ratio. Negative values fail. Return success, and place the new value of the aspect ratio in the passed-in pointer. More...

int filerender_numformats (const char *method)
 Return the number of file formats the file renderer can produce. Returns zero if the renderer method is invalid. More...

const char * filerender_get_format (const char *method, int i)
 Return the ith format. NULL if invalid. More...

const char * filerender_cur_format (const char *method)
 Return name of currently selected format. More...

int filerender_set_format (const char *method, const char *format)
 Set the output format for the renderer. Return success. More...

int filerender_render (const char *method, const char *filename, const char *extcmd)
 do the rendering; return success. More...

const char * filerender_option (const char *method, const char *option)
 set the command string to execute after producing the scene file Return the new value, or NULL if the method is invalid. Specify option as NULL to fetch the current value. More...

const char * filerender_default_option (const char *method)
 get the default render option for the given method. More...

const char * filerender_default_filename (const char *method)
 get the dafault filename for this render method. More...

int scene_rotate_by (float angle, char axis, float incr=0)
 rotate the scene by or to the given angle, measured in degrees, about the given axis, either 'x', 'y', or 'z'. For rotate_by, If incr is zero, the rotation will be done in one redraw; otherwise the rotation will be performed in steps of incr. More...

int scene_rotate_to (float angle, char axis)
int scene_rotate_by (const float *)
 Rotate the scene by the specified matrix. The translation part will be ignored. More...

int scene_rotate_to (const float *)
int scene_translate_by (float x, float y, float z)
 Translate everything that isn't fixed by/to the given amount. More...

int scene_translate_to (float x, float y, float z)
int scene_scale_by (float s)
 Scale by/to the given positive scale factor. More...

int scene_scale_to (float s)
void scene_resetview_newmoldata ()
 recenter the scene on the top molecule or on last settings if no-disrupt mode is enabled, unless there's only one molecule. More...

void scene_resetview ()
 recenter the scene on the top molecule. If there are no molecules, just restores rotation to default value. More...

int scene_rock (char axis, float step, int nsteps=0)
 Rock the scene by the given amount per redraw about the given axis. If nsteps is positive, rock for the specified number of steps, then reverse direction. More...

int scene_rockoff ()
 Stop rocking the scene. More...

int scene_stoprotation ()
 Stop rocking AND persistent rotations induced by input devices (like the Mouse). More...

int animation_num_dirs ()
 Methods for affecting the animation. Only _active_ molecules are affected. I consider this a mistake: it would be better to be able to specify the animation settings for a particular molecule by specify a molecule ID. However, this would make it impossible to log Tcl commands using our current syntax because the Tcl commands operate on all active molecules. If we ever create new Tcl commands and/or deprecate the old ones, we can (and should) change thse API's. Note that there are no get-methods here because you would need to query molecules individually. The Tcl commands just return the value for the top molecule; they can continue to do so, but the API should be per molecule. number of animation direction choices, and their names. More...

const char * animation_dir_name (int)
int animation_set_dir (int)
 set the animation direction for all active molecules. More...

int animation_num_styles ()
 number of animation styles, and their names. More...

const char * animation_style_name (int)
int animation_set_style (int)
 set the animation style for all active molecules. More...

int animation_set_frame (int frame)
 set the animation frame for all active molecules. If the specified frame is out of range for a particular molecule, then its frame will not change. If frame is -1, go to the first frame. If frame is -2, go to the last frame. More...

int animation_set_stride (int)
 set the stride for animation. Must be >= 1. More...

int animation_set_speed (float)
 set the animation speed. Must be a float between 0 and 1. 1 means animate as fast as possible; 0 means pause at least 0.5 seconds between frames. More...

vmdplugin_t * get_plugin (const char *type, const char *name)
 get a plugin of the specified type and name. If none was found, return NULL. The returned plugin should not be deleted. If multiple plugins are found, the one with the highest version number is returned. More...

int list_plugins (PluginList &, const char *type=NULL)
 Get alll plugins of the specfied type. If no type is specified or is NULL, all loaded plugins will be returned. Returns the number of plugins added to the list. More...

int plugin_dlopen (const char *filename)
 Try to dlopen the specified shared library and access its plugin API. Return the number of plugins found in the given library, or -1 on error. More...

void plugin_update ()
 Tell VMD to update its lists of plugins based on all the shared libraries it's loaded. Methods listed below will not be updated after a call to plugin_dlopen until this method is called. More...

void display_update_on (int)
 turn display updates on (1) or off (0). More...

int display_update_status ()
 return 1 or 0 if display updates are on or off, respectively. More...

void display_update ()
 force a screen redraw right now, without checking for UI events. More...

void display_update_ui ()
 force a screen redraw right now, and also check for UI events. More...

void display_set_screen_height (float)
 get/set the height of the screen. Ignored unless positive. More...

float display_get_screen_height ()
void display_set_screen_distance (float)
 get/set the distance to the screen. More...

float display_get_screen_distance ()
void display_set_position (int x, int y)
 get/set the position of the graphics window. More...

void display_set_size (int w, int h)
 get/set the size of the graphics window. More...

void display_get_size (int *w, int *h)
int display_set_stereo (const char *mode)
 change the stereo mode. More...

int display_set_stereo_swap (int onoff)
 change the stereo swapped eye mode. More...

int display_set_cachemode (const char *mode)
 change the caching mode. More...

int display_set_rendermode (const char *mode)
 change the rendering mode. More...

int display_set_eyesep (float sep)
 change eye separation. More...

int display_set_focallen (float flen)
 change focal length. More...

int display_set_projection (const char *proj)
 set the projection (Perspective or Orthographic, case-insensitive). More...

int display_projection_is_perspective (void)
 query whether the projection is a perspective projection type. More...

int display_set_aa (int onoff)
int display_set_depthcue (int onoff)
int display_set_culling (int onoff)
int display_set_fps (int onoff)
int display_set_background_mode (int mode)
int display_set_nearclip (float amt, int isdelta)
int display_set_farclip (float amt, int isdelta)
int stage_set_location (const char *)
int stage_set_numpanels (int)
int stage_set_size (float)
int axes_set_location (const char *)
int light_on (int lightnum, int onoff)
int light_highlight (int lightnum, int onoff)
int light_rotate (int lightnum, float amt, char axis)
int light_move (int lightnum, const float *newpos)
int depthcue_set_mode (const char *)
int depthcue_set_start (float)
int depthcue_set_end (float)
int depthcue_set_density (float)
int display_set_shadows (int onoff)
int display_set_ao (int onoff)
int display_set_ao_ambient (float a)
int display_set_ao_direct (float d)
void display_titlescreen ()
 turn on the title screen; burns CPU but will be turned off when a molecule is loaded. More...

int num_color_categories ()
 Number of color categories. More...

const char * color_category (int)
 Name of the nth color category, or NULL if invalid index. More...

int color_add_item (const char *cat, const char *item, const char *defcolor)
 add a new color item, consisting of a name and a default color, to the given color category. If the color category does not already exist, it is created. Return success. More...

int num_color_category_items (const char *category)
 Number of color items in the given category. More...

const char * color_category_item (const char *category, int)
 Item for the given category and index. More...

int num_colors ()
 Number of available colors. More...

int num_regular_colors ()
 Number of _regular_ colors, i.e., the ones that have actual names. More...

const char * color_name (int n)
 Name of nth color, where 0 <= n < num_colors(). If the index is invalid, return NULL. More...

int color_index (const char *)
 Index of given color. If the color is invalid, return -1, other return a number in [0, num_colors()). The color must be one of the colors returned by color_name(). Hence, color_name(color_index(<string>)) returns its input if <string> is a valid color, or NULL if it isn't. More...

int color_value (const char *colorname, float *r, float *g, float *b)
 Get RGB value of given color. Return success. More...

int color_default_value (const char *colorname, float *r, float *g, float *b)
 Get default RGB value of given color. The colorname must be one of the regular colors, i.e. have an index in [0,num_regular_colors). Return success. More...

const char * color_mapping (const char *category, const char *item)
 Color mapped to given color category and item, or NULL if invalid. More...

const char * color_get_restype (const char *resname)
 get the restype for the given resname. if the resname, is unknown, returns "Unassigned". More...

int color_set_restype (const char *resname, const char *newtype)
 set the residue type for the given residue name. This will determine how the residue is colored when the coloring method is ResType. The type must be one of the color items in the Restype color category. return success. More...

int colorscale_info (float *midpoint, float *min, float *max)
 color scale info. More...

int num_colorscale_methods ()
 info about color scale methods. More...

int colorscale_method_current ()
const char * colorscale_method_name (int)
int colorscale_method_index (const char *)
 index for given method. Return -1 if invalid, otherwise nonnegative. More...

int get_colorscale_colors (int whichScale, float min[3], float mid[3], float max[3])
 Store the color scale colors in the given arrays. More...

int set_colorscale_colors (int whichScale, const float min[3], const float mid[3], const float max[3])
 Set the color scale colors from the given arrays. More...

int color_changename (const char *category, const char *colorname, const char *color)
 Change the color for a particular color category and name. color must be one of names returned by color_name(). More...

int color_get_from_name (const char *category, const char *colorname, const char **color)
 Returns the color string for a particular color category and name. More...

int color_changevalue (const char *color, float r, float g, float b)
 Change the RGB value for the specified color. More...

int colorscale_setvalues (float midpoint, float min, float max)
 Change the settings for the color scale. More...

int colorscale_setmethod (int method)
 Change the color scale method. More...

int logfile_read (const char *path)
 Process the commands in the given file. More...

int save_state ()
 save VMD state to a Tcl script. A filename will be requested from the user. More...

int textinterp_change (const char *interpname)
 change to a new text interpreter mode. Currently "tcl" and "python" are supported. More...

int num_molecules ()
 Number of molecules currently loaded. More...

int molecule_new (const char *name, int natoms, int docallbacks=1)
 Create a new "empty" molecule, basically a blank slate for import low-level graphics or other data. Return the molid of the new molecule. we also allow to set the number of atoms. this is particularly useful for topology building scripts. More...

const char * guess_filetype (const char *filename)
 Guess a molecule file type from the given filename. Return the filetype, or NULL if unsuccesful. More...

int molecule_load (int molid, const char *filename, const char *filetype, const FileSpec *spec)
 Load data from the given file of type filetype. If molid is -1, a new molecule will be created if the file is successfully read; otherwise molid must be a valid molecule id. As much information will be loaded from the file as possible, and within the limits prescribed by FileSpec. Returns the molid of the molecule into which the data was read. If the file type is unknown, use guess_filetype to obtain a filetype; don't pass NULL to filetype. More...

int molecule_add_volumetric (int molid, const char *dataname, const float origin[3], const float xaxis[3], const float yaxis[3], const float zaxis[3], int xsize, int ysize, int zsize, float *datablock)
 Add volumetric data to a given molecule. The data block will be deleted by VMD. Return success. More...

int molecule_savetrajectory (int molid, const char *filename, const char *filetype, const FileSpec *spec)
 Write trajectory frames to a file. Return number of frames written before returning, as in the addfile method. Filetype should be one of the file types returned by savecoorfile_plugin_name(). selection must be NULL, or point to an array of flags, one for each atom in the molecule, indicating which atoms' coordinates are to be written. More...

int molecule_deleteframes (int molid, int first, int last, int stride)
 Delete the specified range of timesteps from the given molecule, keeping every "stride" molecule (unless stride = 0). More...

int molecule_index_from_id (int molid)
 Return the array index of the molecule with the specified ID. Returns -1 if the ID does not exist, otherwise a nonnegative array index is returned. More...

int molecule_id (int)
 ID of the ith molecule. This ID is used to specify a molecule for all other methods. Return -1 if the ith molecule is not present; otherwise the ID is a nonnegative integer unique to each molecule. More...

int molecule_valid_id (int molid)
 Return true or false if the given molid is valid. More...

int molecule_numatoms (int molid)
 number of atoms in molecule. Return -1 on invalid molid, otherwise 0 or more. More...

int molecule_numframes (int molid)
 number of frames in molecule. Return -1 on invalid molid, otherwise 0 or more. More...

int molecule_frame (int molid)
 Current frame in molecule. Return -1 on invalid molid, otherwise [0, numframes()). More...

int molecule_dupframe (int molid, int frame)
 Duplicate the given frame. The new fram will be appended at the end. Passing -1 for frame duplicates the current frame. Return success. More...

const char * molecule_name (int molid)
 name of molecule. More...

int molecule_rename (int molid, const char *newname)
int molecule_cancel_io (int molid)
 cancel any in-progress file I/O associated with a given molecule. More...

int molecule_delete (int molid)
 delete the molecule with the given id. More...

int molecule_delete_all (void)
 delete all molecules. More...

int molecule_activate (int molid, int onoff)
 make the given molecule 'active' or 'inactive'; active molecules respond to animate requests while inactive molecules do not. More...

int molecule_is_active (int molid)
int molecule_fix (int molid, int onoff)
 make the given molecule fixed or unfixed. Fixed molecules do not respond to scene transformation operations. More...

int molecule_is_fixed (int molid)
int molecule_display (int molid, int onoff)
 Turn the given molecule on or off. Turning a molecule off causes all its reps to not be rendered. More...

int molecule_is_displayed (int molid)
int molecule_make_top (int molid)
 Make the given molecule top. There is always exactly one top molecule, if any are loaded. More...

int molecule_top ()
 return the molid of the top molecule. More...

int num_molreps (int molid)
 number of representations for the given molecule. More...

const char * molrep_get_style (int molid, int repid)
 Get/set the current representation style. More...

int molrep_set_style (int molid, int repid, const char *style)
const char * molrep_get_color (int molid, int repid)
 Get/set the current representation color. More...

int molrep_set_color (int molid, int repid, const char *color)
const char * molrep_get_selection (int molid, int repid)
 Get/set the current representation selection. More...

int molrep_set_selection (int molid, int repid, const char *selection)
int molrep_numselected (int molid, int repid)
 Get the number of atoms in the rep's selection. If invalid molid or repid, return -1, otherwise 0 or more. More...

const char * molrep_get_material (int molid, int repid)
 Get/set the current representation material. More...

int molrep_set_material (int molid, int repid, const char *material)
int num_clipplanes ()
 Number of clipping planes supported per rep. clipid in the next few methods should be in the range [0,max). More...

int molrep_get_clipplane (int molid, int repid, int clipid, float *center, float *normal, float *color, int *mode)
 Get clipping plane info for reps. center and normal should point to space for three floats. More...

int molrep_set_clipcenter (int molid, int repid, int clipid, const float *center)
 set clip plane properties. More...

int molrep_set_clipnormal (int molid, int repid, int clipid, const float *normal)
int molrep_set_clipcolor (int molid, int repid, int clipid, const float *color)
int molrep_set_clipstatus (int molid, int repid, int clipid, int onoff)
int molrep_set_smoothing (int molid, int repid, int n)
 Set smoothing for reps. Coordinates used for calculating graphics will be smoothed with a boxcar average 2*n+1 in size centered on the current frame. More...

int molrep_get_smoothing (int molid, int repid)
 Get smoothing for given rep. Returns -1 for invalid rep, otherwise 0 or higher. More...

const char * molrep_get_name (int molid, int repid)
 Get the name of the given rep. Return NULL if the id is invalid. More...

int molrep_get_by_name (int molid, const char *)
 Get the repid of the rep with the given name. Return -1 if the name was not found. More...

int molrep_set_pbc (int molid, int repid, int pbc)
 Set periodic boundary condition display for this rep. More...

int molrep_get_pbc (int molid, int repid)
 Get current pbc for this rep; returns -1 if invalid. More...

int molrep_set_pbc_images (int molid, int repid, int n)
 Set the number of images to display; must be 1 or higher. Return success. More...

int molrep_get_pbc_images (int molid, int repid)
 Get number of images; returns -1 on error. More...

int molrep_show (int molid, int repid, int onff)
 Show/hide individual rep; this is done in the graphics menu by double- clicking on the rep. More...

int molrep_is_shown (int molid, int repid)
 Return 1 if shown, 0 if hidden or does not exist. More...

const char * molecule_get_style ()
int molecule_set_style (const char *style)
const char * molecule_get_color ()
int molecule_set_color (const char *color)
const char * molecule_get_selection ()
int molecule_set_selection (const char *selection)
const char * molecule_get_material ()
int molecule_set_material (const char *material)
int molecule_addrep (int molid)
 Add a rep to the given molecule, using parameters specified in the molecule_set methods. molid must be a valid molecule id. More...

int molecule_modrep (int molid, int repid)
 Change the specified rep, using the same settings as for addrep. More...

int molrep_delete (int molid, int repid)
 Delete the specified rep. More...

int molrep_set_drawframes (int molid, int repid, const char *framesel)
 Set drawing of selected frames for a given rep. Syntax is "now" or a whitespace-separated list of terms of the form n, beg:end, or beg:stride:end. More...

const char * molrep_get_drawframes (int molid, int repid)
int molecule_set_dataset_flag (int molid, const char *dataflagstr, int setval)
 Set/unset dataset flags, indicating to VMD which fields should be written out when the molecule is saved. More...

int molecule_reanalyze (int molid)
 Re-analyze the molecule after atom names, bonds, and other other data have been changed. This can be used to fix unrecognized atom names in non-standard nucleic acid residues, and fix other issues on-the-fly without having to hand-edit the files. More...

int molecule_bondsrecalc (int molid)
 Force recalculation of bonds for the given molecule based on the current set of coordinates. More...

int molecule_ssrecalc (int molid)
 Force the recalculation of the secondary structure for the given molecule based on the current set of coordinates. Return true if the secondary structure was successfully recalculated, otherwise false. More...

int molecule_orblocalize (int molid, int waveid)
 Create a new wavefunction object based on existing wavefunction <waveid> with orbitals localized using the Pipek-Mezey algorithm. More...

int imd_connect (int molid, const char *host, int port)
 Establish an IMD connection to the given host over the given port, using the given molecule id. Return success. More...

int imd_connected (int molid)
 Return true if an IMD simulation is established with the given molid. More...

int imd_sendforces (int, const int *, const float *)
 Send forces, assuming an IMD connection is present. Return success. Format: num, indices, forces (xyzxyzxyz). More...

int imd_disconnect (int molid)
 Disconnect IMD. Return success. More...

const char * par_name ()
 query current node name. More...

int par_rank ()
 query current node ID. More...

int par_size ()
 query total number of nodes. More...

void par_barrier ()
 perform a barrier synchronization across all nodes. More...

int tool_create (const char *type, int argc, const char **argv)
int tool_delete (int toolnum)
int tool_change_type (int toolnum, const char *type)
int tool_set_position_scale (int toolnum, float newval)
int tool_set_force_scale (int toolnum, float newval)
int tool_set_spring_scale (int toolnum, float newval)
int label_add (const char *category, int num_ids, const int *molids, const int *atomids, const int *cells, float k, int toggle)
 add a label of the given category using the given molecule id's and atom id's. Return the index of the label object, or -1 on error. If toggle is true, the on/off status of the label will be toggled if the label already exists; if the label does not already exist, the newly created label will be on regardless of the value of toggle. More...

int label_show (const char *category, int n, int onoff)
 turn on/off the nth label of the given category. Return success. More...

int label_delete (const char *category, int n)
 delete the nth label of the given category. If n is -1, delete all labels from that category. Return success. More...

float label_get_text_size () const
 get/size size and thickness of text labels. This affects all labels. More...

int label_set_text_size (float)
float label_get_text_thickness () const
int label_set_text_thickness (float)
int label_set_textoffset (const char *nm, int n, float x, float y)
int label_set_textformat (const char *nm, int n, const char *format)
int next_molid ()
 Get current molid and increment counter by 1. More...

const char * material_add (const char *name, const char *copyfrom)
 add material with given name, copying settings from given material. If name is NULL a default unique name will be chosen; if copyfrom is NULL the 0th material will be copied. The name of the new material is returned, or NULL on error. More...

int material_delete (const char *name)
 delete material with given name. Return success. More...

int material_change (const char *name, int property, float val)
 change the given material property. property is from MaterialProperty defined in MaterialList. Return success. More...

int material_rename (const char *oldname, const char *newname)
 rename the given material. The new name must contain only alphanumeric characters (no spaces). Return success. More...

int material_restore_default (int)
 restore the default value of the material with the given index. Return success. Fails if the material has no default. More...

int mouse_set_mode (int mode, int setting)
 Change the mouse mode. More...

int mobile_set_mode (int mode)
 Change the mobile interface mode. More...

int mobile_get_mode ()
 Get the mobile interface mode. More...

void mobile_get_client_list (ResizeArray< JString * > *&nick, ResizeArray< JString * > *&ip, ResizeArray< bool > *&active)
 Get the list of current clients. More...

int mobile_network_port (int port)
 Change the mobile interface network port. More...

int mobile_get_network_port ()
 Get the mobile interface network port. More...

int mobile_get_APIsupported ()
 Get the version of the API that we support. More...

int mobile_set_activeClient (const char *nick, const char *ip)
 Set the currently active client, identified by nick and ip. More...

int mobile_sendMsg (const char *nick, const char *ip, const char *msgType, const char *msg)
 Send a message to a specific client. More...

void mobile_get_tracker_status (float &tx, float &ty, float &tz, float &rx, float &ry, float &rz, int &buttons)
 return the current mobile interface event data, used by the UIVR MobileTracker interface. More...

int spaceball_set_mode (int mode)
 Change the spaceball mode. More...

int spaceball_set_sensitivity (float s)
 Change the spaceball sensitivity. More...

int spaceball_set_null_region (int nr)
 Change the spaceball null region. More...

void spaceball_get_tracker_status (float &tx, float &ty, float &tz, float &rx, float &ry, float &rz, int &buttons)
 return the current spaceball event data, used by the UIVR SpaceballTracker interface. More...

void show_stride_message ()
 show Stride message, if necessary. More...

char * vmd_choose_file (const char *title, const char *extension, const char *extension_label, int do_save)
 Show a file dialog. Use the first available of: Tk, Fltk, stdin Returns a new'd filename, or NULL. More...

int VMDupdate (int)
 redraw the screen and update all things that need updatin'. Return TRUE until exit has been requested by the user. More...

void set_mouse_callbacks (int on)
void set_mouse_rocking (int on)
void set_eofexit (int onoff)
int get_eofexit ()
int molrep_get_selupdate (int molid, int repid)
 Turn on/off selection auto-update for the specified rep. When on, the representation will recalculate its selection each time there is change in the coordinate frame of the molecule. More...

int molrep_set_selupdate (int molid, int repid, int onoff)
 Turn on/off selection auto-update for the specified rep. When on, the representation will recalculate its selection each time there is change in the coordinate frame of the molecule. More...

int molrep_get_colorupdate (int molid, int repid)
 Turn on/off automatic color update for the specified rep. More...

int molrep_set_colorupdate (int molid, int repid, int onoff)
 Turn on/off automatic color update for the specified rep. More...

int molrep_get_scaleminmax (int molid, int repid, float *min, float *max)
 Get/set data range of color scale. More...

int molrep_set_scaleminmax (int molid, int repid, float min, float max)
 Get/set data range of color scale. More...

int molrep_reset_scaleminmax (int molid, int repid)
 Get/set data range of color scale. More...


Static Public Methods

unsigned long get_repserialnum (void)
 Get a unique integer serial number used for identifying display lists. More...

unsigned long get_texserialnum (void)
void set_text (const char *str)
 text message access methods. More...

void append_text (const char *str)
void clear_text ()
const char * get_text ()

Public Attributes

int argc_m
 used if we want to process unknown args elsewhere. More...

const char ** argv_m
 needed by Tcl/Python initialization code. More...

UITextuiText
 the text interface JRG: made public for save_state. More...

UIVRuivr
 VR tool interface. More...

IMDMgrimdMgr
 IMD manager class. More...

Animationanim
 generates delay-based frame change events. More...

DisplayDevicedisplay
 display in which the images are rendered. More...

Scenescene
 list of all Displayable objects to draw. More...

CUDAAccelcuda
 CUDA acceleration system handle. More...

PickListpickList
 handles all picking events. More...

PickModeListpickModeList
 list of available picking modes. More...

MaterialListmaterialList
 list of materials. More...

Stagestage
 stage object used in the scene. More...

Axesaxes
 axes object used in the scene. More...

FPSfps
 FPS counter used in the scene. More...

CommandQueuecommandQueue
 the command processor. More...

MoleculeListmoleculeList
 list of all loaded molecules. More...

GeometryListgeometryList
 list of all labels etc. More...

SymbolTableatomSelParser
 symbol table and atom selection parser. More...

VMDCollabvmdcollab
 handles collaborative VMD interaction. More...

NameList< char * > userKeys
 lookup table for Tcl scripts. More...

NameList< char * > userKeyDesc
 describe what the hotkey does. More...

int UpdateDisplay
 flag for whether to update the scene. More...

int exitFlag
 flag for whether to quit the display loop. More...

int ResetViewPending
 pending resetview needs attention. More...

char nodename [512]
 MPI node name. More...

int noderank
 MPI node rank. More...

int nodecount
 MPI node count. More...

int highlighted_molid
 Highlighted molecule id and rep. Set by GraphicsFltkMenu, used by PickModeMoveHighlightedRep. More...

int highlighted_rep
 Highlighted molecule id and rep. Set by GraphicsFltkMenu, used by PickModeMoveHighlightedRep. More...


Detailed Description

The main VMD application instance, created by the main entry point.

Definition at line 113 of file VMDApp.h.


Constructor & Destructor Documentation

VMDApp::VMDApp int    argc,
char **    argv
 

set list of command line arguments.

Definition at line 157 of file VMDApp.C.

References anim, argc_m, argv_m, atomSelParser, axes, background_processing_clear, commandQueue, cuda, display, exitFlag, fps, geometryList, highlighted_molid, highlighted_rep, imdMgr, materialList, moleculeList, nodecount, nodename, noderank, NULL, pickList, pickModeList, ResetViewPending, scene, stage, uiText, uivr, UpdateDisplay, and vmdcollab.

VMDApp::~VMDApp  
 

Definition at line 658 of file VMDApp.C.

References anim, atomSelParser, axes, commandQueue, cuda, NameList< char * >::data, NameList< VMDMenu * >::data, display, fps, geometryList, imdMgr, materialList, moleculeList, NULL, NameList< char * >::num, NameList< VMDMenu * >::num, pickList, pickModeList, scene, stage, DisplayDevice::supports_gui, uiText, uivr, userKeyDesc, userKeys, and vmdcollab.


Member Function Documentation

int VMDApp::activate_menus  
 

Activate Fltk menus; this should be called only once and only after VMDinit. Return success.

Definition at line 2958 of file VMDApp.C.

References NameList< VMDMenu * >::add_name, display, VMDMenu::get_name, UIObject::On, DisplayDevice::supports_gui, and uivr.

Referenced by VMDinit.

int VMDApp::add_menu VMDMenu  
 

Definition at line 455 of file VMDApp.C.

References NameList< VMDMenu * >::add_name, VMDMenu::get_name, and NameList< VMDMenu * >::typecode.

Referenced by addmenu, registermenu, and text_cmd_menu.

const char * VMDApp::animation_dir_name int   
 

Definition at line 991 of file VMDApp.C.

References Animation::ANIM_TOTAL_DIRS, and NULL.

int VMDApp::animation_num_dirs  
 

Methods for affecting the animation. Only _active_ molecules are affected. I consider this a mistake: it would be better to be able to specify the animation settings for a particular molecule by specify a molecule ID. However, this would make it impossible to log Tcl commands using our current syntax because the Tcl commands operate on all active molecules. If we ever create new Tcl commands and/or deprecate the old ones, we can (and should) change thse API's. Note that there are no get-methods here because you would need to query molecules individually. The Tcl commands just return the value for the top molecule; they can continue to do so, but the API should be per molecule. number of animation direction choices, and their names.

Definition at line 987 of file VMDApp.C.

References Animation::ANIM_TOTAL_DIRS.

int VMDApp::animation_num_styles  
 

number of animation styles, and their names.

Definition at line 1003 of file VMDApp.C.

References Animation::ANIM_TOTAL_STYLES.

int VMDApp::animation_set_dir int   
 

set the animation direction for all active molecules.

Definition at line 996 of file VMDApp.C.

References anim, Animation::anim_dir, Animation::AnimDir, commandQueue, and CommandQueue::runcommand.

Referenced by Spaceball::check_event, Mobile::check_event, forward, forward_cb, next, next_cb, pause, prev, prev_cb, reverse, reverse_cb, and text_cmd_animate.

int VMDApp::animation_set_frame int    frame
 

set the animation frame for all active molecules. If the specified frame is out of range for a particular molecule, then its frame will not change. If frame is -1, go to the first frame. If frame is -2, go to the last frame.

Definition at line 1019 of file VMDApp.C.

References anim, Animation::anim_dir, Animation::ANIM_PAUSE, commandQueue, Animation::goto_frame, and CommandQueue::runcommand.

Referenced by anim_goto, curframe_cb, start_cb, stop_cb, and text_cmd_animate.

int VMDApp::animation_set_speed float   
 

set the animation speed. Must be a float between 0 and 1. 1 means animate as fast as possible; 0 means pause at least 0.5 seconds between frames.

Definition at line 1032 of file VMDApp.C.

References anim, commandQueue, CommandQueue::runcommand, and Animation::speed.

Referenced by Spaceball::check_event, Mobile::check_event, speed, speed_cb, and text_cmd_animate.

int VMDApp::animation_set_stride int   
 

set the stride for animation. Must be >= 1.

Definition at line 1026 of file VMDApp.C.

References anim, commandQueue, CommandQueue::runcommand, and Animation::skip.

Referenced by Spaceball::check_event, Mobile::check_event, skip, step_cb, and text_cmd_animate.

int VMDApp::animation_set_style int   
 

set the animation style for all active molecules.

Definition at line 1012 of file VMDApp.C.

References anim, Animation::anim_style, Animation::AnimStyle, commandQueue, and CommandQueue::runcommand.

Referenced by MainFltkMenu::act_on_command, loop, once, rock, style_cb, and text_cmd_animate.

const char * VMDApp::animation_style_name int   
 

Definition at line 1007 of file VMDApp.C.

References Animation::ANIM_TOTAL_STYLES, and NULL.

void VMDApp::append_text const char *    str [inline, static]
 

Definition at line 1097 of file VMDApp.h.

int VMDApp::axes_set_location const char *   
 

Definition at line 2866 of file VMDApp.C.

References axes, commandQueue, Axes::loc_description, Axes::location, Axes::locations, CommandQueue::runcommand, and strupcmp.

Referenced by axes_cb, set_location, and text_cmd_axes.

int VMDApp::background_processing   [inline]
 

Background processing flag indicating whether the main event loop should throttle the CPU consumption back when there aren't any other display updates, event handling, or other activities to perform This flag is used by Molecule to inform VMD when background trajectory loading is going on, for example.

Definition at line 219 of file VMDApp.h.

Referenced by VMDupdate.

void VMDApp::background_processing_clear   [inline]
 

Definition at line 220 of file VMDApp.h.

Referenced by VMDApp, and VMDupdate.

void VMDApp::background_processing_set   [inline]
 

Definition at line 221 of file VMDApp.h.

Referenced by Molecule::get_new_frames.

void VMDApp::clear_text   [inline, static]
 

Definition at line 1100 of file VMDApp.h.

int VMDApp::color_add_item const char *    cat,
const char *    item,
const char *    defcolor
 

add a new color item, consisting of a name and a default color, to the given color category. If the color category does not already exist, it is created. Return success.

Definition at line 1120 of file VMDApp.C.

References Scene::add_color_category, Scene::add_color_item, Scene::category_index, Scene::color_index, commandQueue, CommandQueue::runcommand, and scene.

Referenced by parseColorDefs, and text_cmd_color.

const char * VMDApp::color_category int   
 

Name of the nth color category, or NULL if invalid index.

Definition at line 1116 of file VMDApp.C.

References Scene::category_name, and scene.

Referenced by categories, and tcl_colorinfo_categories.

const char * VMDApp::color_category_item const char *    category,
int   
 

Item for the given category and index.

Definition at line 1142 of file VMDApp.C.

References Scene::category_index, Scene::category_item_name, and scene.

Referenced by get_colormap, and tcl_colorinfo_category.

int VMDApp::color_changename const char *    category,
const char *    colorname,
const char *    color
 

Change the color for a particular color category and name. color must be one of names returned by color_name().

Definition at line 1261 of file VMDApp.C.

References Scene::category_index, Scene::category_item_index, color_index, commandQueue, CommandQueue::runcommand, scene, and Scene::set_category_item.

Referenced by set_colormap, and text_cmd_color.

int VMDApp::color_changevalue const char *    color,
float    r,
float    g,
float    b
 

Change the RGB value for the specified color.

Definition at line 1304 of file VMDApp.C.

References color_index, commandQueue, CommandQueue::runcommand, scene, and Scene::set_color_value.

Referenced by set_colors, and text_cmd_color.

int VMDApp::color_default_value const char *    colorname,
float *    r,
float *    g,
float *    b
 

Get default RGB value of given color. The colorname must be one of the regular colors, i.e. have an index in [0,num_regular_colors). Return success.

Definition at line 1179 of file VMDApp.C.

References Scene::color_default_value, color_index, and scene.

Referenced by text_cmd_color.

int VMDApp::color_get_from_name const char *    category,
const char *    colorname,
const char **    color
 

Returns the color string for a particular color category and name.

Definition at line 1283 of file VMDApp.C.

References Scene::category_index, Scene::category_item_index, color_name, Scene::get_category_item, and scene.

Referenced by text_cmd_color.

const char * VMDApp::color_get_restype const char *    resname
 

get the restype for the given resname. if the resname, is unknown, returns "Unassigned".

Definition at line 1200 of file VMDApp.C.

References NameList< const char * >::data, moleculeList, NULL, MoleculeList::resTypes, and NameList< const char * >::typecode.

Referenced by text_cmd_color.

int VMDApp::color_index const char *   
 

Index of given color. If the color is invalid, return -1, other return a number in [0, num_colors()). The color must be one of the colors returned by color_name(). Hence, color_name(color_index(<string>)) returns its input if <string> is a valid color, or NULL if it isn't.

Definition at line 1156 of file VMDApp.C.

References Scene::color_index, MAXCOLORS, and scene.

Referenced by color_changename, color_changevalue, color_default_value, color_value, graphics_color, set_colors, tcl_colorinfo_index, tcl_graphics_color, and text_cmd_color.

const char * VMDApp::color_mapping const char *    category,
const char *    item
 

Color mapped to given color category and item, or NULL if invalid.

Definition at line 1188 of file VMDApp.C.

References Scene::category_index, Scene::category_item_index, Scene::category_item_value, Scene::color_name, and scene.

Referenced by get_colormap, and tcl_colorinfo_category.

const char * VMDApp::color_name int    n
 

Name of nth color, where 0 <= n < num_colors(). If the index is invalid, return NULL.

Definition at line 1153 of file VMDApp.C.

References Scene::color_name, and scene.

Referenced by color_get_from_name, get_colors, tcl_colorinfo_colors, and tcl_colorinfo_rgb.

int VMDApp::color_set_restype const char *    resname,
const char *    newtype
 

set the residue type for the given residue name. This will determine how the residue is colored when the coloring method is ResType. The type must be one of the color items in the Restype color category. return success.

Definition at line 1206 of file VMDApp.C.

References NameList< const char * >::add_name, Scene::category_item_index, Scene::category_item_name, Displayable::color_changed, MoleculeList::colorCatIndex, MLCAT_RESTYPES, moleculeList, MoleculeList::resTypes, Scene::root, scene, and NameList< const char * >::set_data.

Referenced by parseRestypes, and text_cmd_color.

int VMDApp::color_value const char *    colorname,
float *    r,
float *    g,
float *    b
 

Get RGB value of given color. Return success.

Definition at line 1170 of file VMDApp.C.

References color_index, Scene::color_value, and scene.

Referenced by get_colors, tcl_colorinfo_rgb, and text_cmd_color.

int VMDApp::colorscale_info float *    midpoint,
float *    min,
float *    max
 

color scale info.

Definition at line 1223 of file VMDApp.C.

References Scene::colorscale_value, and scene.

Referenced by scale_max, scale_midpoint, scale_min, set_scale, tcl_colorinfo_scale, and text_cmd_color.

int VMDApp::colorscale_method_current  
 

Definition at line 1230 of file VMDApp.C.

References Scene::colorscale_method, and scene.

Referenced by scale_method, and tcl_colorinfo_scale.

int VMDApp::colorscale_method_index const char *   
 

index for given method. Return -1 if invalid, otherwise nonnegative.

Definition at line 1237 of file VMDApp.C.

References Scene::colorscale_method_name, Scene::num_colorscale_methods, scene, and strupncmp.

Referenced by set_scale, and text_cmd_color.

const char * VMDApp::colorscale_method_name int   
 

Definition at line 1233 of file VMDApp.C.

References Scene::colorscale_method_name, NULL, Scene::num_colorscale_methods, and scene.

Referenced by ColorFltkMenu::ColorFltkMenu, scale_method, scale_methods, and tcl_colorinfo_scale.

int VMDApp::colorscale_setmethod int    method
 

Change the color scale method.

Definition at line 1319 of file VMDApp.C.

References Scene::colorscale_method_name, commandQueue, Scene::num_colorscale_methods, CommandQueue::runcommand, scene, and Scene::set_colorscale_method.

Referenced by set_scale, and text_cmd_color.

int VMDApp::colorscale_setvalues float    midpoint,
float    min,
float    max
 

Change the settings for the color scale.

Definition at line 1313 of file VMDApp.C.

References commandQueue, CommandQueue::runcommand, scene, and Scene::set_colorscale_value.

Referenced by set_scale, and text_cmd_color.

void VMDApp::deactivate_uitext_stdin  
 

Turn off event checking for the text interface; if inactive it will still process text from VMD, like hotkey callbacks, but Tk menus will not work. This is experimental code just for the purpose of making it possible to control VMD from a thread in another program.

Definition at line 2953 of file VMDApp.C.

References UIObject::Off, and uiText.

int VMDApp::depthcue_set_density float   
 

Definition at line 2923 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_cue_density.

Referenced by cuedensity_cb, and text_cmd_display.

int VMDApp::depthcue_set_end float   
 

Definition at line 2917 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_cue_end.

Referenced by cueend_cb, and text_cmd_display.

int VMDApp::depthcue_set_mode const char *   
 

Definition at line 2905 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_cue_mode.

Referenced by cuemode_cb, and text_cmd_display.

int VMDApp::depthcue_set_start float   
 

Definition at line 2911 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_cue_start.

Referenced by cuestart_cb, and text_cmd_display.

float VMDApp::display_get_screen_distance  
 

Definition at line 2642 of file VMDApp.C.

References display, and DisplayDevice::distance_to_screen.

float VMDApp::display_get_screen_height  
 

Definition at line 2633 of file VMDApp.C.

References display, and DisplayDevice::screen_height.

void VMDApp::display_get_size int *    w,
int *    h
 

Definition at line 2665 of file VMDApp.C.

References display, DisplayDevice::xSize, and DisplayDevice::ySize.

Referenced by get, FileRenderList::render, and text_cmd_display.

int VMDApp::display_projection_is_perspective void   
 

query whether the projection is a perspective projection type.

Definition at line 2777 of file VMDApp.C.

References display, DisplayDevice::ORTHOGRAPHIC, and DisplayDevice::projection.

Referenced by Spaceball::check_event.

int VMDApp::display_set_aa int    onoff
 

Definition at line 2784 of file VMDApp.C.

References DisplayDevice::aa_available, DisplayDevice::aa_off, DisplayDevice::aa_on, commandQueue, display, and CommandQueue::runcommand.

Referenced by aa_cb, set, and text_cmd_display.

int VMDApp::display_set_ao int    onoff
 

Definition at line 2935 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_ao_mode.

Referenced by aomode_cb, and text_cmd_display.

int VMDApp::display_set_ao_ambient float    a
 

Definition at line 2941 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_ao_ambient.

Referenced by aoambient_cb, and text_cmd_display.

int VMDApp::display_set_ao_direct float    d
 

Definition at line 2947 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_ao_direct.

Referenced by aodirect_cb, and text_cmd_display.

int VMDApp::display_set_background_mode int    mode
 

Definition at line 2811 of file VMDApp.C.

References commandQueue, CommandQueue::runcommand, scene, and Scene::set_background_mode.

Referenced by backgroundmode_cb, and text_cmd_display.

int VMDApp::display_set_cachemode const char *    mode
 

change the caching mode.

Definition at line 2732 of file VMDApp.C.

References DisplayDevice::cache_name, commandQueue, display, DisplayDevice::num_cache_modes, CommandQueue::runcommand, and DisplayDevice::set_cache_mode.

Referenced by cachemode_cb, and text_cmd_display.

int VMDApp::display_set_culling int    onoff
 

Definition at line 2798 of file VMDApp.C.

References commandQueue, DisplayDevice::culling_available, DisplayDevice::culling_off, DisplayDevice::culling_on, display, and CommandQueue::runcommand.

Referenced by culling_cb, set, and text_cmd_display.

int VMDApp::display_set_depthcue int    onoff
 

Definition at line 2791 of file VMDApp.C.

References commandQueue, DisplayDevice::cueing_available, DisplayDevice::cueing_off, DisplayDevice::cueing_on, display, and CommandQueue::runcommand.

Referenced by depthcue_cb, set, and text_cmd_display.

int VMDApp::display_set_eyesep float    sep
 

change eye separation.

Definition at line 2758 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_eyesep.

Referenced by eyesep_cb, set, and text_cmd_display.

int VMDApp::display_set_farclip float    amt,
int    isdelta
 

Definition at line 2831 of file VMDApp.C.

References DisplayDevice::addto_far_clip, commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_far_clip.

Referenced by farclip_cb, set, and text_cmd_display.

int VMDApp::display_set_focallen float    flen
 

change focal length.

Definition at line 2765 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_eye_dist.

Referenced by focal_cb, set, and text_cmd_display.

int VMDApp::display_set_fps int    onoff
 

Definition at line 2805 of file VMDApp.C.

References commandQueue, fps, Displayable::off, Displayable::on, and CommandQueue::runcommand.

Referenced by fps_cb, and text_cmd_display.

int VMDApp::display_set_nearclip float    amt,
int    isdelta
 

Definition at line 2817 of file VMDApp.C.

References DisplayDevice::addto_near_clip, commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_near_clip.

Referenced by nearclip_cb, set, and text_cmd_display.

void VMDApp::display_set_position int    x,
int    y
 

get/set the position of the graphics window.

Definition at line 2646 of file VMDApp.C.

References display, and DisplayDevice::reposition_window.

Referenced by text_cmd_display.

int VMDApp::display_set_projection const char *    proj
 

set the projection (Perspective or Orthographic, case-insensitive).

Definition at line 2771 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_projection.

Referenced by proj_cb, set, and text_cmd_display.

int VMDApp::display_set_rendermode const char *    mode
 

change the rendering mode.

Definition at line 2745 of file VMDApp.C.

References commandQueue, display, DisplayDevice::num_render_modes, DisplayDevice::render_name, CommandQueue::runcommand, and DisplayDevice::set_render_mode.

Referenced by rendermode_cb, and text_cmd_display.

void VMDApp::display_set_screen_distance float   
 

get/set the distance to the screen.

Definition at line 2637 of file VMDApp.C.

References commandQueue, display, DisplayDevice::distance_to_screen, and CommandQueue::runcommand.

Referenced by screend_cb, set, text_cmd_display, and VMDreadStartup.

void VMDApp::display_set_screen_height float   
 

get/set the height of the screen. Ignored unless positive.

Definition at line 2628 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::screen_height.

Referenced by screenh_cb, set, text_cmd_display, and VMDreadStartup.

int VMDApp::display_set_shadows int    onoff
 

Definition at line 2929 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_shadow_mode.

Referenced by shadowmode_cb, and text_cmd_display.

void VMDApp::display_set_size int    w,
int    h
 

get/set the size of the graphics window.

Definition at line 2657 of file VMDApp.C.

References display, display_update_ui, and DisplayDevice::resize_window.

Referenced by set, and text_cmd_display.

int VMDApp::display_set_stereo const char *    mode
 

change the stereo mode.

Definition at line 2678 of file VMDApp.C.

References commandQueue, display, display_set_stereo_swap, DisplayDevice::num_stereo_modes, CommandQueue::runcommand, DisplayDevice::set_stereo_mode, and DisplayDevice::stereo_name.

Referenced by set, stereo_cb, and text_cmd_display.

int VMDApp::display_set_stereo_swap int    onoff
 

change the stereo swapped eye mode.

Definition at line 2720 of file VMDApp.C.

References commandQueue, display, CommandQueue::runcommand, and DisplayDevice::set_stereo_swap.

Referenced by display_set_stereo, stereoswap_cb, and text_cmd_display.

void VMDApp::display_titlescreen  
 

turn on the title screen; burns CPU but will be turned off when a molecule is loaded.

Definition at line 2671 of file VMDApp.C.

References display, Scene::root, scene, and DisplayDevice::supports_gui.

Referenced by VMDreadStartup.

void VMDApp::display_update  
 

force a screen redraw right now, without checking for UI events.

Definition at line 1102 of file VMDApp.C.

References UpdateDisplay, VMD_IGNORE_EVENTS, and VMDupdate.

Referenced by TclTextInterp::evalFile, text_cmd_display, text_cmd_render, and update.

void VMDApp::display_update_on int   
 

turn display updates on (1) or off (0).

Definition at line 1094 of file VMDApp.C.

References UpdateDisplay.

Referenced by text_cmd_display, update_off, and update_on.

int VMDApp::display_update_status  
 

return 1 or 0 if display updates are on or off, respectively.

Definition at line 1098 of file VMDApp.C.

References UpdateDisplay.

Referenced by text_cmd_display.

void VMDApp::display_update_ui  
 

force a screen redraw right now, and also check for UI events.

Definition at line 1109 of file VMDApp.C.

References VMD_CHECK_EVENTS, and VMDupdate.

Referenced by display_set_size, text_cmd_display, and update_ui.

int VMDApp::filerender_aasamples const char *    method,
int    aasamples
 

Set the antialiasing sample count and return the new value.

Definition at line 834 of file VMDApp.C.

References FileRenderList::aasamples.

Referenced by text_cmd_render.

int VMDApp::filerender_aosamples const char *    method,
int    aosamples
 

Set the ambient occlusion sample count and return the new value.

Definition at line 837 of file VMDApp.C.

References FileRenderList::aosamples.

Referenced by text_cmd_render.

int VMDApp::filerender_aspectratio const char *    method,
float *    aspect
 

Set/get the aspect ratio for the image. An aspect ratio of zero means the image is free to take on any size. A positive value means the _height_ of the image will be scaled to maintain the given aspect ratio. Negative values fail. Return success, and place the new value of the aspect ratio in the passed-in pointer.

Definition at line 847 of file VMDApp.C.

References FileRenderList::aspectratio.

Referenced by text_cmd_render.

const char * VMDApp::filerender_cur_format const char *    method
 

Return name of currently selected format.

Definition at line 857 of file VMDApp.C.

References FileRenderList::format.

Referenced by text_cmd_render.

const char * VMDApp::filerender_default_filename const char *    method
 

get the dafault filename for this render method.

Definition at line 1045 of file VMDApp.C.

References FileRenderer::default_filename, FileRenderList::find, and NULL.

const char * VMDApp::filerender_default_option const char *    method
 

get the default render option for the given method.

Definition at line 1038 of file VMDApp.C.

References FileRenderer::default_exec_string, FileRenderList::find, and NULL.

Referenced by text_cmd_render.

const char * VMDApp::filerender_get_format const char *    method,
int    i
 

Return the ith format. NULL if invalid.

Definition at line 854 of file VMDApp.C.

References FileRenderList::format.

Referenced by text_cmd_render.

int VMDApp::filerender_has_antialiasing const char *    method
 

Return whether given renderer supports antialiasing.

Definition at line 831 of file VMDApp.C.

References FileRenderList::has_antialiasing.

Referenced by text_cmd_render.

int VMDApp::filerender_has_imagesize const char *    method
 

Return whether the given renderer supports arbitrary image size.

Definition at line 844 of file VMDApp.C.

References FileRenderList::has_imagesize.

Referenced by text_cmd_render.

int VMDApp::filerender_imagesize const char *    method,
int *    imgwidth,
int *    imgheight
 

Set/get the image size. If *width or *height are zero, then the existing value will be used instead. If aspect ratio is set, then the aspect ratio will be used to determine the other member of the pair. Return success.

Definition at line 840 of file VMDApp.C.

References FileRenderList::imagesize.

Referenced by text_cmd_render.

const char * VMDApp::filerender_name int    n
 

Name of Nth file renderer.

Definition at line 818 of file VMDApp.C.

References FileRenderList::name.

Referenced by listall, and text_cmd_render.

int VMDApp::filerender_num  
 

Number of file render methods.

Definition at line 815 of file VMDApp.C.

References FileRenderList::num.

Referenced by listall, and text_cmd_render.

int VMDApp::filerender_numformats const char *    method
 

Return the number of file formats the file renderer can produce. Returns zero if the renderer method is invalid.

Definition at line 851 of file VMDApp.C.

References FileRenderList::numformats.

Referenced by text_cmd_render.

const char * VMDApp::filerender_option const char *    method,
const char *    option
 

set the command string to execute after producing the scene file Return the new value, or NULL if the method is invalid. Specify option as NULL to fetch the current value.

Definition at line 871 of file VMDApp.C.

References commandQueue, FileRenderList::find, NULL, CommandQueue::runcommand, FileRenderer::saved_exec_string, and FileRenderer::set_exec_string.

Referenced by text_cmd_render.

const char * VMDApp::filerender_prettyname int    n
 

Pretty name of Nth renderer.

Definition at line 821 of file VMDApp.C.

References FileRenderList::pretty_name.

int VMDApp::filerender_render const char *    method,
const char *    filename,
const char *    extcmd
 

do the rendering; return success.

Definition at line 864 of file VMDApp.C.

References commandQueue, FileRenderList::render, and CommandQueue::runcommand.

Referenced by render, and text_cmd_render.

int VMDApp::filerender_set_format const char *    method,
const char *    format
 

Set the output format for the renderer. Return success.

Definition at line 860 of file VMDApp.C.

References FileRenderList::set_format.

Referenced by text_cmd_render.

const char * VMDApp::filerender_shortname_from_prettyname const char *    pretty
 

Find short renderer name from the "pretty" GUI renderer name.

Definition at line 828 of file VMDApp.C.

References FileRenderList::find_short_name_from_pretty_name.

Referenced by RenderFltkMenu::act_on_command.

int VMDApp::filerender_valid const char *    method
 

Return true if renderer exists.

Definition at line 824 of file VMDApp.C.

References FileRenderList::find, and NULL.

int VMDApp::get_colorscale_colors int    whichScale,
float    min[3],
float    mid[3],
float    max[3]
 

Store the color scale colors in the given arrays.

Definition at line 1246 of file VMDApp.C.

References Scene::get_colorscale_colors, and scene.

Referenced by text_cmd_color.

int VMDApp::get_eofexit   [inline]
 

Definition at line 1113 of file VMDApp.h.

Referenced by TclTextInterp::doEvent.

vmdplugin_t * VMDApp::get_plugin const char *    type,
const char *    name
 

get a plugin of the specified type and name. If none was found, return NULL. The returned plugin should not be deleted. If multiple plugins are found, the one with the highest version number is returned.

Definition at line 1056 of file VMDApp.C.

References NULL, ResizeArray< vmdplugin_t * >::num, and PluginMgr::plugins.

Referenced by molecule_load, molecule_savetrajectory, and text_cmd_plugin.

unsigned long VMDApp::get_repserialnum void    [static]
 

Get a unique integer serial number used for identifying display lists.

Definition at line 735 of file VMDApp.C.

References repserialnum.

Referenced by Displayable::reset_disp_list.

unsigned long VMDApp::get_texserialnum void    [static]
 

Definition at line 741 of file VMDApp.C.

References texserialnum.

const char* VMDApp::get_text   [inline, static]
 

Definition at line 1103 of file VMDApp.h.

const char * VMDApp::guess_filetype const char *    filename
 

Guess a molecule file type from the given filename. Return the filetype, or NULL if unsuccesful.

Definition at line 1430 of file VMDApp.C.

References MolFilePlugin::extension, MolFilePlugin::name, NULL, ResizeArray< vmdplugin_t * >::num, and PluginMgr::plugins.

Referenced by molecule_load, text_cmd_mol, and VMDreadStartup.

int VMDApp::imd_connect int    molid,
const char *    host,
int    port
 

Establish an IMD connection to the given host over the given port, using the given molecule id. Return success.

Definition at line 2583 of file VMDApp.C.

References commandQueue, IMDMgr::connect, imdMgr, MoleculeList::mol_from_id, moleculeList, and CommandQueue::runcommand.

Referenced by imdconnect, and text_cmd_imd.

int VMDApp::imd_connected int    molid
 

Return true if an IMD simulation is established with the given molid.

Definition at line 2597 of file VMDApp.C.

References IMDMgr::get_imdmol, BaseMolecule::id, and imdMgr.

Referenced by Molecule::get_new_frames.

int VMDApp::imd_disconnect int    molid
 

Disconnect IMD. Return success.

Definition at line 2616 of file VMDApp.C.

References IMDMgr::detach, IMDMgr::get_imdmol, BaseMolecule::id, and imdMgr.

Referenced by Molecule::~Molecule.

int VMDApp::imd_sendforces int   ,
const int *   ,
const float *   
 

Send forces, assuming an IMD connection is present. Return success. Format: num, indices, forces (xyzxyzxyz).

Definition at line 2608 of file VMDApp.C.

References imdMgr, num, and IMDMgr::send_forces.

Referenced by Molecule::get_new_frames.

int VMDApp::label_add const char *    category,
int    num_ids,
const int *    molids,
const int *    atomids,
const int *    cells,
float    k,
int    toggle
 

add a label of the given category using the given molecule id's and atom id's. Return the index of the label object, or -1 on error. If toggle is true, the on/off status of the label will be toggled if the label already exists; if the label does not already exist, the newly created label will be on regardless of the value of toggle.

Definition at line 3001 of file VMDApp.C.

References GeometryList::add_geometry, commandQueue, geometryList, and CommandQueue::runcommand.

Referenced by SpringTool::do_event, label_add, PickModeMolLabel::pick_molecule_end, PickModeAddBond::pick_molecule_end, and text_cmd_label.

int VMDApp::label_delete const char *    category,
int    n
 

delete the nth label of the given category. If n is -1, delete all labels from that category. Return success.

Definition at line 3066 of file VMDApp.C.

References commandQueue, GeometryList::del_geometry, geometryList, and CommandQueue::runcommand.

Referenced by label_delete, and text_cmd_label.

float VMDApp::label_get_text_size   const
 

get/size size and thickness of text labels. This affects all labels.

Definition at line 3025 of file VMDApp.C.

References geometryList, and GeometryList::getTextSize.

Referenced by label_textsize, and text_cmd_label.

float VMDApp::label_get_text_thickness   const
 

Definition at line 3037 of file VMDApp.C.

References geometryList, and GeometryList::getTextThickness.

Referenced by label_textthickness, and text_cmd_label.

int VMDApp::label_set_text_size float   
 

Definition at line 3029 of file VMDApp.C.

References commandQueue, geometryList, CommandQueue::runcommand, and GeometryList::setTextSize.

Referenced by label_textsize, text_cmd_label, textsizeinputcb, and textsizeslidercb.

int VMDApp::label_set_text_thickness float   
 

Definition at line 3041 of file VMDApp.C.

References commandQueue, geometryList, CommandQueue::runcommand, and GeometryList::setTextThickness.

Referenced by label_textthickness, text_cmd_label, textthicknessinputcb, and textthicknessslidercb.

int VMDApp::label_set_textformat const char *    nm,
int    n,
const char *    format
 

Definition at line 3058 of file VMDApp.C.

References commandQueue, geometryList, CommandQueue::runcommand, and GeometryList::setTextFormat.

Referenced by GeometryFltkMenu::apply_format_to_selected_labels, and text_cmd_label.

int VMDApp::label_set_textoffset const char *    nm,
int    n,
float    x,
float    y
 

Definition at line 3049 of file VMDApp.C.

References commandQueue, geometryList, CommandQueue::runcommand, and GeometryList::setTextOffset.

Referenced by GeometryFltkMenu::apply_offset_to_selected_labels, and text_cmd_label.

int VMDApp::label_show const char *    category,
int    n,
int    onoff
 

turn on/off the nth label of the given category. Return success.

Definition at line 3016 of file VMDApp.C.

References commandQueue, geometryList, CommandQueue::runcommand, and GeometryList::show_geometry.

Referenced by label_hide, label_show, and text_cmd_label.

int VMDApp::light_highlight int    lightnum,
int    onoff
 

Definition at line 2884 of file VMDApp.C.

References commandQueue, DISP_LIGHTS, Scene::highlight_light, CommandQueue::runcommand, and scene.

Referenced by Mouse::move_mode, and text_cmd_light.

int VMDApp::light_move int    lightnum,
const float *    newpos
 

Definition at line 2898 of file VMDApp.C.

References commandQueue, DISP_LIGHTS, Scene::move_light, CommandQueue::runcommand, and scene.

Referenced by text_cmd_light.

int VMDApp::light_on int    lightnum,
int    onoff
 

Definition at line 2878 of file VMDApp.C.

References Scene::activate_light, commandQueue, DISP_LIGHTS, CommandQueue::runcommand, and scene.

Referenced by light_cb, and text_cmd_light.

int VMDApp::light_rotate int    lightnum,
float    amt,
char    axis
 

Definition at line 2891 of file VMDApp.C.

References commandQueue, DISP_LIGHTS, Scene::rotate_light, CommandQueue::runcommand, and scene.

Referenced by Mouse::check_event, text_cmd_light, and text_cmd_point_light.

int VMDApp::list_plugins PluginList  ,
const char *    type = NULL
 

Get alll plugins of the specfied type. If no type is specified or is NULL, all loaded plugins will be returned. Returns the number of plugins added to the list.

Definition at line 1076 of file VMDApp.C.

References PluginMgr::plugins.

Referenced by SaveTrajectoryFltkMenu::act_on_command, and text_cmd_plugin.

int VMDApp::logfile_read const char *    path
 

Process the commands in the given file.

Definition at line 1328 of file VMDApp.C.

References UIText::read_from_file, and uiText.

Referenced by text_cmd_gopython, and VMDreadStartup.

const char * VMDApp::material_add const char *    name,
const char *    copyfrom
 

add material with given name, copying settings from given material. If name is NULL a default unique name will be chosen; if copyfrom is NULL the 0th material will be copied. The name of the new material is returned, or NULL on error.

Definition at line 3125 of file VMDApp.C.

References MaterialList::add_material, commandQueue, materialList, and CommandQueue::runcommand.

Referenced by add, parseMaterialDefs, and text_cmd_material.

int VMDApp::material_change const char *    name,
int    property,
float    val
 

change the given material property. property is from MaterialProperty defined in MaterialList. Return success.

Definition at line 3176 of file VMDApp.C.

References commandQueue, MAT_AMBIENT, MAT_DIFFUSE, MAT_OPACITY, MAT_OUTLINE, MAT_OUTLINEWIDTH, MAT_SHININESS, MAT_SPECULAR, MAT_TRANSMODE, MaterialList::material_index, materialList, CommandQueue::runcommand, MaterialList::set_ambient, MaterialList::set_diffuse, MaterialList::set_opacity, MaterialList::set_outline, MaterialList::set_outlinewidth, MaterialList::set_shininess, MaterialList::set_specular, and MaterialList::set_transmode.

Referenced by change, parseMaterialDefs, and text_cmd_material.

int VMDApp::material_delete const char *    name
 

delete material with given name. Return success.

Definition at line 3133 of file VMDApp.C.

References commandQueue, MaterialList::delete_material, MaterialList::material_index, materialList, CommandQueue::runcommand, and stringdup.

Referenced by matdelete, and text_cmd_material.

int VMDApp::material_rename const char *    oldname,
const char *    newname
 

rename the given material. The new name must contain only alphanumeric characters (no spaces). Return success.

Definition at line 3145 of file VMDApp.C.

References commandQueue, MaterialList::material_index, materialList, CommandQueue::runcommand, MaterialList::set_name, and stringdup.

Referenced by rename, and text_cmd_material.

int VMDApp::material_restore_default int   
 

restore the default value of the material with the given index. Return success. Fails if the material has no default.

Definition at line 3193 of file VMDApp.C.

References commandQueue, materialList, MaterialList::restore_default, and CommandQueue::runcommand.

Referenced by set_default, and text_cmd_material.

void VMDApp::menu_add_extension const char *    shortname,
const char *    menu_path
 

Announce that the menu of the given name is a menu extension. This lets widgets add the menu to their own pulldown menus if they wish.

Definition at line 484 of file VMDApp.C.

References commandQueue, and CommandQueue::runcommand.

Referenced by addmenu, registermenu, and text_cmd_menu.

int VMDApp::menu_location const char *    name,
int &    x,
int &    y
 

Get the location of the specified menu.

Definition at line 500 of file VMDApp.C.

References NameList< VMDMenu * >::data, NameList< VMDMenu * >::typecode, and VMDMenu::where.

Referenced by location, and text_cmd_menu.

int VMDApp::menu_move const char *    name,
int    x,
int    y
 

Move the specified menu to the given location on the screen.

Definition at line 519 of file VMDApp.C.

References NameList< VMDMenu * >::data, VMDMenu::move, and NameList< VMDMenu * >::typecode.

Referenced by location, and text_cmd_menu.

const char * VMDApp::menu_name int   
 

Name of nth menu; 0 <= n < num_menus().

Definition at line 492 of file VMDApp.C.

References NameList< VMDMenu * >::name.

Referenced by text_cmd_menu.

void VMDApp::menu_remove_extension const char *    shortname
 

Definition at line 488 of file VMDApp.C.

References commandQueue, and CommandQueue::runcommand.

Referenced by text_cmd_menu.

int VMDApp::menu_select_mol const char *    name,
int    molno
 

Tells the specified menu to select the "molno"-th molecule internally.

Definition at line 527 of file VMDApp.C.

References NameList< VMDMenu * >::data, VMDMenu::selectmol, and NameList< VMDMenu * >::typecode.

Referenced by MolBrowser::handle, loadnew_cb, and text_cmd_menu.

int VMDApp::menu_show const char *    name,
int    on
 

Turn the specified menu on or off.

Definition at line 507 of file VMDApp.C.

References commandQueue, NameList< VMDMenu * >::data, UIObject::Off, UIObject::On, CommandQueue::runcommand, and NameList< VMDMenu * >::typecode.

Referenced by loadnew_cb, menu_cb, render_cb, show, text_cmd_menu, and VMDinit.

int VMDApp::menu_status const char *    name
 

Return 1 or 0 if the menu is on or off. Return 0 if the menu does not exist.

Definition at line 494 of file VMDApp.C.

References UIObject::active, NameList< VMDMenu * >::data, and NameList< VMDMenu * >::typecode.

Referenced by show, and text_cmd_menu.

int VMDApp::mobile_get_APIsupported  
 

Get the version of the API that we support.

Definition at line 3262 of file VMDApp.C.

References Mobile::get_APIsupported.

Referenced by text_cmd_mobile.

void VMDApp::mobile_get_client_list ResizeArray< JString * > *&    nick,
ResizeArray< JString * > *&    ip,
ResizeArray< bool > *&    active
 

Get the list of current clients.

Definition at line 3246 of file VMDApp.C.

References Mobile::get_client_list.

Referenced by text_cmd_mobile.

int VMDApp::mobile_get_mode  
 

Get the mobile interface mode.

Definition at line 3242 of file VMDApp.C.

References Mobile::get_move_mode.

Referenced by text_cmd_mobile.

int VMDApp::mobile_get_network_port  
 

Get the mobile interface network port.

Definition at line 3258 of file VMDApp.C.

References Mobile::get_port.

Referenced by text_cmd_mobile.

void VMDApp::mobile_get_tracker_status float &    tx,
float &    ty,
float &    tz,
float &    rx,
float &    ry,
float &    rz,
int &    buttons
 

return the current mobile interface event data, used by the UIVR MobileTracker interface.

Definition at line 3280 of file VMDApp.C.

References Mobile::get_tracker_status, and NULL.

Referenced by MobileTracker::update, and MobileButtons::update.

int VMDApp::mobile_network_port int    port
 

Change the mobile interface network port.

Definition at line 3252 of file VMDApp.C.

References Mobile::network_port.

Referenced by text_cmd_mobile.

int VMDApp::mobile_sendMsg const char *    nick,
const char *    ip,
const char *    msgType,
const char *    msg
 

Send a message to a specific client.

Definition at line 3272 of file VMDApp.C.

References Mobile::sendMsgToClient.

Referenced by text_cmd_mobile.

int VMDApp::mobile_set_activeClient const char *    nick,
const char *    ip
 

Set the currently active client, identified by nick and ip.

Definition at line 3267 of file VMDApp.C.

References Mobile::set_activeClient.

Referenced by text_cmd_mobile.

int VMDApp::mobile_set_mode int    mode
 

Change the mobile interface mode.

Definition at line 3233 of file VMDApp.C.

References commandQueue, Mobile::move_mode, Mobile::MoveMode, and CommandQueue::runcommand.

Referenced by text_cmd_mobile.

int VMDApp::molecule_activate int    molid,
int    onoff
 

make the given molecule 'active' or 'inactive'; active molecules respond to animate requests while inactive molecules do not.

Definition at line 1983 of file VMDApp.C.

References MoleculeList::activate, commandQueue, MoleculeList::inactivate, MoleculeList::mol_index_from_id, moleculeList, and CommandQueue::runcommand.

Referenced by activate, MolBrowser::handle, mol_active_cb, molinfo_set, and text_cmd_mol.

int VMDApp::molecule_add_volumetric int    molid,
const char *    dataname,
const float    origin[3],
const float    xaxis[3],
const float    yaxis[3],
const float    zaxis[3],
int    xsize,
int    ysize,
int    zsize,
float *    datablock
 

Add volumetric data to a given molecule. The data block will be deleted by VMD. Return success.

Definition at line 2431 of file VMDApp.C.

References BaseMolecule::add_volume_data, commandQueue, MoleculeList::mol_from_id, moleculeList, CommandQueue::runcommand, and scene_resetview_newmoldata.

Referenced by VolMapCreateILS::add_map_to_molecule, mol_add_volumetric, text_cmd_mol, and vmd_volmap_new_fromtype.

int VMDApp::molecule_addrep int    molid
 

Add a rep to the given molecule, using parameters specified in the molecule_set methods. molid must be a valid molecule id.

Definition at line 2149 of file VMDApp.C.

References MoleculeList::add_rep, commandQueue, MoleculeList::mol_index_from_id, moleculeList, and CommandQueue::runcommand.

Referenced by addrep, molecule_load, and text_cmd_mol.

int VMDApp::molecule_bondsrecalc int    molid
 

Force recalculation of bonds for the given molecule based on the current set of coordinates.

Definition at line 2338 of file VMDApp.C.

References commandQueue, MoleculeList::mol_from_id, MoleculeEvent::MOL_REGEN, moleculeList, DrawMolecule::recalc_bonds, and CommandQueue::runcommand.

Referenced by text_cmd_mol.

int VMDApp::molecule_cancel_io int    molid
 

cancel any in-progress file I/O associated with a given molecule.

Definition at line 1927 of file VMDApp.C.

References Molecule::cancel, commandQueue, MoleculeList::mol_from_id, moleculeList, and CommandQueue::runcommand.

Referenced by mol_cancel, mol_cancel_cb, and text_cmd_mol.

int VMDApp::molecule_delete int    molid
 

delete the molecule with the given id.

Definition at line 1935 of file VMDApp.C.

References commandQueue, MoleculeList::del_molecule, MoleculeEvent::MOL_DELETE, moleculeList, and CommandQueue::runcommand.

Referenced by mol_delete, mol_delete_cb, and text_cmd_mol.

int VMDApp::molecule_delete_all void   
 

delete all molecules.

Definition at line 1949 of file VMDApp.C.

References commandQueue, MoleculeList::del_all_molecules, BaseMolecule::id, MoleculeEvent::MOL_DELETE, MoleculeList::molecule, moleculeList, num_molecules, and CommandQueue::runcommand.

Referenced by text_cmd_mol.

int VMDApp::molecule_deleteframes int    molid,
int    first,
int    last,
int    stride
 

Delete the specified range of timesteps from the given molecule, keeping every "stride" molecule (unless stride = 0).

Definition at line 1878 of file VMDApp.C.

References commandQueue, DrawMolecule::delete_frame, MoleculeList::mol_from_id, moleculeList, DrawMolecule::numframes, and CommandQueue::runcommand.

Referenced by delframe, MolBrowser::handle, mol_delete_ts_cb, and text_cmd_animate.

int VMDApp::molecule_display int    molid,
int    onoff
 

Turn the given molecule on or off. Turning a molecule off causes all its reps to not be rendered.

Definition at line 2013 of file VMDApp.C.

References commandQueue, MoleculeList::hide, MoleculeList::mol_index_from_id, moleculeList, CommandQueue::runcommand, and MoleculeList::show.

Referenced by MolBrowser::handle, mol_displayed_cb, molinfo_set, set_visible, show, and text_cmd_mol.

int VMDApp::molecule_dupframe int    molid,
int    frame
 

Duplicate the given frame. The new fram will be appended at the end. Passing -1 for frame duplicates the current frame. Return success.

Definition at line 2368 of file VMDApp.C.

References commandQueue, DrawMolecule::current, DrawMolecule::duplicate_frame, DrawMolecule::get_frame, MoleculeList::mol_from_id, moleculeList, DrawMolecule::numframes, and CommandQueue::runcommand.

Referenced by dupframe, and text_cmd_animate.

int VMDApp::molecule_fix int    molid,
int    onoff
 

make the given molecule fixed or unfixed. Fixed molecules do not respond to scene transformation operations.

Definition at line 1998 of file VMDApp.C.

References commandQueue, MoleculeList::fix, MoleculeList::mol_index_from_id, moleculeList, CommandQueue::runcommand, and MoleculeList::unfix.

Referenced by Tool::dograb, fix, MolBrowser::handle, mol_fixed_cb, molinfo_set, text_cmd_mol, and Tool::ungrab.

int VMDApp::molecule_frame int    molid
 

Current frame in molecule. Return -1 on invalid molid, otherwise [0, numframes()).

Definition at line 2363 of file VMDApp.C.

References DrawMolecule::frame, MoleculeList::mol_from_id, and moleculeList.

Referenced by access_tcl_atomsel, MainFltkMenu::act_on_command, get_frame, print_atom_info, and print_mol_summary.

const char * VMDApp::molecule_get_color  
 

Definition at line 2122 of file VMDApp.C.

References MoleculeList::color, and moleculeList.

Referenced by text_cmd_mol.

const char * VMDApp::molecule_get_material  
 

Definition at line 2140 of file VMDApp.C.

References MoleculeList::material, and moleculeList.

Referenced by text_cmd_mol.

const char * VMDApp::molecule_get_selection  
 

Definition at line 2131 of file VMDApp.C.

References moleculeList, and MoleculeList::selection.

Referenced by text_cmd_mol.

const char * VMDApp::molecule_get_style  
 

Definition at line 2113 of file VMDApp.C.

References moleculeList, and MoleculeList::representation.

Referenced by text_cmd_mol.

int VMDApp::molecule_id int   
 

ID of the ith molecule. This ID is used to specify a molecule for all other methods. Return -1 if the ith molecule is not present; otherwise the ID is a nonnegative integer unique to each molecule.

Definition at line 1917 of file VMDApp.C.

References BaseMolecule::id, MoleculeList::molecule, moleculeList, NULL, and num_molecules.

Referenced by SaveTrajectoryFltkMenu::do_save, fill_fltk_molchooser, IdList::find, MolBrowser::handle, myBrowser::handle, mol_active_cb, mol_cancel_cb, mol_delete_cb, mol_delete_ts_cb, mol_displayed_cb, mol_fixed_cb, mol_listall, mol_rename_cb, mol_top_cb, SaveTrajectoryFltkMenu::molchooser_activate_selection, GraphicsFltkMenu::set_autoupdate, GraphicsFltkMenu::set_colorupdate, ToolFltkMenu::set_toolrep, GraphicsFltkMenu::update_molchooser, ToolFltkMenu::update_replist, GraphicsFltkMenu::update_selection, ToolFltkMenu::update_toolrep_choosers, GraphicsFltkMenu::use_colorscale_auto, and GraphicsFltkMenu::use_colorscale_minmax.

int VMDApp::molecule_index_from_id int    molid
 

Return the array index of the molecule with the specified ID. Returns -1 if the ID does not exist, otherwise a nonnegative array index is returned.

Definition at line 1913 of file VMDApp.C.

References MoleculeList::mol_index_from_id, and moleculeList.

int VMDApp::molecule_is_active int    molid
 

Definition at line 1993 of file VMDApp.C.

References MoleculeList::active, MoleculeList::mol_index_from_id, and moleculeList.

Referenced by IdList::find, MolBrowser::handle, mol_active_cb, and print_mol_summary.

int VMDApp::molecule_is_displayed int    molid
 

Definition at line 2023 of file VMDApp.C.

References MoleculeList::displayed, MoleculeList::mol_index_from_id, and moleculeList.

Referenced by fill_fltk_molchooser, IdList::find, get_visible, MolBrowser::handle, mol_displayed_cb, print_arep_summary, and print_mol_summary.

int VMDApp::molecule_is_fixed int    molid
 

Definition at line 2008 of file VMDApp.C.

References MoleculeList::fixed, MoleculeList::mol_index_from_id, and moleculeList.

Referenced by IdList::find, MolBrowser::handle, mol_fixed_cb, and print_mol_summary.

int VMDApp::molecule_load int    molid,
const char *    filename,
const char *    filetype,
const FileSpec   spec
 

Load data from the given file of type filetype. If molid is -1, a new molecule will be created if the file is successfully read; otherwise molid must be a valid molecule id. As much information will be loaded from the file as possible, and within the limits prescribed by FileSpec. Returns the molid of the molecule into which the data was read. If the file type is unknown, use guess_filetype to obtain a filetype; don't pass NULL to filetype.

Definition at line 1486 of file VMDApp.C.

References MoleculeList::add_color_names, Molecule::add_coor_file, BaseMolecule::analyze, FileSpec::autobonds, MolFilePlugin::can_read_graphics, MolFilePlugin::can_read_metadata, MolFilePlugin::can_read_structure, MolFilePlugin::can_read_timesteps, MolFilePlugin::can_read_volumetric, DrawMolItem::COL_REGEN, commandQueue, DrawMolecule::components, data, MoleculeList::default_color, MoleculeList::default_material, MoleculeList::default_representation, MoleculeList::default_selection, FileSpec::filebonds, FileSpec::first, DrawMolecule::force_recalc, get_plugin, guess_filetype, BaseMolecule::has_structure, BaseMolecule::id, BaseMolecule::init_atoms, MolFilePlugin::init_read, FileSpec::last, MoleculeList::mol_from_id, MoleculeList::mol_index_from_id, molecule_addrep, molecule_new, molecule_set_style, moleculeList, BaseMolecule::nAtoms, MolFilePlugin::natoms, Molecule::next_frame, NULL, BaseMolecule::num_volume_data, FileSpec::nvolsets, MolFilePlugin::read_metadata, MolFilePlugin::read_optional_structure, MolFilePlugin::read_rawgraphics, MolFilePlugin::read_structure, MolFilePlugin::read_volumetric, Molecule::record_database, Molecule::record_file, Molecule::record_remarks, CommandQueue::runcommand, scene, scene_resetview_newmoldata, DrawMolItem::SEL_REGEN, MoleculeList::set_color, MoleculeList::set_material, MoleculeList::set_representation, MoleculeList::set_selection, FileSpec::setids, FileSpec::stride, and FileSpec::waitfor.

Referenced by MolBrowser::handle, myglwindow::handle, mol_load, readorwrite, text_cmd_animate, text_cmd_mol, VMDreadStartup, and vmdWindowProc.

int VMDApp::molecule_make_top int    molid
 

Make the given molecule top. There is always exactly one top molecule, if any are loaded.

Definition at line 2028 of file VMDApp.C.

References commandQueue, MoleculeList::make_top, MoleculeList::mol_index_from_id, moleculeList, and CommandQueue::runcommand.

Referenced by MolBrowser::handle, mol_top_cb, molinfo_set, set_top, and text_cmd_mol.

int VMDApp::molecule_modrep int    molid,
int    repid
 

Change the specified rep, using the same settings as for addrep.

Definition at line 2156 of file VMDApp.C.

References MoleculeList::change_rep, commandQueue, MoleculeList::mol_index_from_id, moleculeList, and CommandQueue::runcommand.

const char * VMDApp::molecule_name int    molid
 

name of molecule.

Definition at line 2387 of file VMDApp.C.

References MoleculeList::mol_from_id, moleculeList, BaseMolecule::molname, and NULL.

Referenced by cmd_mol_list, fill_fltk_molchooser, MolBrowser::handle, mol_delete_ts_cb, mol_name, mol_rename_cb, and print_mol_summary.

int VMDApp::molecule_new const char *    name,
int    natoms,
int    docallbacks = 1
 

Create a new "empty" molecule, basically a blank slate for import low-level graphics or other data. Return the molid of the new molecule. we also allow to set the number of atoms. this is particularly useful for topology building scripts.

Definition at line 1353 of file VMDApp.C.

References BaseMolecule::add_atom, Scene::add_color_item, MoleculeList::add_molecule, BaseMolecule::beta, BaseMolecule::charge, MoleculeList::colorCatIndex, commandQueue, BaseMolecule::default_beta, BaseMolecule::default_charge, BaseMolecule::default_mass, BaseMolecule::default_occup, BaseMolecule::default_radius, BaseMolecule::id, BaseMolecule::init_atoms, BaseMolecule::mass, MLCAT_MOLECULES, MoleculeEvent::MOL_NEW, molecule_rename, moleculeList, NULL, BaseMolecule::occupancy, BaseMolecule::radius, Molecule::rename, Scene::root, CommandQueue::runcommand, scene, and VISCLRS.

Referenced by mol_load, mol_new, molecule_load, and text_cmd_mol.

int VMDApp::molecule_numatoms int    molid
 

number of atoms in molecule. Return -1 on invalid molid, otherwise 0 or more.

Definition at line 2353 of file VMDApp.C.

References MoleculeList::mol_from_id, moleculeList, and BaseMolecule::nAtoms.

Referenced by mol_numatoms, and print_mol_summary.

int VMDApp::molecule_numframes int    molid
 

number of frames in molecule. Return -1 on invalid molid, otherwise 0 or more.

Definition at line 2358 of file VMDApp.C.

References MoleculeList::mol_from_id, moleculeList, and DrawMolecule::numframes.

Referenced by access_tcl_atomsel, MainFltkMenu::act_on_command, VolMapCreate::calculate_minmax, VolMapCreateILS::compute, VolMapCreate::compute_all, curframe_cb, SaveTrajectoryFltkMenu::do_save, MolBrowser::handle, mol_delete_ts_cb, SaveTrajectoryFltkMenu::molchooser_activate_selection, numframes, print_mol_summary, Tool::target, text_cmd_animate, and vmd_volmap_ils.

int VMDApp::molecule_orblocalize int    molid,
int    waveid
 

Create a new wavefunction object based on existing wavefunction <waveid> with orbitals localized using the Pipek-Mezey algorithm.

Definition at line 2410 of file VMDApp.C.

References QMData::expand_basis_array, DrawMolecule::get_frame, MoleculeList::mol_from_id, moleculeList, NULL, DrawMolecule::numframes, QMData::orblocalize, and BaseMolecule::qm_data.

Referenced by text_cmd_mol.

int VMDApp::molecule_reanalyze int    molid
 

Re-analyze the molecule after atom names, bonds, and other other data have been changed. This can be used to fix unrecognized atom names in non-standard nucleic acid residues, and fix other issues on-the-fly without having to hand-edit the files.

Definition at line 2318 of file VMDApp.C.

References BaseMolecule::analyze, DrawMolItem::COL_REGEN, commandQueue, DrawMolecule::force_recalc, DrawMolecule::invalidate_ss, MoleculeList::mol_from_id, MoleculeEvent::MOL_REGEN, DrawMolItem::MOL_REGEN, moleculeList, CommandQueue::runcommand, and DrawMolItem::SEL_REGEN.

Referenced by text_cmd_mol.

int VMDApp::molecule_rename int    molid,
const char *    newname
 

Definition at line 2392 of file VMDApp.C.

References Scene::add_color_item, MoleculeList::colorCatIndex, commandQueue, BaseMolecule::id, MLCAT_MOLECULES, MoleculeList::mol_from_id, MoleculeEvent::MOL_RENAME, moleculeList, Molecule::rename, CommandQueue::runcommand, scene, and VISCLRS.

Referenced by MolBrowser::handle, mol_rename, mol_rename_cb, molecule_new, and text_cmd_mol.

int VMDApp::molecule_savetrajectory int    molid,
const char *    filename,
const char *    filetype,
const FileSpec   spec
 

Write trajectory frames to a file. Return number of frames written before returning, as in the addfile method. Filetype should be one of the file types returned by savecoorfile_plugin_name(). selection must be NULL, or point to an array of flags, one for each atom in the molecule, indicating which atoms' coordinates are to be written.

Definition at line 1738 of file VMDApp.C.

References Molecule::add_coor_file, Molecule::close_coor_file, commandQueue, data, CoorData::DONE, FileSpec::first, get_plugin, MolFilePlugin::init_write, FileSpec::last, MoleculeList::mol_from_id, moleculeList, BaseMolecule::nAtoms, CoorData::next, CoorData::NOTDONE, NULL, BaseMolecule::num_volume_data, DrawMolecule::numframes, FileSpec::nvolsets, CommandQueue::runcommand, FileSpec::selection, FileSpec::setids, FileSpec::stride, and FileSpec::waitfor.

Referenced by access_tcl_atomsel, SaveTrajectoryFltkMenu::do_save, py_write, readorwrite, text_cmd_animate, and VolMapCreateILS::write_map.

int VMDApp::molecule_set_color const char *    color
 

Definition at line 2125 of file VMDApp.C.

References commandQueue, moleculeList, CommandQueue::runcommand, and MoleculeList::set_color.

Referenced by addrep, and text_cmd_mol.

int VMDApp::molecule_set_dataset_flag int    molid,
const char *    dataflagstr,
int    setval
 

Set/unset dataset flags, indicating to VMD which fields should be written out when the molecule is saved.

Definition at line 2251 of file VMDApp.C.

References BaseMolecule::ALTLOC, BaseMolecule::ANGLES, BaseMolecule::ANGLETYPES, BaseMolecule::ATOMICNUMBER, BaseMolecule::BFACTOR, BaseMolecule::BONDORDERS, BaseMolecule::BONDS, BaseMolecule::BONDTYPES, BaseMolecule::CHARGE, BaseMolecule::CTERMS, BaseMolecule::INSERTION, BaseMolecule::MASS, MoleculeList::mol_from_id, moleculeList, BaseMolecule::NODATA, BaseMolecule::OCCUPANCY, BaseMolecule::RADIUS, BaseMolecule::set_dataset_flag, and BaseMolecule::unset_dataset_flag.

Referenced by text_cmd_mol.

int VMDApp::molecule_set_material const char *    material
 

Definition at line 2143 of file VMDApp.C.

References commandQueue, moleculeList, CommandQueue::runcommand, and MoleculeList::set_material.

Referenced by addrep, and text_cmd_mol.

int VMDApp::molecule_set_selection const char *    selection
 

Definition at line 2134 of file VMDApp.C.

References commandQueue, moleculeList, CommandQueue::runcommand, and MoleculeList::set_selection.

Referenced by addrep, and text_cmd_mol.

int VMDApp::molecule_set_style const char *    style
 

Definition at line 2116 of file VMDApp.C.

References commandQueue, moleculeList, CommandQueue::runcommand, and MoleculeList::set_representation.

Referenced by addrep, molecule_load, and text_cmd_mol.

int VMDApp::molecule_ssrecalc int    molid
 

Force the recalculation of the secondary structure for the given molecule based on the current set of coordinates. Return true if the secondary structure was successfully recalculated, otherwise false.

Definition at line 2346 of file VMDApp.C.

References commandQueue, MoleculeList::mol_from_id, moleculeList, DrawMolecule::recalc_ss, and CommandQueue::runcommand.

Referenced by mol_ssrecalc, and text_cmd_mol.

int VMDApp::molecule_top  
 

return the molid of the top molecule.

Definition at line 2035 of file VMDApp.C.

References BaseMolecule::id, moleculeList, and MoleculeList::top.

Referenced by MainFltkMenu::act_on_command, atomsel_new, cmd_gettimestep, cmd_rawtimestep, curframe_cb, IdList::find, get_visible, parse_timestep, print_mol_summary, set_visible, text_cmd_animate, text_cmd_mol, vmd_measure_angle, vmd_measure_bond, vmd_measure_dihed, vmd_measure_energy, vmd_measure_pbc2onc_transform, vmd_measure_pbc_neighbors, vmd_volmap_compare, vmd_volmap_ils, and vmd_volmap_new_fromtype.

int VMDApp::molecule_valid_id int    molid
 

Return true or false if the given molid is valid.

Definition at line 1924 of file VMDApp.C.

References MoleculeList::mol_from_id, moleculeList, and NULL.

Referenced by access_tcl_atomsel, addrep, delframe, delrep, dupframe, IdList::find, get_color, get_frame, get_material, get_scaleminmax, get_selection, get_style, get_visible, modrep, mol_add_volumetric, mol_cancel, mol_delete, mol_exists, mol_numatoms, mol_rename, mol_ssrecalc, molrep_num, numframes, print_arep_summary, print_mol_summary, readorwrite, reset_scaleminmax, set_scaleminmax, set_top, set_visible, tcl_get_weights, text_cmd_mol, vmd_measure_cluster, vmd_measure_clustsize, vmd_measure_inertia, vmd_measure_pbc_neighbors, vmd_measure_symmetry, vmd_measure_trans_overlap, vmd_volmap_compare, vmd_volmap_ils, and vmd_volmap_new_fromtype.

int VMDApp::molrep_delete int    molid,
int    repid
 

Delete the specified rep.

Definition at line 2163 of file VMDApp.C.

References commandQueue, MoleculeList::del_rep, MoleculeList::mol_index_from_id, moleculeList, and CommandQueue::runcommand.

Referenced by delrep, and text_cmd_mol.

int VMDApp::molrep_get_by_name int    molid,
const char *   
 

Get the repid of the rep with the given name. Return -1 if the name was not found.

Definition at line 2508 of file VMDApp.C.

References DrawMolecule::get_component_by_name, MoleculeList::mol_from_id, and moleculeList.

Referenced by repindex, Tool::target, text_cmd_mol, Tool::tug, and ToolFltkMenu::update_toolrep_choosers.

int VMDApp::molrep_get_clipplane int    molid,
int    repid,
int    clipid,
float *    center,
float *    normal,
float *    color,
int *    mode
 

Get clipping plane info for reps. center and normal should point to space for three floats.

Definition at line 2456 of file VMDApp.C.

References VMDClipPlane::center, Displayable::clipplane, VMDClipPlane::color, DrawMolecule::component, VMDClipPlane::mode, MoleculeList::mol_from_id, moleculeList, and VMDClipPlane::normal.

Referenced by text_cmd_mol.

const char * VMDApp::molrep_get_color int    molid,
int    repid
 

Get/set the current representation color.

Definition at line 2060 of file VMDApp.C.

References DrawMolItem::atomColor, AtomColor::cmdStr, DrawMolecule::component, MoleculeList::mol_from_id, moleculeList, NULL, and num_molreps.

Referenced by get_color, and print_arep_summary.

int VMDApp::molrep_get_colorupdate int    molid,
int    repid
 

Turn on/off automatic color update for the specified rep.

Definition at line 2198 of file VMDApp.C.

References DrawMolItem::atomColor, DrawMolecule::component, AtomColor::do_update, MoleculeList::mol_from_id, moleculeList, NULL, and num_molreps.

Referenced by get_colorupdate, and text_cmd_mol.

const char * VMDApp::molrep_get_drawframes int    molid,
int    repid
 

Definition at line 2560 of file VMDApp.C.

References DrawMolecule::component, DrawMolItem::get_drawframes, MoleculeList::mol_from_id, moleculeList, NULL, and num_molreps.

Referenced by text_cmd_mol.

const char * VMDApp::molrep_get_material int    molid,
int    repid
 

Get/set the current representation material.

Definition at line 2098 of file VMDApp.C.

References DrawMolecule::component, Displayable::curr_material, MaterialList::material_name, materialList, MoleculeList::mol_from_id, moleculeList, NULL, and num_molreps.

Referenced by get_material.

const char * VMDApp::molrep_get_name int    molid,
int    repid
 

Get the name of the given rep. Return NULL if the id is invalid.

Definition at line 2502 of file VMDApp.C.

References DrawMolecule::get_component_name, MoleculeList::mol_from_id, moleculeList, and NULL.

Referenced by get_autoupdate, get_colorupdate, get_repname, get_smoothing, get_visible, and text_cmd_mol.

int VMDApp::molrep_get_pbc int    molid,
int    repid
 

Get current pbc for this rep; returns -1 if invalid.

Definition at line 2230 of file VMDApp.C.

References DrawMolecule::component, DrawMolItem::get_pbc, MoleculeList::mol_from_id, moleculeList, and num_molreps.

Referenced by text_cmd_mol.

int VMDApp::molrep_get_pbc_images int    molid,
int    repid
 

Get number of images; returns -1 on error.

Definition at line 2244 of file VMDApp.C.

References DrawMolecule::component, DrawMolItem::get_pbc_images, MoleculeList::mol_from_id, moleculeList, and num_molreps.

Referenced by text_cmd_mol.

int VMDApp::molrep_get_scaleminmax int    molid,
int    repid,
float *    min,
float *    max
 

Get/set data range of color scale.

Definition at line 2514 of file VMDApp.C.

References DrawMolItem::atomColor, DrawMolecule::component, AtomColor::find, AtomColor::get_colorscale_minmax, MoleculeList::mol_from_id, moleculeList, num_molreps, and AtomColor::rescale_colorscale_minmax.

Referenced by get_scaleminmax, text_cmd_mol, and GraphicsFltkMenu::use_colorscale_auto.

const char * VMDApp::molrep_get_selection int    molid,
int    repid
 

Get/set the current representation selection.

Definition at line 2075 of file VMDApp.C.

References DrawMolItem::atomSel, AtomSel::cmdStr, DrawMolecule::component, MoleculeList::mol_from_id, moleculeList, NULL, and num_molreps.

Referenced by get_selection, SaveTrajectoryFltkMenu::molchooser_activate_selection, print_arep_summary, ToolFltkMenu::update_replist, and GraphicsFltkMenu::update_selection.

int VMDApp::molrep_get_selupdate int    molid,
int    repid
 

Turn on/off selection auto-update for the specified rep. When on, the representation will recalculate its selection each time there is change in the coordinate frame of the molecule.

Definition at line 2171 of file VMDApp.C.

References DrawMolItem::atomSel, DrawMolecule::component, AtomSel::do_update, MoleculeList::mol_from_id, moleculeList, NULL, and num_molreps.

Referenced by get_autoupdate, and text_cmd_mol.

int VMDApp::molrep_get_smoothing int    molid,
int    repid
 

Get smoothing for given rep. Returns -1 for invalid rep, otherwise 0 or higher.

Definition at line 2217 of file VMDApp.C.

References DrawMolecule::component, DrawMolItem::get_smoothing, MoleculeList::mol_from_id, moleculeList, and num_molreps.

Referenced by get_smoothing, and text_cmd_mol.

const char * VMDApp::molrep_get_style int    molid,
int    repid
 

Get/set the current representation style.

Definition at line 2045 of file VMDApp.C.

References DrawMolItem::atomRep, AtomRep::cmdStr, DrawMolecule::component, MoleculeList::mol_from_id, moleculeList, NULL, and num_molreps.

Referenced by get_style, and print_arep_summary.

int VMDApp::molrep_is_shown int    molid,
int    repid
 

Return 1 if shown, 0 if hidden or does not exist.

Definition at line 2573 of file VMDApp.C.

References DrawMolecule::component, Displayable::displayed, MoleculeList::mol_from_id, moleculeList, and num_molreps.

Referenced by get_visible, myBrowser::handle, and text_cmd_mol.

int VMDApp::molrep_numselected int    molid,
int    repid
 

Get the number of atoms in the rep's selection. If invalid molid or repid, return -1, otherwise 0 or more.

Definition at line 2091 of file VMDApp.C.

References DrawMolItem::atomSel, DrawMolecule::component, MoleculeList::mol_from_id, moleculeList, NULL, num_molreps, and AtomSel::selected.

Referenced by print_arep_summary.

int VMDApp::molrep_reset_scaleminmax int    molid,
int    repid
 

Get/set data range of color scale.

Definition at line 2539 of file VMDApp.C.

References DrawMolItem::atomColor, DrawMolItem::COL_REGEN, commandQueue, DrawMolecule::component, DrawMolItem::force_recalc, MoleculeList::mol_from_id, moleculeList, num_molreps, AtomColor::rescale_colorscale_minmax, and CommandQueue::runcommand.

Referenced by reset_scaleminmax, text_cmd_mol, and GraphicsFltkMenu::use_colorscale_auto.

int VMDApp::molrep_set_clipcenter int    molid,
int    repid,
int    clipid,
const float *    center
 

set clip plane properties.

Definition at line 2470 of file VMDApp.C.

References DrawMolecule::component, MoleculeList::mol_from_id, moleculeList, and Displayable::set_clip_center.

Referenced by text_cmd_mol.

int VMDApp::molrep_set_clipcolor int    molid,
int    repid,
int    clipid,
const float *    color
 

Definition at line 2486 of file VMDApp.C.

References DrawMolecule::component, MoleculeList::mol_from_id, moleculeList, and Displayable::set_clip_color.

Referenced by text_cmd_mol.

int VMDApp::molrep_set_clipnormal int    molid,
int    repid,
int    clipid,
const float *    normal
 

Definition at line 2478 of file VMDApp.C.

References DrawMolecule::component, MoleculeList::mol_from_id, moleculeList, and Displayable::set_clip_normal.

Referenced by text_cmd_mol.

int VMDApp::molrep_set_clipstatus int    molid,
int    repid,
int    clipid,
int    onoff
 

Definition at line 2494 of file VMDApp.C.

References DrawMolecule::component, MoleculeList::mol_from_id, moleculeList, and Displayable::set_clip_status.

Referenced by text_cmd_mol.

int VMDApp::molrep_set_color int    molid,
int    repid,
const char *    color
 

Definition at line 2067 of file VMDApp.C.

References MoleculeList::change_repcolor, CmdMolChangeRepItem::COLOR, commandQueue, MoleculeList::mol_index_from_id, moleculeList, and CommandQueue::runcommand.

Referenced by modrep, and text_cmd_mol.

int VMDApp::molrep_set_colorupdate int    molid,
int    repid,
int    onoff
 

Turn on/off automatic color update for the specified rep.

Definition at line 2188 of file VMDApp.C.

References DrawMolItem::atomColor, DrawMolItem::COL_REGEN, commandQueue, DrawMolecule::component, AtomColor::do_update, DrawMolItem::force_recalc, MoleculeList::mol_from_id, moleculeList, NULL, num_molreps, and CommandQueue::runcommand.

Referenced by set_colorupdate, GraphicsFltkMenu::set_colorupdate, and text_cmd_mol.

int VMDApp::molrep_set_drawframes int    molid,
int    repid,
const char *    framesel
 

Set drawing of selected frames for a given rep. Syntax is "now" or a whitespace-separated list of terms of the form n, beg:end, or beg:stride:end.

Definition at line 2548 of file VMDApp.C.

References commandQueue, DrawMolecule::component, MoleculeList::mol_from_id, moleculeList, num_molreps, CommandQueue::runcommand, and DrawMolItem::set_drawframes.

Referenced by text_cmd_mol.

int VMDApp::molrep_set_material int    molid,
int    repid,
const char *    material
 

Definition at line 2105 of file VMDApp.C.

References MoleculeList::change_repmat, commandQueue, CmdMolChangeRepItem::MAT, MoleculeList::mol_index_from_id, moleculeList, and CommandQueue::runcommand.

Referenced by modrep, and text_cmd_mol.

int VMDApp::molrep_set_pbc int    molid,
int    repid,
int    pbc
 

Set periodic boundary condition display for this rep.

Definition at line 2223 of file VMDApp.C.

References commandQueue, DrawMolecule::component, MoleculeList::mol_from_id, moleculeList, num_molreps, CommandQueue::runcommand, and DrawMolItem::set_pbc.

Referenced by GraphicsFltkMenu::set_pbc, and text_cmd_mol.

int VMDApp::molrep_set_pbc_images int    molid,
int    repid,
int    n
 

Set the number of images to display; must be 1 or higher. Return success.

Definition at line 2236 of file VMDApp.C.

References commandQueue, DrawMolecule::component, MoleculeList::mol_from_id, moleculeList, num_molreps, CommandQueue::runcommand, and DrawMolItem::set_pbc_images.

Referenced by GraphicsFltkMenu::set_pbc, and text_cmd_mol.

int VMDApp::molrep_set_scaleminmax int    molid,
int    repid,
float    min,
float    max
 

Get/set data range of color scale.

Definition at line 2529 of file VMDApp.C.

References DrawMolItem::atomColor, DrawMolItem::COL_REGEN, commandQueue, DrawMolecule::component, DrawMolItem::force_recalc, MoleculeList::mol_from_id, moleculeList, num_molreps, CommandQueue::runcommand, and AtomColor::set_colorscale_minmax.

Referenced by modrep, set_scaleminmax, text_cmd_mol, and GraphicsFltkMenu::use_colorscale_minmax.

int VMDApp::molrep_set_selection int    molid,
int    repid,
const char *    selection
 

Definition at line 2082 of file VMDApp.C.

References MoleculeList::change_repsel, commandQueue, MoleculeList::mol_index_from_id, moleculeList, CommandQueue::runcommand, and CmdMolChangeRepItem::SEL.

Referenced by modrep, and text_cmd_mol.

int VMDApp::molrep_set_selupdate int    molid,
int    repid,
int    onoff
 

Turn on/off selection auto-update for the specified rep. When on, the representation will recalculate its selection each time there is change in the coordinate frame of the molecule.

Definition at line 2178 of file VMDApp.C.

References DrawMolItem::atomSel, commandQueue, DrawMolecule::component, AtomSel::do_update, MoleculeList::mol_from_id, moleculeList, NULL, num_molreps, and CommandQueue::runcommand.

Referenced by set_autoupdate, GraphicsFltkMenu::set_autoupdate, and text_cmd_mol.

int VMDApp::molrep_set_smoothing int    molid,
int    repid,
int    n
 

Set smoothing for reps. Coordinates used for calculating graphics will be smoothed with a boxcar average 2*n+1 in size centered on the current frame.

Definition at line 2206 of file VMDApp.C.

References commandQueue, DrawMolecule::component, DrawMolItem::force_recalc, DrawMolItem::get_smoothing, MoleculeList::mol_from_id, DrawMolItem::MOL_REGEN, moleculeList, num_molreps, CommandQueue::runcommand, and DrawMolItem::set_smoothing.

Referenced by set_smoothing, and text_cmd_mol.

int VMDApp::molrep_set_style int    molid,
int    repid,
const char *    style
 

Definition at line 2052 of file VMDApp.C.

References MoleculeList::change_repmethod, commandQueue, MoleculeList::mol_index_from_id, moleculeList, CmdMolChangeRepItem::REP, and CommandQueue::runcommand.

Referenced by modrep, and text_cmd_mol.

int VMDApp::molrep_show int    molid,
int    repid,
int    onff
 

Show/hide individual rep; this is done in the graphics menu by double- clicking on the rep.

Definition at line 2566 of file VMDApp.C.

References commandQueue, MoleculeList::mol_from_id, moleculeList, num_molreps, CommandQueue::runcommand, and DrawMolecule::show_rep.

Referenced by myBrowser::handle, set_visible, and text_cmd_mol.

int VMDApp::mouse_set_mode int    mode,
int    setting
 

Change the mouse mode.

Definition at line 3201 of file VMDApp.C.

References PickModeList::ADDBOND, Mouse::ADDBOND, PickModeList::CENTER, Mouse::CENTER, commandQueue, PickModeList::FORCEATOM, Mouse::FORCEATOM, PickModeList::FORCEFRAG, Mouse::FORCEFRAG, PickModeList::FORCERES, Mouse::FORCERES, PickModeList::LABELANGLE, Mouse::LABELANGLE, PickModeList::LABELATOM, Mouse::LABELATOM, PickModeList::LABELBOND, Mouse::LABELBOND, PickModeList::LABELDIHEDRAL, Mouse::LABELDIHEDRAL, Mouse::move_mode, PickModeList::MOVEATOM, Mouse::MOVEATOM, PickModeList::MOVEFRAG, Mouse::MOVEFRAG, Mouse::MoveMode, PickModeList::MOVEMOL, Mouse::MOVEMOL, PickModeList::MOVEREP, Mouse::MOVEREP, PickModeList::MOVERES, Mouse::MOVERES, PickModeList::PICK, Mouse::PICK, pickModeList, PickModeList::QUERY, Mouse::QUERY, CommandQueue::runcommand, and PickModeList::set_pick_mode.

Referenced by mouse_cb, mousemode, move_light_cb, and text_cmd_mouse.

int VMDApp::next_molid   [inline]
 

Get current molid and increment counter by 1.

Definition at line 997 of file VMDApp.h.

int VMDApp::num_clipplanes  
 

Number of clipping planes supported per rep. clipid in the next few methods should be in the range [0,max).

Definition at line 2453 of file VMDApp.C.

References VMD_MAX_CLIP_PLANE.

Referenced by text_cmd_mol.

int VMDApp::num_color_categories  
 

Number of color categories.

Definition at line 1113 of file VMDApp.C.

References Scene::num_categories, and scene.

Referenced by categories, and tcl_colorinfo_categories.

int VMDApp::num_color_category_items const char *    category
 

Number of color items in the given category.

Definition at line 1137 of file VMDApp.C.

References Scene::category_index, Scene::num_category_items, and scene.

Referenced by get_colormap, and tcl_colorinfo_category.

int VMDApp::num_colors  
 

Number of available colors.

Definition at line 1147 of file VMDApp.C.

References MAXCOLORS.

Referenced by tcl_colorinfo_max.

int VMDApp::num_colorscale_methods  
 

info about color scale methods.

Definition at line 1227 of file VMDApp.C.

References Scene::num_colorscale_methods, and scene.

Referenced by scale_methods, and tcl_colorinfo_scale.

int VMDApp::num_menus  
 

Number of menus we know about.

Definition at line 453 of file VMDApp.C.

References NameList< VMDMenu * >::num.

Referenced by text_cmd_menu.

int VMDApp::num_molecules  
 

Number of molecules currently loaded.

Definition at line 1347 of file VMDApp.C.

References moleculeList, and MoleculeList::num.

Referenced by fill_fltk_molchooser, IdList::find, mol_listall, molecule_delete_all, molecule_id, SaveTrajectoryFltkMenu::selectmol, and ToolFltkMenu::update_toolrep_choosers.

int VMDApp::num_molreps int    molid
 

number of representations for the given molecule.

Definition at line 2040 of file VMDApp.C.

References DrawMolecule::components, MoleculeList::mol_from_id, and moleculeList.

Referenced by cmd_mol_list, delrep, get_color, get_material, get_scaleminmax, get_selection, get_style, modrep, SaveTrajectoryFltkMenu::molchooser_activate_selection, molrep_get_color, molrep_get_colorupdate, molrep_get_drawframes, molrep_get_material, molrep_get_pbc, molrep_get_pbc_images, molrep_get_scaleminmax, molrep_get_selection, molrep_get_selupdate, molrep_get_smoothing, molrep_get_style, molrep_is_shown, molrep_num, molrep_numselected, molrep_reset_scaleminmax, molrep_set_colorupdate, molrep_set_drawframes, molrep_set_pbc, molrep_set_pbc_images, molrep_set_scaleminmax, molrep_set_selupdate, molrep_set_smoothing, molrep_show, print_arep_summary, reset_scaleminmax, set_scaleminmax, text_cmd_mol, and ToolFltkMenu::update_replist.

int VMDApp::num_regular_colors  
 

Number of _regular_ colors, i.e., the ones that have actual names.

Definition at line 1150 of file VMDApp.C.

References REGCLRS.

Referenced by get_colors, tcl_colorinfo_colors, and tcl_colorinfo_num.

void VMDApp::par_barrier  
 

perform a barrier synchronization across all nodes.

Definition at line 3337 of file VMDApp.C.

References vmd_mpi_barrier.

Referenced by text_cmd_parallel.

const char* VMDApp::par_name   [inline]
 

query current node name.

Definition at line 945 of file VMDApp.h.

References nodename.

Referenced by text_cmd_parallel, and vmdinfo_tcl.

int VMDApp::par_rank   [inline]
 

query current node ID.

Definition at line 948 of file VMDApp.h.

References noderank.

Referenced by text_cmd_parallel, and vmdinfo_tcl.

int VMDApp::par_size   [inline]
 

query total number of nodes.

Definition at line 951 of file VMDApp.h.

References nodecount.

Referenced by text_cmd_parallel, and vmdinfo_tcl.

int VMDApp::plugin_dlopen const char *    filename
 

Try to dlopen the specified shared library and access its plugin API. Return the number of plugins found in the given library, or -1 on error.

Definition at line 1081 of file VMDApp.C.

References PluginMgr::load_sharedlibrary_plugins.

Referenced by text_cmd_plugin.

void VMDApp::plugin_update  
 

Tell VMD to update its lists of plugins based on all the shared libraries it's loaded. Methods listed below will not be updated after a call to plugin_dlopen until this method is called.

Definition at line 1090 of file VMDApp.C.

References commandQueue, and CommandQueue::runcommand.

Referenced by text_cmd_plugin, and VMDinit.

int VMDApp::remove_menu const char *   
 

remove menu. Return success.

Definition at line 464 of file VMDApp.C.

References NameList::add_name, NameList< VMDMenu * >::data, VMDMenu::get_name, NameList< VMDMenu * >::num, and NameList< VMDMenu * >::typecode.

Referenced by text_cmd_menu.

int VMDApp::save_state  
 

save VMD state to a Tcl script. A filename will be requested from the user.

Definition at line 1333 of file VMDApp.C.

References UIText::save_state, uiText, and vmd_choose_file.

Referenced by savestate_cb.

void VMDApp::scene_resetview  
 

recenter the scene on the top molecule. If there are no molecules, just restores rotation to default value.

Definition at line 963 of file VMDApp.C.

References MoleculeList::center_all_molecules, MoleculeList::center_from_top_molecule_reps, commandQueue, moleculeList, Displayable::reset_transformation, Scene::root, CommandQueue::runcommand, and scene.

Referenced by Win32Joystick::check_event, Spaceball::check_event, Mobile::check_event, MolBrowser::handle, resetview, resetview_cb, scene_resetview_newmoldata, and text_cmd_display.

void VMDApp::scene_resetview_newmoldata  
 

recenter the scene on the top molecule or on last settings if no-disrupt mode is enabled, unless there's only one molecule.

Definition at line 940 of file VMDApp.C.

References MoleculeList::center_top_molecule, moleculeList, MoleculeList::num, ResetViewPending, and scene_resetview.

Referenced by DrawMolecule::append_frame, molecule_add_volumetric, molecule_load, and VMDupdate.

int VMDApp::scene_rock char    axis,
float    step,
int    nsteps = 0
 

Rock the scene by the given amount per redraw about the given axis. If nsteps is positive, rock for the specified number of steps, then reverse direction.

Definition at line 970 of file VMDApp.C.

References commandQueue, CommandQueue::runcommand, and DisplayRocker::start_rocking.

Referenced by text_cmd_rock.

int VMDApp::scene_rockoff  
 

Stop rocking the scene.

Definition at line 976 of file VMDApp.C.

References commandQueue, CommandQueue::runcommand, and DisplayRocker::stop_rocking.

Referenced by text_cmd_rock.

int VMDApp::scene_rotate_by const float *   
 

Rotate the scene by the specified matrix. The translation part will be ignored.

Definition at line 906 of file VMDApp.C.

References Displayable::add_rot, CmdRotMat::BY, commandQueue, mat, Scene::root, CommandQueue::runcommand, and scene.

int VMDApp::scene_rotate_by float    angle,
char    axis,
float    incr = 0
 

rotate the scene by or to the given angle, measured in degrees, about the given axis, either 'x', 'y', or 'z'. For rotate_by, If incr is zero, the rotation will be done in one redraw; otherwise the rotation will be performed in steps of incr.

Definition at line 885 of file VMDApp.C.

References Displayable::add_rot, CmdRotate::BY, commandQueue, Scene::root, CommandQueue::runcommand, scene, DisplayRocker::start_rocking, and DisplayRocker::stop_rocking.

Referenced by Win32Joystick::check_event, Spaceball::check_event, Mouse::check_event, Mobile::check_event, Tool::dograb, rotate, text_cmd_rotate, and text_cmd_rotmat.

int VMDApp::scene_rotate_to const float *   
 

Definition at line 912 of file VMDApp.C.

References commandQueue, mat, Scene::root, CommandQueue::runcommand, scene, Displayable::set_rot, and CmdRotMat::TO.

int VMDApp::scene_rotate_to float    angle,
char    axis
 

Definition at line 899 of file VMDApp.C.

References commandQueue, Scene::root, CommandQueue::runcommand, scene, Displayable::set_rot, DisplayRocker::stop_rocking, and CmdRotate::TO.

Referenced by text_cmd_rotate, and text_cmd_rotmat.

int VMDApp::scene_scale_by float    s
 

Scale by/to the given positive scale factor.

Definition at line 928 of file VMDApp.C.

References CmdScale::BY, commandQueue, Displayable::mult_scale, Scene::root, CommandQueue::runcommand, and scene.

Referenced by Win32Joystick::check_event, Spaceball::check_event, Mobile::check_event, scale, and text_cmd_scale.

int VMDApp::scene_scale_to float    s
 

Definition at line 934 of file VMDApp.C.

References commandQueue, Scene::root, CommandQueue::runcommand, scene, Displayable::set_scale, and CmdScale::TO.

Referenced by text_cmd_scale.

int VMDApp::scene_stoprotation  
 

Stop rocking AND persistent rotations induced by input devices (like the Mouse).

Definition at line 981 of file VMDApp.C.

References DisplayRocker::stop_rocking, and Mouse::stop_rotation.

Referenced by resetview_cb, stoprotation_cb, text_cmd_mouse, and text_cmd_rotate.

int VMDApp::scene_translate_by float    x,
float    y,
float    z
 

Translate everything that isn't fixed by/to the given amount.

Definition at line 918 of file VMDApp.C.

References Displayable::add_glob_trans, CmdTranslate::BY, commandQueue, Scene::root, CommandQueue::runcommand, and scene.

Referenced by Win32Joystick::check_event, Spaceball::check_event, Mobile::check_event, Tool::dograb, text_cmd_translate, and translate.

int VMDApp::scene_translate_to float    x,
float    y,
float    z
 

Definition at line 923 of file VMDApp.C.

References commandQueue, Scene::root, CommandQueue::runcommand, scene, Displayable::set_glob_trans, and CmdTranslate::TO.

Referenced by text_cmd_translate.

int VMDApp::set_colorscale_colors int    whichScale,
const float    min[3],
const float    mid[3],
const float    max[3]
 

Set the color scale colors from the given arrays.

Definition at line 1251 of file VMDApp.C.

References Scene::colorscale_method_name, commandQueue, CommandQueue::runcommand, scene, and Scene::set_colorscale_colors.

Referenced by text_cmd_color.

void VMDApp::set_eofexit int    onoff [inline]
 

Definition at line 1112 of file VMDApp.h.

Referenced by VMDreadStartup.

void VMDApp::set_mouse_callbacks int    on
 

Definition at line 2445 of file VMDApp.C.

References UIObject::set_callbacks.

Referenced by text_cmd_mouse.

void VMDApp::set_mouse_rocking int    on
 

Definition at line 2449 of file VMDApp.C.

References Mouse::set_rocking.

Referenced by text_cmd_mouse.

void VMDApp::set_text const char *    str [inline, static]
 

text message access methods.

Definition at line 1094 of file VMDApp.h.

void VMDApp::show_stride_message  
 

show Stride message, if necessary.

Definition at line 747 of file VMDApp.C.

Referenced by DrawMolecule::need_secondary_structure.

void VMDApp::spaceball_get_tracker_status float &    tx,
float &    ty,
float &    tz,
float &    rx,
float &    ry,
float &    rz,
int &    buttons
 

return the current spaceball event data, used by the UIVR SpaceballTracker interface.

Definition at line 3318 of file VMDApp.C.

References Spaceball::get_tracker_status, and NULL.

Referenced by SpaceballTracker::update, and SpaceballButtons::update.

int VMDApp::spaceball_set_mode int    mode
 

Change the spaceball mode.

Definition at line 3292 of file VMDApp.C.

References commandQueue, Spaceball::move_mode, Spaceball::MoveMode, and CommandQueue::runcommand.

Referenced by text_cmd_spaceball.

int VMDApp::spaceball_set_null_region int    nr
 

Change the spaceball null region.

Definition at line 3309 of file VMDApp.C.

References Spaceball::set_null_region.

Referenced by text_cmd_spaceball.

int VMDApp::spaceball_set_sensitivity float    s
 

Change the spaceball sensitivity.

Definition at line 3302 of file VMDApp.C.

References Spaceball::set_sensitivity.

Referenced by text_cmd_spaceball.

int VMDApp::stage_set_location const char *   
 

Definition at line 2842 of file VMDApp.C.

References commandQueue, Stage::loc_description, Stage::location, Stage::locations, CommandQueue::runcommand, stage, and strupcmp.

Referenced by stage_cb, and text_cmd_stage.

int VMDApp::stage_set_numpanels int   
 

Definition at line 2854 of file VMDApp.C.

References commandQueue, num, Stage::panels, CommandQueue::runcommand, and stage.

Referenced by text_cmd_stage.

int VMDApp::stage_set_size float   
 

Definition at line 2860 of file VMDApp.C.

References commandQueue, CommandQueue::runcommand, Stage::size, and stage.

Referenced by text_cmd_stage.

int VMDApp::textinterp_change const char *    interpname
 

change to a new text interpreter mode. Currently "tcl" and "python" are supported.

Definition at line 3330 of file VMDApp.C.

References UIText::change_interp, and uiText.

Referenced by PythonTextInterp::doEvent, text_cmd_gopython, and VMDreadStartup.

int VMDApp::tool_change_type int    toolnum,
const char *    type
 

Definition at line 3082 of file VMDApp.C.

References UIVR::change_type, commandQueue, CommandQueue::runcommand, and uivr.

Referenced by ToolFltkMenu::select_tool_type, and text_cmd_tool.

int VMDApp::tool_create const char *    type,
int    argc,
const char **    argv
 

Definition at line 3075 of file VMDApp.C.

References UIVR::add_tool_with_USL, commandQueue, CommandQueue::runcommand, and uivr.

Referenced by ToolFltkMenu::create_tool, and text_cmd_tool.

int VMDApp::tool_delete int    toolnum
 

Definition at line 3089 of file VMDApp.C.

References commandQueue, UIVR::remove_tool, CommandQueue::runcommand, and uivr.

Referenced by ToolFltkMenu::delete_tool.

int VMDApp::tool_set_force_scale int    toolnum,
float    newval
 

Definition at line 3107 of file VMDApp.C.

References commandQueue, CommandQueue::runcommand, UIVR::set_force_scale, and uivr.

Referenced by ToolFltkMenu::set_forcescale, and text_cmd_tool.

int VMDApp::tool_set_position_scale int    toolnum,
float    newval
 

Definition at line 3098 of file VMDApp.C.

References commandQueue, CommandQueue::runcommand, UIVR::set_position_scale, and uivr.

Referenced by ToolFltkMenu::set_positionscale, and text_cmd_tool.

int VMDApp::tool_set_spring_scale int    toolnum,
float    newval
 

Definition at line 3116 of file VMDApp.C.

References commandQueue, CommandQueue::runcommand, UIVR::set_spring_scale, and uivr.

Referenced by ToolFltkMenu::set_springscale, and text_cmd_tool.

char * VMDApp::vmd_choose_file const char *    title,
const char *    extension,
const char *    extension_label,
int    do_save
 

Show a file dialog. Use the first available of: Tk, Fltk, stdin Returns a new'd filename, or NULL.

Definition at line 766 of file VMDApp.C.

References UIText::get_tcl_interp, JString::length, NULL, stringdup, strupcmp, and uiText.

Referenced by SaveTrajectoryFltkMenu::do_save, loadstate_cb, logfile_cb, and save_state.

void VMDApp::VMDexit const char *    exitmsg,
int    exitcode,
int    pauseseconds
 

Print the given error message and pause for the given number of seconds before setting a flag that willl make VMDupdate return FALSE.

Definition at line 627 of file VMDApp.C.

References exitFlag, UIText::get_tcl_interp, noderank, NULL, uiText, vmd_mpi_barrier, vmd_msleep, and vmd_sleep.

Referenced by TclTextInterp::doEvent, myglwindow::hide, FreeVRScene::prepare, CaveScene::prepare, py_vmdexit, quit_cb, text_cmd_quit, and VMDinit.

int VMDApp::VMDinit int   ,
char **   ,
const char *   ,
int *    dispLoc,
int *    dispSize
 

initialize the global variables and objects for the general library. Must be passed command-line arguments to program. Creates graphics context and all associated objects, and then starts the UI, then adds any commands that should be done at start. When done, flushes command queue and then returns, when the program is ready to start main event loop. Return TRUE on successful initialization, FALSE if anything failed.

Definition at line 211 of file VMDApp.C.

References activate_menus, PickList::add_pickable, anim, atomSelParser, atomSelParser_init, axes, commandQueue, cuda, display, exitFlag, fps, geometryList, DisplayDevice::get_num_processes, imdMgr, DisplayDevice::init, PluginMgr::load_static_plugins, materialList, menu_show, moleculeList, nodecount, nodename, noderank, NULL, CUDAAccel::num_devices, Displayable::off, UIObject::On, pickList, pickModeList, plugin_update, CUDAAccel::print_cuda_devices, DisplayDevice::queue_events, UIText::read_init, DisplayDevice::renderer_process, repserialnum, DisplayDevice::resize_window, Scene::root, scene, set_cave_pointers, set_freevr_pointers, stage, DisplayDevice::supports_gui, texserialnum, uiText, vmd_cl_print_platform_info, VMD_IGNORE_EVENTS, vmd_mpi_nodescan, vmd_set_cave_is_initialized, vmdcollab, VMDexit, and VMDupdate.

Referenced by initvmd, and main.

int VMDApp::VMDupdate int   
 

redraw the screen and update all things that need updatin'. Return TRUE until exit has been requested by the user.

Definition at line 535 of file VMDApp.C.

References background_processing, background_processing_clear, CommandQueue::check_events, commandQueue, display, Scene::draw, Scene::draw_finished, CommandQueue::execute_all, Molecule::get_new_frames, MoleculeList::molecule, moleculeList, DisplayDevice::needRedraw, NULL, MoleculeList::num, Scene::prepare, scene, scene_resetview_newmoldata, DisplayDevice::supports_gui, UpdateDisplay, and vmd_msleep.

Referenced by display_update, display_update_ui, myglwindow::draw, main, py_vmdupdate, vmd_input_hook, and VMDinit.


Member Data Documentation

Animation* VMDApp::anim
 

generates delay-based frame change events.

Definition at line 182 of file VMDApp.h.

Referenced by animation_set_dir, animation_set_frame, animation_set_speed, animation_set_stride, animation_set_style, skip, speed, style, text_cmd_animate, VMDApp, VMDinit, and ~VMDApp.

int VMDApp::argc_m
 

used if we want to process unknown args elsewhere.

Definition at line 175 of file VMDApp.h.

Referenced by PythonTextInterp::PythonTextInterp, TclTextInterp::TclTextInterp, and VMDApp.

const char** VMDApp::argv_m
 

needed by Tcl/Python initialization code.

Definition at line 176 of file VMDApp.h.

Referenced by PythonTextInterp::PythonTextInterp, TclTextInterp::TclTextInterp, and VMDApp.

SymbolTable* VMDApp::atomSelParser
 

symbol table and atom selection parser.

Definition at line 195 of file VMDApp.h.

Referenced by access_tcl_atomsel, MoleculeList::add_rep, atomsel_get, atomsel_new, atomsel_set, atomselect, MoleculeList::change_repsel, create, delmacro, SaveTrajectoryFltkMenu::do_save, get, GraphicsFltkMenu::GraphicsFltkMenu, macro, make_tcl_atomsel, parseAtomselMacros, sel_from_py, set, MoleculeList::set_default_selection, MoleculeList::set_selection, tcl_get_weights, vmd_measure_cluster, vmd_measure_clustsize, VMDApp, VMDinit, and ~VMDApp.

Axes* VMDApp::axes
 

axes object used in the scene.

Definition at line 190 of file VMDApp.h.

Referenced by axes_set_location, get_location, initaxes, MainFltkMenu::MainFltkMenu, text_cmd_axes, VMDApp, VMDinit, and ~VMDApp.

CommandQueue* VMDApp::commandQueue
 

the command processor.

Definition at line 192 of file VMDApp.h.

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

CUDAAccel* VMDApp::cuda
 

CUDA acceleration system handle.

Definition at line 185 of file VMDApp.h.

Referenced by DrawMolecule::cuda_devpool, measure_rdf, text_cmd_vmdbench, VMDApp, VMDinit, and ~VMDApp.

DisplayDevice* VMDApp::display
 

display in which the images are rendered.

Definition at line 183 of file VMDApp.h.

Referenced by activate_menus, Spaceball::check_event, Mouse::check_event, depthcue_set_density, depthcue_set_end, depthcue_set_mode, depthcue_set_start, display_get_screen_distance, display_get_screen_height, display_get_size, display_projection_is_perspective, display_set_aa, display_set_ao, display_set_ao_ambient, display_set_ao_direct, display_set_cachemode, display_set_culling, display_set_depthcue, display_set_eyesep, display_set_farclip, display_set_focallen, display_set_nearclip, display_set_position, display_set_projection, display_set_rendermode, display_set_screen_distance, display_set_screen_height, display_set_shadows, display_set_size, display_set_stereo, display_set_stereo_swap, display_titlescreen, FileRenderList::FileRenderList, get, get_nearby_atom, MainFltkMenu::MainFltkMenu, Mouse::Mouse, Mouse::move_mode, PickList::pick_check, PickList::pick_end, PickList::pick_move, PickList::pick_start, FileRenderList::render, Mouse::reset, stereomodes, Tool::target, text_cmd_display, VMDApp, VMDinit, VMDupdate, and ~VMDApp.

int VMDApp::exitFlag
 

flag for whether to quit the display loop.

Definition at line 200 of file VMDApp.h.

Referenced by TclTextInterp::evalFile, text_cmd_quit, VMDApp, VMDexit, and VMDinit.

FPS* VMDApp::fps
 

FPS counter used in the scene.

Definition at line 191 of file VMDApp.h.

Referenced by display_set_fps, text_cmd_display, VMDApp, VMDinit, and ~VMDApp.

GeometryList* VMDApp::geometryList
 

list of all labels etc.

Definition at line 194 of file VMDApp.h.

Referenced by label_add, label_add, label_delete, label_delete, label_get_text_size, label_get_text_thickness, label_getvalues, label_hide, label_set_text_size, label_set_text_thickness, label_set_textformat, label_set_textoffset, label_show, label_show, listall, text_cmd_label, VMDApp, VMDinit, and ~VMDApp.

int VMDApp::highlighted_molid
 

Highlighted molecule id and rep. Set by GraphicsFltkMenu, used by PickModeMoveHighlightedRep.

Definition at line 208 of file VMDApp.h.

Referenced by DrawMolecule::highlighted_rep, GraphicsFltkMenu::update_molchooser, and VMDApp.

int VMDApp::highlighted_rep
 

Highlighted molecule id and rep. Set by GraphicsFltkMenu, used by PickModeMoveHighlightedRep.

Definition at line 208 of file VMDApp.h.

Referenced by DrawMolecule::highlighted_rep, GraphicsFltkMenu::update_rep, and VMDApp.

IMDMgr* VMDApp::imdMgr
 

IMD manager class.

Definition at line 181 of file VMDApp.h.

Referenced by copyunitcell, detach, imd_connect, imd_connected, imd_disconnect, imd_sendforces, imdconnect, imdconnected, keep, kill, pause, text_cmd_imd, transfer, VMDApp, VMDinit, and ~VMDApp.

MaterialList* VMDApp::materialList
 

list of materials.

Definition at line 188 of file VMDApp.h.

Referenced by MaterialFltkMenu::act_on_command, GraphicsFltkMenu::act_on_command, add, MoleculeList::add_rep, change, MoleculeList::change_repmat, graphics_material, GraphicsFltkMenu::init_materialchooser, listall, MoleculeList::material, material_add, material_change, material_delete, material_rename, material_restore_default, molecule_tcl, MoleculeList::MoleculeList, molrep_get_material, rename, MoleculeList::set_default_material, MoleculeList::set_material, settings, tcl_graphics, text_cmd_material, VMDApp, VMDinit, and ~VMDApp.

MoleculeList* VMDApp::moleculeList
 

list of all loaded molecules.

Definition at line 193 of file VMDApp.h.

Referenced by access_tcl_atomsel, GraphicsFltkMenu::act_on_command, GeometryFltkMenu::act_on_command, activate, GeometryList::add_geometry, VolMapCreateILS::add_map_to_molecule, Tool::assign_rep, atomsel_new, atomsel_set, atomselect, atomselect_move, atomselect_moveby, VolMapCreate::calculate_max_radius, VolMapCreate::calculate_minmax, center, cmd_gettimestep, cmd_rawtimestep, color_get_restype, color_set_restype, VolMapCreateCoulombPotentialMSM::compute_frame, VolMapCreateCoulombPotential::compute_frame, VolMapCreateDistance::compute_frame, VolMapCreateOccupancy::compute_frame, VolMapCreateInterp::compute_frame, VolMapCreateDensity::compute_frame, VolMapCreateMask::compute_frame, contacts, create, SaveTrajectoryFltkMenu::do_save, Tool::dograb, fix, get, get_accessions, get_center, get_databases, get_filenames, get_filetypes, get_molecule, get_nearby_atom, get_remarks, get_rotation, get_scale, get_trans, getbonds, Tool::getTargetScale, graphics_tcl, imd_connect, imdconnect, is_active, is_fixed, is_shown, label_add, make_tcl_atomsel, minmax, mol_from_id, SaveTrajectoryFltkMenu::molchooser_activate_selection, molecule_activate, molecule_add_volumetric, molecule_addrep, molecule_bondsrecalc, molecule_cancel_io, molecule_delete, molecule_delete_all, molecule_deleteframes, molecule_display, molecule_dupframe, molecule_fix, molecule_frame, molecule_get_color, molecule_get_material, molecule_get_selection, molecule_get_style, molecule_id, molecule_index_from_id, molecule_is_active, molecule_is_displayed, molecule_is_fixed, molecule_load, molecule_make_top, molecule_modrep, molecule_name, molecule_new, molecule_numatoms, molecule_numframes, molecule_orblocalize, molecule_reanalyze, molecule_rename, molecule_savetrajectory, molecule_set_color, molecule_set_dataset_flag, molecule_set_material, molecule_set_selection, molecule_set_style, molecule_ssrecalc, molecule_tcl, molecule_top, molecule_valid_id, molrep_delete, molrep_get_by_name, molrep_get_clipplane, molrep_get_color, molrep_get_colorupdate, molrep_get_drawframes, molrep_get_material, molrep_get_name, molrep_get_pbc, molrep_get_pbc_images, molrep_get_scaleminmax, molrep_get_selection, molrep_get_selupdate, molrep_get_smoothing, molrep_get_style, molrep_is_shown, molrep_numselected, molrep_reset_scaleminmax, molrep_set_clipcenter, molrep_set_clipcolor, molrep_set_clipnormal, molrep_set_clipstatus, molrep_set_color, molrep_set_colorupdate, molrep_set_drawframes, molrep_set_material, molrep_set_pbc, molrep_set_pbc_images, molrep_set_scaleminmax, molrep_set_selection, molrep_set_selupdate, molrep_set_smoothing, molrep_set_style, molrep_show, num_molecules, num_molreps, parse_timestep, PickList::pick_check, PickModeCenter::pick_molecule_end, print_atom_info, py_align, py_fit, py_move, py_moveby, py_rmsd, GraphicsFltkRepOrbital::regen_excitationlist, GraphicsFltkRepOrbital::regen_orbitallist, GraphicsFltkRepOrbital::regen_wavefunctypes, resetview, sasa, scene_resetview, scene_resetview_newmoldata, sel_from_py, set, set_center, set_frame, GraphicsFltkMenu::set_pbc, set_rotation, set_scale, set_trans, setbonds, show, Tool::target, tcl_get_weights, tcl_graphics, text_cmd_animate, text_cmd_imd, text_cmd_mol, Tool::tug, Tool::ungrab, MolBrowser::update, GraphicsFltkMenu::update_molchooser, GraphicsFltkMenu::update_pbc, GraphicsFltkMenu::update_rep, GraphicsFltkMenu::update_repbrowser, GraphicsFltkMenu::update_repindex, vmd_measure_angle, vmd_measure_avpos, vmd_measure_bond, vmd_measure_center, vmd_measure_cluster, vmd_measure_clustsize, vmd_measure_contacts, vmd_measure_dihed, vmd_measure_dipole, vmd_measure_energy, vmd_measure_fit, vmd_measure_gofr, vmd_measure_hbonds, vmd_measure_inertia, vmd_measure_minmax, vmd_measure_pbc2onc_transform, vmd_measure_pbc_neighbors, vmd_measure_rdf, vmd_measure_rgyr, vmd_measure_rmsd, vmd_measure_rmsf, vmd_measure_sasa, vmd_measure_surface, vmd_measure_symmetry, vmd_measure_trans_overlap, vmd_volmap_compare, vmd_volmap_ils, VMDApp, VMDinit, VMDupdate, GraphicsFltkMenu::volindex_update, VolMapCreateILS::write_map, and ~VMDApp.

int VMDApp::nodecount
 

MPI node count.

Definition at line 204 of file VMDApp.h.

Referenced by par_size, VMDApp, and VMDinit.

char VMDApp::nodename[512]
 

MPI node name.

Definition at line 202 of file VMDApp.h.

Referenced by par_name, VMDApp, and VMDinit.

int VMDApp::noderank
 

MPI node rank.

Definition at line 203 of file VMDApp.h.

Referenced by par_rank, VMDApp, VMDexit, and VMDinit.

PickList* VMDApp::pickList
 

handles all picking events.

Definition at line 186 of file VMDApp.h.

Referenced by DrawMolecule::add_rep, Tool::assign_rep, DrawMolecule::del_rep, DrawMolecule::DrawMolecule, get_nearby_atom, Tool::target, Tool::tool_location_update, VMDApp, VMDinit, DrawMolecule::~DrawMolecule, and ~VMDApp.

PickModeList* VMDApp::pickModeList
 

list of available picking modes.

Definition at line 187 of file VMDApp.h.

Referenced by mouse_set_mode, PickList::pick_end, PickList::pick_move, PickList::pick_start, PickList::PickList, VMDApp, VMDinit, and ~VMDApp.

int VMDApp::ResetViewPending
 

pending resetview needs attention.

Definition at line 201 of file VMDApp.h.

Referenced by scene_resetview_newmoldata, and VMDApp.

Scene* VMDApp::scene
 

list of all Displayable objects to draw.

Definition at line 184 of file VMDApp.h.

Referenced by color_add_item, color_category, color_category_item, color_changename, color_changevalue, color_default_value, color_get_from_name, color_index, color_mapping, color_name, color_set_restype, color_value, colorscale_info, colorscale_method_current, colorscale_method_index, colorscale_method_name, colorscale_setmethod, colorscale_setvalues, display_set_background_mode, display_titlescreen, ColorscaleImage::draw, get_colorscale_colors, GraphicsFltkMenu::GraphicsFltkMenu, light_highlight, light_move, light_on, light_rotate, molecule_load, molecule_new, molecule_rename, num_color_categories, num_color_category_items, num_colorscale_methods, FileRenderList::render, scene_resetview, scene_rotate_by, scene_rotate_to, scene_scale_by, scene_scale_to, scene_translate_by, scene_translate_to, set_colorscale_colors, text_cmd_display, text_cmd_light, text_cmd_point_light, VMDApp, VMDinit, VMDupdate, and ~VMDApp.

Stage* VMDApp::stage
 

stage object used in the scene.

Definition at line 189 of file VMDApp.h.

Referenced by MainFltkMenu::MainFltkMenu, stage_set_location, stage_set_numpanels, stage_set_size, text_cmd_stage, VMDApp, VMDinit, and ~VMDApp.

UIText* VMDApp::uiText
 

the text interface JRG: made public for save_state.

Definition at line 179 of file VMDApp.h.

Referenced by deactivate_uitext_stdin, M_VRJapp::latePreFrame, logfile_read, py_evaltcl, save_state, textinterp_change, vmd_choose_file, VMDApp, VMDexit, VMDinit, and ~VMDApp.

UIVR* VMDApp::uivr
 

VR tool interface.

Definition at line 180 of file VMDApp.h.

Referenced by activate_menus, ToolFltkMenu::choose_buttons, ToolFltkMenu::choose_feedback, ToolFltkMenu::choose_tracker, ToolFltkMenu::reset_device_menus, ToolFltkMenu::reset_tool_list, ToolFltkMenu::select_tool, tool_change_type, tool_create, tool_delete, tool_set_force_scale, tool_set_position_scale, tool_set_spring_scale, ToolFltkMenu::ToolFltkMenu, ToolFltkMenu::update_toolrep_choosers, VMDApp, and ~VMDApp.

int VMDApp::UpdateDisplay
 

flag for whether to update the scene.

Definition at line 199 of file VMDApp.h.

Referenced by display_update, display_update_on, display_update_status, VMDApp, and VMDupdate.

NameList<char *> VMDApp::userKeyDesc
 

describe what the hotkey does.

Definition at line 198 of file VMDApp.h.

Referenced by text_cmd_user, and ~VMDApp.

NameList<char *> VMDApp::userKeys
 

lookup table for Tcl scripts.

Definition at line 197 of file VMDApp.h.

Referenced by text_cmd_user, TclTextInterp::userkey_cb, and ~VMDApp.

VMDCollab* VMDApp::vmdcollab
 

handles collaborative VMD interaction.

Definition at line 196 of file VMDApp.h.

Referenced by text_cmd_collab, VMDApp, VMDinit, and ~VMDApp.


The documentation for this class was generated from the following files:
Generated on Sat May 26 01:49:33 2012 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002