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

TextInterp Class Reference

Base class for all text interpreters. More...

#include <TextInterp.h>

Inheritance diagram for TextInterp:

PlainTextInterp PythonTextInterp TclTextInterp List of all members.

Public Methods

virtual ~TextInterp ()
virtual void doInit ()
 Tell the interpreter to read its init file; presumably it knows what to do. More...

virtual void doEvent ()
 Let the interpreter have control for while. More...

virtual int doTkUpdate ()
 Update Tk, if possible, from within this interpreter return 1 if able to do the Tk update, 0 if unsuccessful. More...

virtual int evalString (const char *)
 Pass the given string to the interpreter. Return success. More...

virtual int evalFile (const char *)
 Process the given file. Return success. More...

virtual void setString (const char *, const char *)
 First argument: variable name. Second argument: string value. More...

virtual void display_update_cb ()
virtual void frame_cb (int molid, int frame)
virtual void help_cb (const char *topic)
virtual void initialize_structure_cb (int molid, int create_or_destroy)
virtual void molecule_changed_cb (int molid, int code)
virtual void logfile_cb (const char *cmd)
virtual void mousemode_cb (const char *mode, int submode)
virtual void mouse_pos_cb (float x, float y, int buttondown)
virtual void mobile_cb (float tx, float ty, float tz, float rx, float ry, float rz, int buttondown)
virtual void mobile_state_changed_cb ()
virtual void mobile_device_command_cb (const char *str)
virtual void spaceball_cb (float tx, float ty, float tz, float rx, float ry, float rz, int buttondown)
virtual void pick_atom_cb (int molid, int atomid, int shift_state, bool is_pick)
virtual void pick_atom_callback_cb (int molid, int atm, const char *client)
virtual void pick_selection_cb (int n, const int *atoms)
virtual void pick_graphics_cb (int molid, int tag, int btn, int shift_state)
virtual void pick_value_cb (float value)
virtual void python_cb (const char *cmd)
virtual void tcl_cb (const char *cmd)
virtual void timestep_cb (int molid, int frame)
virtual void trajectory_cb (int molid, const char *fname)
virtual void graph_label_cb (const char *type, const int *ids, int n)
virtual void userkey_cb (const char *canonical_key_desc)

Protected Methods

 TextInterp ()

Detailed Description

Base class for all text interpreters.

Definition at line 24 of file TextInterp.h.


Constructor & Destructor Documentation

TextInterp::TextInterp   [inline, protected]
 

Definition at line 26 of file TextInterp.h.

virtual TextInterp::~TextInterp   [inline, virtual]
 

Definition at line 29 of file TextInterp.h.


Member Function Documentation

virtual void TextInterp::display_update_cb   [inline, virtual]
 

Definition at line 57 of file TextInterp.h.

virtual void TextInterp::doEvent   [inline, virtual]
 

Let the interpreter have control for while.

Reimplemented in PythonTextInterp.

Definition at line 35 of file TextInterp.h.

Referenced by UIText::check_event.

virtual void TextInterp::doInit   [inline, virtual]
 

Tell the interpreter to read its init file; presumably it knows what to do.

Reimplemented in TclTextInterp.

Definition at line 32 of file TextInterp.h.

Referenced by UIText::read_init.

virtual int TextInterp::doTkUpdate   [inline, virtual]
 

Update Tk, if possible, from within this interpreter return 1 if able to do the Tk update, 0 if unsuccessful.

Reimplemented in PythonTextInterp.

Definition at line 39 of file TextInterp.h.

Referenced by UIText::check_event.

virtual int TextInterp::evalFile const char *    [inline, virtual]
 

Process the given file. Return success.

Reimplemented in PythonTextInterp.

Definition at line 45 of file TextInterp.h.

Referenced by UIText::read_from_file.

virtual int TextInterp::evalString const char *    [inline, virtual]
 

Pass the given string to the interpreter. Return success.

Reimplemented in PlainTextInterp.

Definition at line 42 of file TextInterp.h.

Referenced by UIText::save_state.

virtual void TextInterp::frame_cb int    molid,
int    frame
[inline, virtual]
 

Reimplemented in PythonTextInterp.

Definition at line 58 of file TextInterp.h.

Referenced by FrameEvent::do_callback.

