| 1 |
tim |
86 |
/********************************************************************** |
| 2 |
|
|
* Copyright (C) 2002-2003 by Gezelter's Group
|
| 3 |
|
|
*This program is free software; you can redistribute it and/or modify
|
| 4 |
|
|
*it under the terms of the GNU General Public License as published by
|
| 5 |
|
|
*the Free Software Foundation version 2 of the License.
|
| 6 |
|
|
*
|
| 7 |
|
|
*This program is distributed in the hope that it will be useful,
|
| 8 |
|
|
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 9 |
|
|
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 10 |
|
|
*GNU General Public License for more details.
|
| 11 |
|
|
*
|
| 12 |
|
|
************************************************************************ |
| 13 |
|
|
*Author: Teng Lin Email: tlin@nd.edu |
| 14 |
|
|
*Date: 08/13/2002 Version: 1.0 |
| 15 |
|
|
* |
| 16 |
|
|
************************************************************************ |
| 17 |
|
|
*Description: |
| 18 |
|
|
* |
| 19 |
|
|
***********************************************************************/ |
| 20 |
tim |
66 |
#ifndef FASMOL_H |
| 21 |
|
|
#define FASMOL_H |
| 22 |
|
|
|
| 23 |
|
|
#include <iostream> |
| 24 |
|
|
#include <vector> |
| 25 |
|
|
#include <string> |
| 26 |
tim |
86 |
#include "keylist.h" |
| 27 |
|
|
#include "animation.h" |
| 28 |
tim |
66 |
using namespace std; |
| 29 |
|
|
|
| 30 |
|
|
class TFASAtom; |
| 31 |
|
|
class TFASResidue; |
| 32 |
|
|
class TFASBond; |
| 33 |
|
|
class TFASMolecule; |
| 34 |
|
|
|
| 35 |
tim |
86 |
class TFASModel : public TAnimation |
| 36 |
tim |
66 |
{ |
| 37 |
|
|
protected: |
| 38 |
|
|
string _modelName; |
| 39 |
|
|
unsigned int _natoms; |
| 40 |
|
|
unsigned int _nbonds; |
| 41 |
|
|
unsigned int _nresidues; |
| 42 |
|
|
unsigned int _nmols; |
| 43 |
|
|
|
| 44 |
|
|
vector<TFASAtom *> _atomList; |
| 45 |
|
|
vector<TFASResidue *> _resList; |
| 46 |
|
|
vector<TFASBond *> _bondList; |
| 47 |
|
|
vector<TFASMolecule *> _molList; |
| 48 |
|
|
|
| 49 |
tim |
86 |
TNameList _atomNames; |
| 50 |
|
|
TNameList _atomTypes; |
| 51 |
|
|
TNameList _resNames; |
| 52 |
|
|
TNameList _resIds; |
| 53 |
|
|
TNameList _chainNames; |
| 54 |
|
|
TNameList _segNames; |
| 55 |
|
|
|
| 56 |
tim |
66 |
public: |
| 57 |
tim |
86 |
|
| 58 |
tim |
66 |
TFASModel(); |
| 59 |
|
|
~TFASModel(); |
| 60 |
tim |
86 |
|
| 61 |
tim |
66 |
string GetModelName() { return _modelName;} |
| 62 |
|
|
void SetModelName(string modelName) { _modelName = modelName;} |
| 63 |
tim |
86 |
void SetModelName(char * modelName) {_modelName = modelName;} |
| 64 |
tim |
66 |
|
| 65 |
|
|
void FindMolecules(); |
| 66 |
|
|
}; |
| 67 |
|
|
|
| 68 |
|
|
|
| 69 |
|
|
#endif |