Last change
on this file since 2ab812d was
d85c194,
checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago
|
Remaining modules refactored
|
-
Property mode set to
100644
|
File size:
837 bytes
|
Rev | Line | |
---|
[aa639ea] | 1 | #include "complex_model.h" |
---|
| 2 | #include "lores_model.h" |
---|
| 3 | #include "sphere.h" |
---|
| 4 | #include "pdb_model.h" |
---|
| 5 | #include <vector> |
---|
| 6 | #include "Point3D.h" |
---|
| 7 | #include <string> |
---|
| 8 | |
---|
| 9 | int main(){ |
---|
| 10 | |
---|
| 11 | //Get a few points from a lores model |
---|
| 12 | vector<Point3D> vplores; |
---|
| 13 | LORESModel lm(0.1); |
---|
| 14 | Sphere s1(10); |
---|
| 15 | lm.Add(s1,1); |
---|
| 16 | lm.GetPoints(vplores); |
---|
| 17 | |
---|
| 18 | //get a few points from a pdb model |
---|
| 19 | vector<Point3D> vppdb; |
---|
| 20 | string pdbfile("ff0.pdb"); |
---|
| 21 | PDBModel p1; |
---|
| 22 | p1.AddPDB(pdbfile); |
---|
| 23 | p1.GetPoints(vppdb); |
---|
| 24 | //should be error,argument vector has to be empty |
---|
| 25 | //p1.GetPoints(vppdb); |
---|
| 26 | |
---|
| 27 | //merge points |
---|
| 28 | vector<Point3D> vptotal; |
---|
| 29 | ComplexModel cm; |
---|
| 30 | cm.Add(&lm); |
---|
| 31 | cm.Add(&p1); |
---|
| 32 | cout << "boundary"<< cm.GetDimBound() <<endl; |
---|
| 33 | |
---|
| 34 | cm.GetPoints(vptotal); |
---|
| 35 | |
---|
| 36 | cm.DistDistribution(vptotal); |
---|
| 37 | cm.OutputPR("testcomplexcc.pr"); |
---|
| 38 | //pm.AddPoints(vptotal,vplores,vppdb); |
---|
| 39 | |
---|
| 40 | return 0; |
---|
| 41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.