PBlockReconnector.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 __P_BLOCK_RECONNECTOR_H
00021 #define __P_BLOCK_RECONNECTOR_H
00022 
00028 class PBlockReconnector {
00029   public:
00030 
00035     PBlockReconnector(PBlock *anchor, PBlock *toDetach);
00036     
00041     void ReconnectBlocks();
00042 
00046     Matrix4 GetReconnectTransform();
00047 
00051     PBlock *getAnchor() {return m_anchor; }
00052 
00056     PBlock *getDetached() {return m_detached; }
00057 
00058   private:
00059     PBlock *m_anchor;
00060     PBlock *m_detached;
00061 
00062     Matrix4 m_transformWA,m_transformAB,m_transformAW;
00063 
00064     Vector3 m_originalCA;
00065     Vector3 m_xOrig,m_yOrig,m_zOrig;
00066     Vector3 m_xPr,m_yPr,m_zPr;
00067 
00068 };
00069 
00070 #endif  // __P_BLOCK_RECONNECTOR_H

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