| 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 __DOGBONE_H |
| 14 |
#define __DOGBONE_H |
| 15 |
|
| 16 |
// --- Project includes --- |
| 17 |
#include "CylinderVol.h" |
| 18 |
#include "geometry/Cylinder.h" |
| 19 |
#include "geometry/Torus.h" |
| 20 |
#include "geometry/Plane.h" |
| 21 |
|
| 22 |
// --- STL includes --- |
| 23 |
#include <vector> |
| 24 |
#include <map> |
| 25 |
|
| 26 |
using std::vector; |
| 27 |
using std::map; |
| 28 |
|
| 29 |
class DogBone : public CylinderVol |
| 30 |
{ |
| 31 |
protected: |
| 32 |
Torus m_tor; |
| 33 |
|
| 34 |
public: |
| 35 |
DogBone(); |
| 36 |
DogBone(const Vector3&,const Vector3&,double,double,double,double); |
| 37 |
virtual ~DogBone(){}; |
| 38 |
|
| 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 |
|
| 43 |
|
| 44 |
}; |
| 45 |
|
| 46 |
#endif // __DOGBONE_H |