CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
coast_landform.h
Go to the documentation of this file.
1
14
15#ifndef COASTLANDFORM_H
16#define COASTLANDFORM_H
17/*===============================================================================================================================
18
19This file is part of CoastalME, the Coastal Modelling Environment.
20
21CoastalME 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
23This 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
25You 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 "cme.h"
29#include "2di_point.h"
30#include "coast.h"
31
33{
34private:
35
36protected:
39
42
45
48
51
52public:
53 CACoastLandform(void);
54 virtual ~CACoastLandform(void);
55
56 int nGetCoast(void) const;
57 int nGetPointOnCoast(void) const;
58// void SetLandFormCategory(int const);
59 int nGetLandFormCategory(void) const;
61// void SetTotAccumWaveEnergy(double const);
62 void IncTotAccumWaveEnergy(double const);
63 double dGetTotAccumWaveEnergy(void) const;
64
65 // Pure virtual function, makes this an abstract class TODO Derived classes need to instantiate this, even tho' their implementation never uses their instantiation and never gets called. Seems a waste of time. Alternative?
66 virtual void Display() = 0;
67};
68#endif // COASTLANDFORM_H
69
Contains CGeom2DIPoint definitions.
int m_nPointOnCoast
The point on the coast on which this coast landform sits.
CRWCoast * pCoast
Pointer to this landform's coast.
int nGetCoast(void) const
Get the number of the coast on which this coast landform sits.
double dGetTotAccumWaveEnergy(void) const
Get total accumulated wave energy.
virtual void Display()=0
int nGetPointOnCoast(void) const
Get the point on the coast on which this coast landform sits.
virtual ~CACoastLandform(void)
Destructor.
int m_nCategory
Landform category code.
int m_nCoast
The coast number on which this coast landform sits.
double m_dTotAccumWaveEnergy
Total accumulated wave energy since beginning of simulation.
CACoastLandform(void)
Constructor with initialization list.
int nGetLandFormCategory(void) const
Get the landform category.
void IncTotAccumWaveEnergy(double const)
Increment total accumulated wave energy.
CGeom2DIPoint * pPtiGetCellMarkedAsLF(void) const
Get the grid coordinates of the cell on which this coast landform sits.
Geometry class used to represent 2D point objects with integer coordinates.
Definition 2di_point.h:29
Real-world class used to represent coastline objects.
Definition coast.h:39
This file contains global definitions for CoastalME.
Contains CRWCoast definitions.