1 |
+ |
/********************************************************************** |
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 |
|
#ifndef FASMOL_H |
21 |
|
#define FASMOL_H |
22 |
|
|
23 |
|
#include <iostream> |
24 |
|
#include <vector> |
25 |
|
#include <string> |
26 |
< |
#include "namelist.h" |
27 |
< |
|
26 |
> |
#include "keylist.h" |
27 |
> |
#include "animation.h" |
28 |
|
using namespace std; |
29 |
|
|
30 |
|
class TFASAtom; |
32 |
|
class TFASBond; |
33 |
|
class TFASMolecule; |
34 |
|
|
35 |
< |
class TFASModel |
35 |
> |
class TFASModel : public TAnimation |
36 |
|
{ |
37 |
|
protected: |
38 |
|
string _modelName; |
46 |
|
vector<TFASBond *> _bondList; |
47 |
|
vector<TFASMolecule *> _molList; |
48 |
|
|
49 |
< |
NameList<int> _atomNames; |
50 |
< |
NameList<int> _atomTypes; |
51 |
< |
NameList<int> _resNames; |
52 |
< |
NameList<int> _resIds; |
53 |
< |
NameList<int> _chainNames; |
54 |
< |
NameList<int> _segNames; |
55 |
< |
|
49 |
> |
TNameList _atomNames; |
50 |
> |
TNameList _atomTypes; |
51 |
> |
TNameList _resNames; |
52 |
> |
TNameList _resIds; |
53 |
> |
TNameList _chainNames; |
54 |
> |
TNameList _segNames; |
55 |
> |
|
56 |
|
public: |
57 |
< |
|
57 |
> |
|
58 |
|
TFASModel(); |
59 |
|
~TFASModel(); |
60 |
< |
|
60 |
> |
|
61 |
|
string GetModelName() { return _modelName;} |
62 |
|
void SetModelName(string modelName) { _modelName = modelName;} |
63 |
< |
void SetModelName(char * modelName) {_modelName = new string(modelName);} |
63 |
> |
void SetModelName(char * modelName) {_modelName = modelName;} |
64 |
|
|
65 |
|
void FindMolecules(); |
66 |
|
}; |