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

PickModeList.C

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: PickModeList.C,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.18 $       $Date: 2019/01/17 21:21:01 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  *  List of all pick modes.
00019  ***************************************************************************/
00020 
00021 #include "PickModeList.h"
00022 #include "PickModeAddBond.h"
00023 #include "PickModeCenter.h"
00024 #include "PickModeForce.h"
00025 #include "PickModeMolLabel.h"
00026 #include "PickModeMove.h"
00027 #include "PickModeUser.h"
00028 
00029 #include "VMDApp.h"
00030 
00031 PickModeList::PickModeList(VMDApp *app) {
00032 
00033   // IMPORTANT NOTE: The order in which the modes are loaded corresponds
00034   // to the number identifier for the picking modes (harcoded in Tcl scripts 
00035   // and in the Fltk interface). Until this, this is implemented more 
00036   // robustly, one must be careful _not_ to change the order of the picking
00037   // modes, and only add new modes at the end of the list, etc.
00038   
00039   pickmodelist.add_name("Query", new PickMode(app)); 
00040   pickmodelist.add_name("Center", new PickModeCenter(app));
00041 
00042   pickmodelist.add_name("Atoms", new PickModeAtoms(app));
00043   pickmodelist.add_name("Bonds", new PickModeBonds(app));
00044   pickmodelist.add_name("Angles", new PickModeAngles(app));
00045   pickmodelist.add_name("Dihedrals", new PickModeDihedrals(app));
00046 
00047   pickmodelist.add_name("MoveAtom", new PickModeMoveAtom);
00048   pickmodelist.add_name("MoveResidue", new PickModeMoveResidue);
00049   pickmodelist.add_name("MoveFragment", new PickModeMoveFragment);
00050   pickmodelist.add_name("MoveMolecule", new PickModeMoveMolecule);
00051  
00052   pickmodelist.add_name("ForceAtom", new PickModeForceAtom); 
00053   pickmodelist.add_name("ForceResidue", new PickModeForceResidue); 
00054   pickmodelist.add_name("ForceFragment", new PickModeForceFragment); 
00055 
00056   pickmodelist.add_name("MoveRep", new PickModeMoveRep);
00057 
00058   pickmodelist.add_name("AddBond", new PickModeAddBond(app));
00059   pickmodelist.add_name("Pick", new PickModeUser(app));
00060 
00061   curpickmode = pickmodelist.data("Query");
00062 }
00063 
00064 PickModeList::~PickModeList() {
00065   for (int i=0; i<pickmodelist.num(); i++)
00066     delete pickmodelist.data(i);
00067 }
00068 
00069 

Generated on Fri Mar 29 02:46:01 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002