~ubuntu-branches/ubuntu/saucy/python-demgengeo/saucy

« back to all changes in this revision

Viewing changes to src/ClippedSphereVol.h

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2011-11-18 21:47:18 UTC
  • Revision ID: package-import@ubuntu.com-20111118214718-4ysqm3dhpqwdd7gd
Tags: upstream-0.99~bzr106
ImportĀ upstreamĀ versionĀ 0.99~bzr106

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////
 
2
//                                                         //
 
3
// Copyright (c) 2007-2011 by The University of Queensland //
 
4
// Earth Systems Science Computational Centre (ESSCC)      //
 
5
// http://www.uq.edu.au/esscc                              //
 
6
//                                                         //
 
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          //
 
10
//                                                         //
 
11
/////////////////////////////////////////////////////////////
 
12
 
 
13
#ifndef  __CLIPPED_SPHERE_VOL_H
 
14
#define  __CLIPPED_SPHERE_VOL_H
 
15
 
 
16
// --- Project includes ---
 
17
#include "SphereVol.h"
 
18
#include "Plane.h"
 
19
 
 
20
// --- STL includes ---
 
21
#include <map>
 
22
#include <utility>
 
23
 
 
24
using std::map;
 
25
using std::pair;
 
26
 
 
27
class ClippedSphereVol :  public SphereVol
 
28
{
 
29
 protected:
 
30
  vector<pair<Plane,bool> > m_planes;
 
31
 
 
32
 public:
 
33
  ClippedSphereVol();
 
34
  ClippedSphereVol(const Vector3&,double);
 
35
  virtual ~ClippedSphereVol(){};
 
36
 
 
37
  void addPlane(const Plane&,bool);
 
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
 
 
43
  //friend ostream& operator << (ostream&,const ClippedSphereVol&);
 
44
};
 
45
 
 
46
#endif // __CLIPPED_SPHERE_VOL_H