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: PickModeCenter.h,v $ 00013 * $Author: johns $ $Locker: $ $State: Exp $ 00014 * $Revision: 1.21 $ $Date: 2019年01月17日 21:21:01 $ 00015 * 00016 *************************************************************************** 00017 * DESCRIPTION: 00018 * Pick on an atom to change its centering/global translation 00019 * 00020 ***************************************************************************/ 00021 00022 #ifndef PICKMODECENTER_H 00023 #define PICKMODECENTER_H 00024 00025 #include "PickMode.h" 00026 00027 class VMDApp; 00028 00030 class PickModeCenter : public PickMode { 00031 private: 00032 float pPos[3]; 00033 int pCell[3]; 00034 int pAtom; 00035 int needName; 00036 VMDApp *app; 00037 00038 public: 00039 PickModeCenter(VMDApp *); 00040 00041 virtual void pick_molecule_start(DrawMolecule *, DisplayDevice *, 00042 int, int, const int *, int, const float *); 00043 virtual void pick_molecule_move(DrawMolecule *, DisplayDevice *, 00044 int, int, const float *); 00045 virtual void pick_molecule_end(DrawMolecule *, DisplayDevice *); 00046 }; 00047 #endif 00048