#include <stdlib.h>#include <stdio.h>#include "vmd.h"#include "VMDApp.h"#include "utilities.h"#include "config.h"#include "VMDThreads.h"#include "Inform.h"#include "CommandQueue.h"#include "TextEvent.h"#include "MaterialList.h"#include "SymbolTable.h"#include <FL/Fl.H>#include "cave_ogl.h"#include "CaveRoutines.h"#include "freevr.h"#include "FreeVRRoutines.h"#include <tcl.h>#include <signal.h>Go to the source code of this file.
Defines | |
| #define | DISPLAY_USES_WINDOW(d) ((d) == DISPLAY_WIN || (d) == DISPLAY_WINOGL) |
| #define | DISPLAY_USES_CAVE(d) ((d) == DISPLAY_CAVE || (d) == DISPLAY_CAVEFORMS) |
| #define | DISPLAY_USES_FREEVR(d) ((d) == DISPLAY_FREEVR || (d) == DISPLAY_FREEVRFORMS) |
| #define | DISPLAY_USES_GUI(d) (DISPLAY_USES_WINDOW(d) || (d) == DISPLAY_CAVEFORMS || (d) == DISPLAY_FREEVRFORMS) |
Typedefs | |
| typedef void(* | sighandler_t )(int) |
Enumerations | |
| enum | DisplayTypes { DISPLAY_WIN, DISPLAY_WINOGL, DISPLAY_CAVE, DISPLAY_TEXT, DISPLAY_CAVEFORMS, DISPLAY_FREEVR, DISPLAY_FREEVRFORMS, NUM_DISPLAY_TYPES } |
| enum | TitleTypes { TITLE_OFF, TITLE_ON, NUM_TITLE_TYPES } |
Functions | |
| void | sighandler (int) |
| int | myAsyncProc (ClientData, Tcl_Interp *, int) |
| const char * | vmd_initialize_tcl (const char *argv0) |
| Application-level routine for initializing Tcl. This should be called before creating any instances of VMDApp. Returns pointer to argv0. More... | |
| void | vmd_finalize_tcl () |
| Call this after deleting last VMDApp instance, to ensure that all event handlers (like Tk) shut down cleanly. More... | |
| void * | vmd_resize_alloc (void *ptr, size_t oldsize, size_t newsize) |
| void | VMDupdateFltk () |
| void | VMDtitle () |
| void | VMDGetOptions (int, char **) |
| int | VMDinitialize (int *argc, char **argv) |
| const char * | VMDgetDisplayTypeName () |
| void | VMDgetDisplayFrame (int *loc, int *size) |
| void | VMDshutdown () |
| int | parseColorDefs (const char *path, VMDApp *app) |
| int | parseMaterialDefs (const char *path, VMDApp *app) |
| int | parseRestypes (const char *path, VMDApp *app) |
| int | parseAtomselMacros (const char *path, VMDApp *app) |
| void | VMDreadInit (VMDApp *app) |
| void | VMDreadStartup (VMDApp *app) |
Variables | |
| Tcl_AsyncHandler | tclhandler |
| void *(* | vmd_alloc )(size_t) |
| function pointer to shared memory allocator/deallocator. More... | |
| void(* | vmd_dealloc )(void *) |
| void *(* | vmd_realloc )(void *, size_t) |
| const char * | displayTypeNames [NUM_DISPLAY_TYPES] |
| const char * | titleTypeNames [NUM_TITLE_TYPES] |
| int | showTitle = INIT_DEFTITLE |
| int | which_display = INIT_DEFDISPLAY |
| float | displayHeight = INIT_DEFHEIGHT |
| float | displayDist = INIT_DEFDIST |
| int | displaySize [2] = { -1, -1 } |
| int | displayLoc [2] = { -1, -1 } |
| const char * | startupFileStr |
| const char * | beginCmdFile |
| int | cmdFileUsesPython |
| int | loadAsMolecules = 0 |
| int | startNewMolecule = 1 |
| ResizeArray< int > | startNewMoleculeFlags |
| ResizeArray< const char * > | initFilenames |
| ResizeArray< const char * > | initFiletypes |
| int | eofexit = 0 |
| int | just_print_help = 0 |
| ResizeArray< char * > | customArgv |
|
|
Definition at line 197 of file vmd.C. Referenced by VMDinitialize, and VMDshutdown. |
|
|
Definition at line 198 of file vmd.C. Referenced by VMDinitialize, and VMDshutdown. |
|
|
|
|
|
|
|
|
Definition at line 75 of file vmd.C. Referenced by myAsyncProc, and VMDinitialize. |
|
|
|
|
|
|
|
||||||||||||||||
|
Definition at line 78 of file vmd.C. References sighandler, and sighandler_t. Referenced by VMDinitialize. |
|
||||||||||||
|
Definition at line 756 of file vmd.C. References SymbolTable::add_custom_singleword, and VMDApp::atomSelParser. Referenced by VMDreadInit. |
|
||||||||||||
|
Definition at line 670 of file vmd.C. References VMDApp::color_add_item. Referenced by VMDreadInit. |
|
||||||||||||
|
Definition at line 704 of file vmd.C. References MAT_AMBIENT, MAT_DIFFUSE, MAT_OPACITY, MAT_SHININESS, MAT_SPECULAR, VMDApp::material_add, VMDApp::material_change, and NULL. Referenced by VMDreadInit. |
|
||||||||||||
|
Definition at line 734 of file vmd.C. References VMDApp::color_set_restype. Referenced by VMDreadInit. |
|
|
Definition at line 83 of file vmd.C. References tclhandler. Referenced by myAsyncProc, and VMDinitialize. |
|
|
Call this after deleting last VMDApp instance, to ensure that all event handlers (like Tk) shut down cleanly.
Definition at line 122 of file vmd.C. Referenced by VMDshutdown. |
|
|
Application-level routine for initializing Tcl. This should be called before creating any instances of VMDApp. Returns pointer to argv0.
Definition at line 89 of file vmd.C. References NULL. Referenced by VMDinitialize. |
|
||||||||||||||||
|
Definition at line 138 of file vmd.C. References NULL, vmd_alloc, vmd_dealloc, and vmd_realloc. |
|
||||||||||||
|
Definition at line 389 of file vmd.C. References displayLoc, and displaySize. |
|
|
Definition at line 385 of file vmd.C. References displayTypeNames, and which_display. Referenced by main. |
|
||||||||||||
|
Definition at line 429 of file vmd.C. References ResizeArray::append, beginCmdFile, cmdFileUsesPython, DISPLAY_CAVE, DISPLAY_CAVEFORMS, DISPLAY_FREEVR, DISPLAY_FREEVRFORMS, DISPLAY_TEXT, DISPLAY_WIN, DISPLAY_WINOGL, displayDist, displayHeight, displayLoc, displaySize, displayTypeNames, eofexit, just_print_help, loadAsMolecules, NULL, NUM_DISPLAY_TYPES, NUM_TITLE_TYPES, showTitle, startNewMolecule, startupFileStr, str_tokenize, strupcmp, TITLE_OFF, titleTypeNames, and which_display. Referenced by VMDinitialize. |
|
||||||||||||
|
|
Definition at line 780 of file vmd.C. References NULL, parseAtomselMacros, parseColorDefs, parseMaterialDefs, and parseRestypes. |
|
|
|
Definition at line 396 of file vmd.C. References DISPLAY_USES_CAVE, DISPLAY_USES_FREEVR, vmd_finalize_tcl, and which_display. Referenced by main. |
|
|
Definition at line 411 of file vmd.C. Referenced by VMDinitialize. |
|
|
Definition at line 161 of file vmd.C. Referenced by main. |
|
|
Definition at line 219 of file vmd.C. Referenced by VMDGetOptions, and VMDreadStartup. |
|
|
Definition at line 223 of file vmd.C. Referenced by VMDGetOptions. |
|
|
|
|
|
Definition at line 213 of file vmd.C. Referenced by VMDGetOptions, and VMDreadStartup. |
|
|
Definition at line 212 of file vmd.C. Referenced by VMDGetOptions, and VMDreadStartup. |
|
|
Definition at line 215 of file vmd.C. Referenced by VMDgetDisplayFrame, and VMDGetOptions. |
|
|
Definition at line 214 of file vmd.C. Referenced by VMDgetDisplayFrame, and VMDGetOptions. |
|
|
Initial value: {
"WIN", "OPENGL", "CAVE", "TEXT", "CAVEFORMS", "FREEVR", "FREEVRFORMS"
}Definition at line 193 of file vmd.C. Referenced by VMDgetDisplayTypeName, and VMDGetOptions. |
|
|
Definition at line 238 of file vmd.C. Referenced by VMDGetOptions, and VMDreadStartup. |
|
|
|
|
|
|
|
|
Definition at line 239 of file vmd.C. Referenced by VMDGetOptions, and VMDinitialize. |
|
|
Definition at line 231 of file vmd.C. Referenced by VMDGetOptions. |
|
|
Definition at line 210 of file vmd.C. Referenced by VMDGetOptions, and VMDreadStartup. |
|
|
Definition at line 232 of file vmd.C. Referenced by VMDGetOptions. |
|
|
|
|
|
Definition at line 218 of file vmd.C. Referenced by VMDGetOptions, and VMDreadStartup. |
|
|
Definition at line 71 of file vmd.C. Referenced by sighandler, and VMDinitialize. |
|
|
Initial value: {
"OFF", "ON"
}Definition at line 205 of file vmd.C. Referenced by VMDGetOptions. |
|
|
function pointer to shared memory allocator/deallocator.
Definition at line 132 of file vmd.C. Referenced by VMDinitialize. |
|
|
Definition at line 133 of file vmd.C. Referenced by VMDinitialize. |
|
|
Definition at line 134 of file vmd.C. Referenced by vmd_resize_alloc, and VMDinitialize. |
|
|
Definition at line 211 of file vmd.C. Referenced by VMDgetDisplayTypeName, VMDGetOptions, VMDinitialize, VMDreadStartup, and VMDshutdown. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002