PConfSpaceNavigator.h

Go to the documentation of this file.
00001 /*
00002     LoopTK: Protein Loop Kinematic Toolkit
00003     Copyright (C) 2007 Stanford University
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License along
00016     with this program; if not, write to the Free Software Foundation, Inc.,
00017     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00018 */
00019 
00020 #ifndef PCONF_SPACE_NAV
00021 #define PCONF_SPACE_NAV
00022 
00023 #include "PBasic.h"
00024 #include "PExtension.h"
00025 
00026 
00027 
00028 
00029 class PConfSpaceNavigator: public GLUTNavigationProgram {
00030  public:
00031 
00035   PConfSpaceNavigator(PConformationSpace *pcs);
00036 
00041   ~PConfSpaceNavigator();
00042 
00046   virtual bool Initialize();
00047 
00051   void RenderWorld();
00052  
00056   void Handle_Keypress(unsigned char key, int x, int y);
00057 
00058  private:
00059   void DrawLightChain(PLightChain *chain, bool drawOrange);
00060   void DrawAtom(PAtom *a, bool drawOrange);
00061   PConformationSpace *m_space;
00062   bool m_onlyBackbone;
00063   bool m_onlyLoops;
00064   PConformationSpace::iterator m_currPos;
00065   bool m_dispOneOnly;
00066   int m_sectionPos;
00067   bool m_sectionDisp;
00068   int m_quality;
00069 
00070   int TOTAL_BACKBONE_ATOMS;
00071   
00072 
00073 };
00074 
00075 
00076 
00077 
00078 
00079 
00080 
00081 
00082 #endif

Generated on Wed May 16 20:22:07 2007 for LoopTK: Protein Loop Kinematic Toolkit by  doxygen 1.5.1