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

« back to all changes in this revision

Viewing changes to src/IntersectionVol.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
#ifndef __INTERSECT_VOLUME_SET_H
 
13
#define  __INTERSECT_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 IntersectionVol :  public AVolume3D
 
24
{
 
25
 protected:
 
26
  AVolume3D* m_vol1;
 
27
  AVolume3D* m_vol2;
 
28
 
 
29
 public:
 
30
  IntersectionVol ();
 
31
  IntersectionVol (AVolume3D& , AVolume3D&);
 
32
  virtual ~IntersectionVol (){};
 
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 1;};
 
42
 
 
43
  friend ostream& operator << (ostream&,const IntersectionVol&);
 
44
};
 
45
 
 
46
#endif // __INTERSECT_VOLUME_SET_H
 
47