ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since a66fc950 was
f2d6445,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
moving realSpaceModeling to trunk
|
-
Property mode set to
100644
|
File size:
837 bytes
|
Rev | Line | |
---|
[f2d6445] | 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.