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 892a2cc was
79492222,
checked in by krzywon, 10 years ago
|
Changed the file and folder names to remove all SANS references.
|
-
Property mode set to
100644
|
File size:
998 bytes
|
Line | |
---|
1 | /** \file sphere.h class Sphere:GeoShape */ |
---|
2 | |
---|
3 | #ifndef SPHERE_H |
---|
4 | #define SPHERE_H |
---|
5 | |
---|
6 | #include "geo_shape.h" |
---|
7 | |
---|
8 | /** class Sphere, subclass of GeoShape */ |
---|
9 | class Sphere : public GeoShape { |
---|
10 | public: |
---|
11 | |
---|
12 | /** initialize */ |
---|
13 | Sphere(); |
---|
14 | |
---|
15 | /** constructor with radius initialization */ |
---|
16 | Sphere(double radius); |
---|
17 | |
---|
18 | ~Sphere(); |
---|
19 | |
---|
20 | /** set parameter radius */ |
---|
21 | void SetRadius(double r); |
---|
22 | |
---|
23 | /** get the radius */ |
---|
24 | double GetRadius(); |
---|
25 | |
---|
26 | /** Get the radius of the sphere to cover this shape */ |
---|
27 | double GetMaxRadius(); |
---|
28 | |
---|
29 | /** get the volume */ |
---|
30 | double GetVolume(); |
---|
31 | |
---|
32 | /** calculate the sphere form factor, no scale, no background*/ |
---|
33 | void GetFormFactor(IQ * iq); |
---|
34 | |
---|
35 | /** using a equation to check whether a point with XYZ lies |
---|
36 | within the sphere with center (0,0,0) |
---|
37 | */ |
---|
38 | Point3D GetAPoint(double sld); |
---|
39 | |
---|
40 | /** check whether a point is inside the sphere at any position |
---|
41 | in the 3D space |
---|
42 | */ |
---|
43 | bool IsInside(const Point3D& point) const; |
---|
44 | |
---|
45 | ShapeType GetShapeType() const; |
---|
46 | |
---|
47 | private: |
---|
48 | double r_; |
---|
49 | |
---|
50 | }; |
---|
51 | |
---|
52 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.