| 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 __HGRAINGENERATOR2D_H |
| 14 |
#define __HGRAINGENERATOR2D_H |
| 15 |
|
| 16 |
// --- Project includes --- |
| 17 |
#include "AVolume2D.h" |
| 18 |
#include "MNTable2D.h" |
| 19 |
#include "AGenerator2D.h" |
| 20 |
|
| 21 |
/*! |
| 22 |
\class HGrainGenerator2D |
| 23 |
|
| 24 |
class the generate hexagonal grains on a regular base lattice |
| 25 |
*/ |
| 26 |
class HGrainGenerator2D : public AGenerator2D |
| 27 |
{ |
| 28 |
protected: |
| 29 |
double m_rad; |
| 30 |
|
| 31 |
public: |
| 32 |
HGrainGenerator2D(); |
| 33 |
HGrainGenerator2D(double); |
| 34 |
virtual ~HGrainGenerator2D(); |
| 35 |
|
| 36 |
virtual void generatePacking (AVolume2D*,MNTable2D*,int,int); |
| 37 |
|
| 38 |
friend ostream& operator << (ostream&,const HGrainGenerator2D&); |
| 39 |
}; |
| 40 |
|
| 41 |
|
| 42 |
#endif // __HGRAINGENERATOR2D_H |