Debian Codegraph @

src/SphereSectionVol.h

raw
1 /////////////////////////////////////////////////////////////
2 // //
3 // Copyright (c) 2007-2017 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.apache.org/licenses/LICENSE-2.0 //
10 // //
11 /////////////////////////////////////////////////////////////
12
13 #ifndef __SPHERE_SECTION_VOL_H
14 #define __SPHERE_SECTION_VOL_H
15
16 // --- Project includes ---
17 #include "AVolume3D.h"
18 #include "geometry/SphereIn.h"
19
20 // --- STL includes ---
21 #include <map>
22
23 using std::map;
24
25 class SphereSectionVol : public AVolume3D
26 {
27 protected:
28 SphereIn m_sph;
29 double m_section_dist;
30 Vector3 m_section_normal;
31
32 public:
33 SphereSectionVol();
34 SphereSectionVol(const Vector3&,const double, const double, const Vector3&);
35 virtual ~SphereSectionVol(){};
36
37 virtual pair<Vector3,Vector3> getBoundingBox();
38 virtual Vector3 getAPoint(int) const;
39 virtual const map<double,const AGeometricObject*> getClosestObjects(const Vector3&,int) const;
40 virtual bool isIn(const Vector3&) const;
41 virtual bool isIn(const Sphere&);
42 virtual bool isFullyOutside(const Sphere&);
43
44 friend ostream& operator << (ostream&,const SphereSectionVol&);
45 };
46
47 #endif // __SPHERE_SECTION_VOL_H