source: sasview/realSpaceModeling/geoshapespy/libgeoshapespy/hollow_sphere.h @ 588f84f

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 588f84f was f2d6445, checked in by Mathieu Doucet <doucetm@…>, 17 years ago

moving realSpaceModeling to trunk

  • Property mode set to 100644
File size: 975 bytes
Line 
1/** \file hollowsphere.h class HollowSphere:GeoShape */
2
3#ifndef HOLLOWSPHERE_H
4#define HOLLOWSPHERE_H
5
6#include "geo_shape.h"
7
8/** class Sphere, subclass of GeoShape */
9class HollowSphere : public GeoShape {
10 public:
11
12  /** initialize */
13  HollowSphere();
14
15  /** constructor with radius&length initialization */
16  HollowSphere(double radius, double thickness);
17
18  /** get the radius of the sphere to cover this shape */
19  double GetMaxRadius();
20
21  /** calculate the sphere form factor, no scale, no background*/
22  void GetFormFactor(IQ * iq);
23
24  /** using a equation to check whether a point with XYZ lies
25      within the sphere with center (0,0,0)
26  */
27  Point3D GetAPoint(double sld);
28
29  /** check whether point is inside hollow sphere*/
30  bool IsInside(const Point3D& point) const;
31
32  double GetVolume();
33
34  //get the shape type, return sphere
35  ShapeType GetShapeType() const;
36
37 private:
38  //outer radius, and the thickness of the shell
39  double ro_, th_;
40
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.