source: sasview/src/sas/sascalc/simulation/analmodelpy/libanalmodelpy/analytical_model.cc @ b58265c3

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalcmagnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since b58265c3 was d85c194, checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago

Remaining modules refactored

  • 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
7AnalyticalModel::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
21AnalyticalModel::~AnalyticalModel() 
22{
23  if (shape_ != NULL) delete shape_;
24}
25
26void AnalyticalModel::CalculateIQ(IQ * iq)
27{
28  shape_->GetFormFactor(iq);
29}
Note: See TracBrowser for help on using the repository browser.