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// #include "cell.h"
29
30class CGeomCell; // Forward declaration
31class CSimulation; // Ditto
32
34{
36 friend class CSimulation;
37
39 friend class CGeomProfile;
40
41 private:
43 double m_dD50Fine;
44
46 double m_dD50Sand;
47
50
53
56
57 protected:
58 public:
60 ~CGeomRasterGrid(void);
61
62 CSimulation* pGetSim(void);
63 // CGeomCell* pGetCell(int const, int const);
64 int nCreateGrid(void);
65};
66#endif // RASTERGRID_H
Geometry class for the cell objects which comprise the raster grid.
Definition cell.h:46
double m_dD50Fine
The d50 of fine-sized sediment.
Definition raster_grid.h:43
double m_dD50Sand
The d50 of sand-sized sediment.
Definition raster_grid.h:46
friend class CGeomProfile
The CGeomProfile class is a friend of the CGeomRasterGrid class.
Definition raster_grid.h:39
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:55
~CGeomRasterGrid(void)
Destructor.
int nCreateGrid(void)
Creates the 2D CGeomCell array.
double m_dD50Coarse
The d50 of coarse-sized sediment.
Definition raster_grid.h:49
CSimulation * m_pSim
A pointer to the CSimulation object.
Definition raster_grid.h:52
friend class CSimulation
The CSimulation class is a friend of the CGeomRasterGrid class.
Definition raster_grid.h:36
CGeomRasterGrid(CSimulation *)
Constructor.
CSimulation * pGetSim(void)
Returns a pointer to the simulation object.
This class runs CoastalME simulations.
Definition simulation.h:79