Debian Codegraph @

src/SphereVolWithJointSet.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_VOL_WITH_JOINT_SET_H
14 #define __SPHERE_VOL_WITH_JOINT_SET_H
15
16 // --- Project includes ---
17 #include "SphereVol.h"
18 #include "geometry/SphereIn.h"
19 #include "TriPatchSet.h"
20
21 // --- STL includes ---
22 #include <map>
23
24 using std::map;
25
26 class SphereVolWithJointSet : public SphereVol
27 {
28 protected:
29 vector<Triangle3D> m_joints;
30
31 public:
32 SphereVolWithJointSet();
33 SphereVolWithJointSet(const Vector3&,double);
34 virtual ~SphereVolWithJointSet(){};
35
36 void addJoints(const TriPatchSet&);
37
38 virtual const map<double,const AGeometricObject*> getClosestObjects(const Vector3&,int) const;
39 virtual bool isIn(const Sphere&);
40
41 friend ostream& operator << (ostream&,const SphereVolWithJointSet&);
42 };
43
44 #endif // __SPHERE_VOL_WITH_JOINT_SET_H