magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249unittest-saveload
Last change
on this file since b204004 was
d85c194,
checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago
|
Remaining modules refactored
|
-
Property mode set to
100644
|
File size:
975 bytes
|
Rev | Line | |
---|
[aa639ea] | 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 */ |
---|
| 9 | class 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.