Debian Codegraph @

src/UnionVol.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 #ifndef __UNION_VOLUME_SET_H
13 #define __UNION_VOLUME_SET_H
14
15 // --- Project includes ---
16 #include "AVolume3D.h"
17
18 // --- STL includes ---
19 #include <map>
20
21 using std::map;
22
23 class UnionVol : public AVolume3D
24 {
25 protected:
26 AVolume3D* m_vol1;
27 AVolume3D* m_vol2;
28
29 public:
30 UnionVol ();
31 UnionVol (AVolume3D& , AVolume3D&);
32 virtual ~UnionVol (){};
33
34 virtual const map<double,const AGeometricObject*> getClosestObjects(const Vector3&,int) const;
35
36 virtual pair<Vector3,Vector3> getBoundingBox();
37 virtual Vector3 getAPoint(int) const;
38 virtual bool isIn(const Vector3&) const;
39 virtual bool isIn(const Sphere&);
40 virtual bool isFullyOutside(const Sphere&);
41 virtual int getNumberSubVolumes()const{return 2;};
42
43 friend ostream& operator << (ostream&,const UnionVol&);
44 };
45
46 #endif // __UNION_VOLUME_SET_H
47