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 dfca3de was
f2d6445,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
moving realSpaceModeling to trunk
|
-
Property mode set to
100644
|
File size:
616 bytes
|
Line | |
---|
1 | /** \file analytical_model.cc */ |
---|
2 | |
---|
3 | #include "sphere.h" |
---|
4 | #include "hollow_sphere.h" |
---|
5 | #include "analytical_model.h" |
---|
6 | |
---|
7 | AnalyticalModel::AnalyticalModel(const GeoShape &geo_shape) |
---|
8 | { |
---|
9 | switch (geo_shape.GetShapeType()){ |
---|
10 | case SPHERE: |
---|
11 | shape_ = new Sphere(static_cast<const Sphere&>(geo_shape)); |
---|
12 | break; |
---|
13 | case HOLLOWSPHERE: |
---|
14 | shape_ = new HollowSphere(static_cast<const HollowSphere&>(geo_shape)); |
---|
15 | break; |
---|
16 | case CYLINDER: |
---|
17 | break; |
---|
18 | } |
---|
19 | } |
---|
20 | |
---|
21 | AnalyticalModel::~AnalyticalModel() |
---|
22 | { |
---|
23 | if (shape_ != NULL) delete shape_; |
---|
24 | } |
---|
25 | |
---|
26 | void AnalyticalModel::CalculateIQ(IQ * iq) |
---|
27 | { |
---|
28 | shape_->GetFormFactor(iq); |
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.