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

PythonTextInterp.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr
00003  *cr            (C) Copyright 1995-2019 The Board of Trustees of the
00004  *cr                        University of Illinois
00005  *cr                         All Rights Reserved
00006  *cr
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  * RCS INFORMATION:
00011  *
00012  *      $RCSfile: PythonTextInterp.h,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.28 $       $Date: 2019/01/17 21:21:01 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  *  Python text interpreter
00019  ***************************************************************************/
00020 #ifndef PYTHON_TEXT_INTERP_H
00021 #define PYTHON_TEXT_INTERP_H
00022 
00023 #if defined(__APPLE__)
00024 // use the Apple-provided Python framework
00025 #include "Python/Python.h"
00026 #else
00027 #include "Python.h"
00028 #endif
00029 
00030 #include "TextInterp.h"
00031 
00032 class VMDApp;
00033 
00035 class PythonTextInterp : public TextInterp {
00036 private:
00037   VMDApp *app;
00038   int needPrompt;
00039   int have_tkinter;
00040   int in_tk;
00041 
00042 public:
00043   PythonTextInterp(VMDApp *);
00044   ~PythonTextInterp();
00045 
00046   virtual void doEvent();
00047   virtual int doTkUpdate();
00048   virtual int evalString(const char *);
00049   virtual int evalFile(const char *);
00050 
00051   //virtual void display_update_cb();
00052   virtual void frame_cb(int molid, int frame);
00053   //virtual void help_cb(const char *topic);
00054   virtual void initialize_structure_cb(int molid, int create_or_destroy);
00055   virtual void molecule_changed_cb(int molid, int code);
00056   //virtual void logfile_cb(const char *cmd);
00057   virtual void pick_atom_cb(int molid, int atomid, int shift_state, bool ispick);
00058   //virtual void pick_atom_callback_cb(int molid, int atm, const char *client);
00059   virtual void pick_value_cb(float value);
00060   virtual void python_cb(const char *cmd);
00061   //virtual void tcl_cb(const char *cmd) {}
00062   virtual void timestep_cb(int molid, int frame);
00063   virtual void trajectory_cb(int molid, const char *fname);
00064   virtual void userkey_cb(const char *canonical_key_desc);
00065 };
00066 
00067 #endif

Generated on Fri Apr 19 02:45:16 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002