virtual void TextInterp::graph_label_cb const char *    type,
const int *    ids,
int    n
[inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 80 of file TextInterp.h.

References n.

Referenced by GraphLabelEvent::do_callback.

virtual void TextInterp::help_cb const char *    topic [inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 59 of file TextInterp.h.

Referenced by HelpEvent::do_callback.

virtual void TextInterp::initialize_structure_cb int    molid,
int    create_or_destroy
[inline, virtual]
 

Reimplemented in PythonTextInterp.

Definition at line 60 of file TextInterp.h.

Referenced by InitializeStructureEvent::do_callback.

virtual void TextInterp::logfile_cb const char *    cmd [inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 62 of file TextInterp.h.

Referenced by UIText::act_on_command, LogfileEvent::do_callback, and UIText::~UIText.

virtual void TextInterp::mobile_cb float    tx,
float    ty,
float    tz,
float    rx,
float    ry,
float    rz,
int    buttondown
[inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 65 of file TextInterp.h.

Referenced by MobileEvent::do_callback.

virtual void TextInterp::mobile_device_command_cb const char *    str [inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 68 of file TextInterp.h.

Referenced by MobileDeviceCommandEvent::do_callback.

virtual void TextInterp::mobile_state_changed_cb   [inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 67 of file TextInterp.h.

Referenced by MobileStateChangedEvent::do_callback.

virtual void TextInterp::molecule_changed_cb int    molid,
int    code
[inline, virtual]
 

Reimplemented in PythonTextInterp.

Definition at line 61 of file TextInterp.h.

Referenced by MoleculeEvent::do_callback.

virtual void TextInterp::mouse_pos_cb float    x,
float    y,
int    buttondown
[inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 64 of file TextInterp.h.

Referenced by MousePositionEvent::do_callback.

virtual void TextInterp::mousemode_cb const char *    mode,
int    submode
[inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 63 of file TextInterp.h.

Referenced by MouseModeEvent::do_callback.

virtual void TextInterp::pick_atom_callback_cb int    molid,
int    atm,
const char *    client
[inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 72 of file TextInterp.h.

Referenced by PickAtomCallbackEvent::do_callback.

virtual void TextInterp::pick_atom_cb int    molid,
int    atomid,
int    shift_state,
bool    is_pick
[inline, virtual]
 

Reimplemented in PythonTextInterp.

Definition at line 71 of file TextInterp.h.

Referenced by PickAtomEvent::do_callback.

virtual void TextInterp::pick_graphics_cb int    molid,
int    tag,
int    btn,
int    shift_state
[inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 74 of file TextInterp.h.

Referenced by PickGraphicsEvent::do_callback.

virtual void TextInterp::pick_selection_cb int    n,
const int *    atoms
[inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 73 of file TextInterp.h.

References atoms, and n.

Referenced by PickSelectionEvent::do_callback.

virtual void TextInterp::pick_value_cb float    value [inline, virtual]
 

Reimplemented in PythonTextInterp.

Definition at line 75 of file TextInterp.h.

Referenced by PickValueEvent::do_callback.

virtual void TextInterp::python_cb const char *    cmd [inline, virtual]
 

Reimplemented in PythonTextInterp.

Definition at line 76 of file TextInterp.h.

Referenced by PythonEvalEvent::do_callback.

virtual void TextInterp::setString const char *   ,
const char *   
[inline, virtual]
 

First argument: variable name. Second argument: string value.

Reimplemented in TclTextInterp.

Definition at line 52 of file TextInterp.h.

virtual void TextInterp::spaceball_cb float    tx,
float    ty,
float    tz,
float    rx,
float    ry,
float    rz,
int    buttondown
[inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 69 of file TextInterp.h.

Referenced by SpaceballEvent::do_callback.

virtual void TextInterp::tcl_cb const char *    cmd [inline, virtual]
 

Reimplemented in TclTextInterp.

Definition at line 77 of file TextInterp.h.

Referenced by TclEvalEvent::do_callback.

virtual void TextInterp::timestep_cb int    molid,
int    frame
[inline, virtual]
 

Reimplemented in PythonTextInterp.

Definition at line 78 of file TextInterp.h.

Referenced by TimestepEvent::do_callback.

virtual void TextInterp::trajectory_cb int    molid,
const char *    fname
[inline, virtual]
 

Reimplemented in PythonTextInterp.

Definition at line 79 of file TextInterp.h.

Referenced by TrajectoryReadEvent::do_callback.

virtual void TextInterp::userkey_cb const char *    canonical_key_desc [inline, virtual]
 

Reimplemented in PythonTextInterp.

Definition at line 81 of file TextInterp.h.

Referenced by UserKeyEvent::do_callback.


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