-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDgHexGrid2DS.h
70 lines (49 loc) · 2.21 KB
/
DgHexGrid2DS.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
////////////////////////////////////////////////////////////////////////////////
//
// DgHexGrid2DS.h: DgHexGrid2DS class definitions
//
// Version 6.1 - Kevin Sahr, 5/23/13
//
////////////////////////////////////////////////////////////////////////////////
#ifndef DGHEXGRID2DS_H
#define DGHEXGRID2DS_H
#include "DgRF.h"
#include "DgLocVector.h"
#include "DgDiscRFS2D.h"
#include "DgIVec2D.h"
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
class DgHexGrid2DS : public DgDiscRFS2D {
public:
DgHexGrid2DS (DgRFNetwork& network,
const DgRF<DgDVec2D, long double>& backFrame,
int nRes = 1, unsigned int aperture = 4,
bool isCongruent = true, bool isAligned = false,
const string& name = "6H4", bool isMixed43 = false,
int numAp4 = 0, bool isSuperfund = false);
DgHexGrid2DS (const DgHexGrid2DS& rf);
~DgHexGrid2DS (void);
DgHexGrid2DS& operator= (const DgHexGrid2DS& rf);
long double frequency (void) const { return frequency_; }
bool isMixed43 (void) const { return isMixed43_; }
int numAp4 (void) const { return numAp4_; }
bool isSuperfund (void) const { return isSuperfund_; }
protected:
long double frequency_;
// pure virtual functions from DgDiscRFS
virtual void setAddParents (const DgResAdd<DgIVec2D>& add,
DgLocVector& vec) const;
virtual void setAddInteriorChildren (const DgResAdd<DgIVec2D>& add,
DgLocVector& vec) const;
virtual void setAddBoundaryChildren (const DgResAdd<DgIVec2D>& add,
DgLocVector& vec) const;
virtual void setAddAllChildren (const DgResAdd<DgIVec2D>& add,
DgLocVector& vec) const;
private:
bool isMixed43_;
int numAp4_;
bool isSuperfund_;
};
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
#endif