CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
raster_grid.h
Go to the documentation of this file.
1
14
15#ifndef RASTERGRID_H
16#define RASTERGRID_H
17/* ===============================================================================================================================
18
19 This file is part of CoastalME, the Coastal Modelling Environment.
20
21 CoastalME is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
22
23 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
24
25 You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
27===============================================================================================================================*/
28
29class CGeomCell; // Forward declaration
30class CSimulation; // Ditto
31
33{
35 friend class CSimulation;
36
38 friend class CGeomProfile;
39
40 private:
42 double m_dD50Fine;
43
45 double m_dD50Sand;
46
49
52
55
56 protected:
57 public:
59 ~CGeomRasterGrid(void);
60
61 CSimulation* pGetSim(void);
62 // CGeomCell* pGetCell(int const, int const);
63 int nCreateGrid(void);
64};
65#endif // RASTERGRID_H
Geometry class for the cell objects which comprise the raster grid.
Definition cell.h:45
double m_dD50Fine
The d50 of fine-sized sediment.
Definition raster_grid.h:42
double m_dD50Sand
The d50 of sand-sized sediment.
Definition raster_grid.h:45
friend class CGeomProfile
The CGeomProfile class is a friend of the CGeomRasterGrid class.
Definition raster_grid.h:38
CGeomCell ** m_Cell
The 2D array of m_Cell objects. A c-style 2D array seems to be faster than using 2D STL vectors.
Definition raster_grid.h:54
~CGeomRasterGrid(void)
Destructor.
int nCreateGrid(void)
Creates the 2D CGeomCell array.
double m_dD50Coarse
The d50 of coarse-sized sediment.
Definition raster_grid.h:48
CSimulation * m_pSim
A pointer to the CSimulation object.
Definition raster_grid.h:51
friend class CSimulation
The CSimulation class is a friend of the CGeomRasterGrid class.
Definition raster_grid.h:35
CGeomRasterGrid(CSimulation *)
Constructor.
CSimulation * pGetSim(void)
Returns a pointer to the simulation object.
This class runs CoastalME simulations.
Definition simulation.h:79