Debian Codegraph @

src/BoxWithLines2DSubVol.h

raw
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 __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