1
/////////////////////////////////////////////////////////////
3
// Copyright (c) 2007-2011 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
11
/////////////////////////////////////////////////////////////
13
#ifndef __SPHERE_VOL_H
14
#define __SPHERE_VOL_H
16
// --- Project includes ---
17
#include "AVolume3D.h"
20
// --- STL includes ---
25
class SphereVol : public AVolume3D
32
SphereVol(const Vector3&,double);
33
virtual ~SphereVol(){};
35
virtual pair<Vector3,Vector3> getBoundingBox();
36
virtual Vector3 getAPoint(int) const;
37
virtual const map<double,const AGeometricObject*> getClosestObjects(const Vector3&,int) const;
38
virtual bool isIn(const Vector3&) const;
39
virtual bool isIn(const Sphere&);
40
virtual bool isFullyOutside(const Sphere&);
42
friend ostream& operator << (ostream&,const SphereVol&);
45
#endif // __SPHERE_VOL_H