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

« back to all changes in this revision

Viewing changes to src/BoxWithLines2DSubVol.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 __BOXWITHLINES2DSUBVOL_H
 
14
#define __BOXWITHLINES2DSUBVOL_H
 
15
 
 
16
// --- Project includes ---
 
17
#include "BoxWithLines2D.h"
 
18
 
 
19
// --- STL includes ---
 
20
#include <vector>
 
21
 
 
22
using std::vector;
 
23
 
 
24
/*!
 
25
  \class BoxWithLines2DSubVol
 
26
 
 
27
  A class for the generation of random particles inside a box. An arbitrary number 
 
28
  of lines can be added to which the particles are fitted.  The class supplies a number of 
 
29
  subvolumes for the getAPoint function 
 
30
*/
 
31
class BoxWithLines2DSubVol : public BoxWithLines2D
 
32
{
 
33
 private:
 
34
  double m_svdim_x,m_svdim_y;
 
35
  int m_nsv_x,m_nsv_y;
 
36
 
 
37
 public:
 
38
  BoxWithLines2DSubVol();
 
39
  BoxWithLines2DSubVol(const Vector3&,const Vector3&,double,double);
 
40
  virtual ~BoxWithLines2DSubVol(){};
 
41
 
 
42
  virtual Vector3 getAPoint(int) const;
 
43
  virtual int getNumberSubVolumes() const;
 
44
};
 
45
#endif // __BOXWITHLINES2DSUBVOL_H