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

« back to all changes in this revision

Viewing changes to src/InsertGenerator2D.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 __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