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

PickMode.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: PickMode.h,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.26 $       $Date: 2019/01/17 21:21:01 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  *  Pick mode management class.
00019  ***************************************************************************/
00020 
00021 #ifndef PICK_MODE_H__
00022 #define PICK_MODE_H__
00023 
00024 class DisplayDevice;
00025 class DrawMolecule;
00026 class VMDApp;
00027 
00029 class PickMode {
00030   protected:
00031   VMDApp* app;
00032   PickMode() : app(0) {}
00033 public:
00034   PickMode(VMDApp* app) : app(app) {}
00035   virtual ~PickMode() {}
00036 
00041   virtual void pick_molecule_start(DrawMolecule *, DisplayDevice *, 
00042                              int /* btn */, int /* tag */, 
00043                              const int *cell, int /* dim */, 
00044                              const float * /* pos */ ) {}
00045   virtual void pick_molecule_move (DrawMolecule *, DisplayDevice *, 
00046                              int /* tag */, int /* dim */, 
00047                              const float * /* pos */) {} 
00048   virtual void pick_molecule_end  (DrawMolecule *, DisplayDevice *) {} 
00049 
00050   virtual void pick_graphics(int molid, int tag, int btn, DisplayDevice *d) {}
00051   // pick_axes?
00052   // pick_surface?
00053 };
00054 
00055 #endif
00056 

Generated on Tue Dec 10 02:46:11 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002