CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
cell_landform.cpp
Go to the documentation of this file.
1
12
13/*===============================================================================================================================
14
15This file is part of CoastalME, the Coastal Modelling Environment.
16
17CoastalME 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.
18
19This 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.
20
21You 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.
22
23===============================================================================================================================*/
24#include "cme.h"
25#include "cell_landform.h"
26
36
41
43void CRWCellLandform::SetLFCategory(int const nClassIn)
44{
45 m_nCategory = nClassIn;
46}
47
50{
51 return m_nCategory;
52}
53
55void CRWCellLandform::SetLFSubCategory(int const nClassIn)
56{
57 m_nSubCategory = nClassIn;
58
59 if ((nClassIn == LF_SUBCAT_CLIFF_ON_COASTLINE) || (nClassIn == LF_SUBCAT_CLIFF_INLAND))
61
62 else if ((nClassIn == LF_SUBCAT_DRIFT_TALUS) || (nClassIn == LF_SUBCAT_DRIFT_BEACH) || (nClassIn == LF_SUBCAT_DRIFT_MIXED))
64}
65
68{
69 return m_nSubCategory;
70}
71
73void CRWCellLandform::SetCoast(int const nCoastIn)
74{
75 m_nCoast = nCoastIn;
76}
77
80{
81 return m_nCoast;
82}
83
85void CRWCellLandform::SetPointOnCoast(int const nPointOnCoastIn)
86{
87 m_nPointOnCoast = nPointOnCoastIn;
88}
89
92{
93 return m_nPointOnCoast;
94}
95
97void CRWCellLandform::SetAccumWaveEnergy(double const dEnergyIn)
98{
99 m_dAccumWaveEnergy = dEnergyIn;
100}
101
104{
105 return m_dAccumWaveEnergy;
106}
107
110{
111 m_uLFData.m_sCliffData.m_dNotchBaseElev = dElevIn;
112}
113
116{
117 return m_uLFData.m_sCliffData.m_dNotchBaseElev;
118}
119
121void CRWCellLandform::SetCliffNotchDepth(double const dLenIn)
122{
123 m_uLFData.m_sCliffData.m_dNotchDepth = dLenIn;
124}
125
128{
129 return m_uLFData.m_sCliffData.m_dNotchDepth;
130}
131
133void CRWCellLandform::SetCliffRemaining(double const dLenIn)
134{
135 m_uLFData.m_sCliffData.m_dRemaining = dLenIn;
136}
137
138// //! Get the cliff depth remaining on this cell
139// double CRWCellLandform::dGetCliffRemaining(void) const
140// {
141// return m_uLFData.m_sCliffData.m_dRemaining;
142// }
143
144
Contains CRWCellLandform definitions.
int m_nCategory
Landform category for this cell.
double m_dAccumWaveEnergy
Accumulate wave energy for this landform on this cell.
void SetCoast(int const)
Set the coast number.
int nGetCoast(void) const
Get the coast number.
~CRWCellLandform(void)
Destructor.
CRWCellLandform()
Constructor.
int nGetLFCategory(void) const
Get the landform category.
double dGetCliffNotchDepth(void) const
Get the cliff notch overhang which remains on this cell.
int m_nSubCategory
Landform subcategory for this cell.
void SetCliffNotchBaseElev(double const)
Set cliff notch base elevation.
double dGetAccumWaveEnergy(void) const
Get accumulated wave energy.
int m_nPointOnCoast
Point on coast on which this landform sits (if any)
double dGetCliffNotchBaseElev(void) const
Get cliff notch base elevation.
int nGetLFSubCategory(void) const
Get the landform sub-category.
union CRWCellLandform::@170004372174012267010031044241026106362141217107 m_uLFData
The m_uLFData will hold landform data: currently, only cliffs are considered.
void SetCliffNotchDepth(double const)
Set the cliff notch overhang which remains on this cell.
void SetCliffRemaining(double const)
Set the cliff depth remaining on this cell.
void SetLFCategory(int const)
Set the landform category.
void SetPointOnCoast(int const)
Set the number of the point on the coastline.
int m_nCoast
Coast on which this landform sits (if any)
void SetAccumWaveEnergy(double const)
Set accumulated wave energy.
int nGetPointOnCoast(void) const
Set the number of the point on the coastline.
void SetLFSubCategory(int const)
Set the both the landform sub-category, and the landform category.
This file contains global definitions for CoastalME.
int const LF_SUBCAT_DRIFT_BEACH
Definition cme.h:440
int const LF_SUBCAT_CLIFF_ON_COASTLINE
Definition cme.h:434
int const LF_CAT_DRIFT
Definition cme.h:430
int const LF_SUBCAT_DRIFT_TALUS
Definition cme.h:439
int const LF_SUBCAT_CLIFF_INLAND
Definition cme.h:435
int const LF_SUBCAT_DRIFT_MIXED
Definition cme.h:438
int const LF_NONE
Definition cme.h:418
int const LF_CAT_CLIFF
Definition cme.h:429