Debian Codegraph @

src/InsertGenerator2D.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 __INSERTGENERATOR2D_H
14 #define __INSERTGENERATOR2D_H
15
16 // --- Project includes ---
17 #include "AGenerator2D.h"
18
19 /*!
20 \class InsertGenerator2D
21
22 Packing generator using Place et al. insertion based algorithm.
23 */
24 class InsertGenerator2D : public AGenerator2D
25 {
26 protected:
27 double m_rmin;
28 double m_rmax;
29 double m_max_tries;
30 int m_max_iter;
31 double m_prec;
32 bool m_old_seeding;
33
34 virtual void seedParticles(AVolume2D* ,MNTable2D* ,int,int);
35
36 public:
37 InsertGenerator2D();
38 InsertGenerator2D(double,double,int,int,double);
39 InsertGenerator2D(double,double,int,int,double,bool);
40 virtual ~InsertGenerator2D();
41
42 void setOldSeeding(bool);
43 virtual void fillIn(AVolume2D* ,MNTable2D* ,int,int);
44 virtual void generatePacking (AVolume2D*,MNTable2D*,int,int);
45
46 friend ostream& operator << (ostream&,const InsertGenerator2D&);
47 };
48
49 #endif // __INSERTGENERATOR2D_H