552 if (dCellDepth >= dDepthIn)
Contains CGeom2DPoint definitions.
Contains CGeom2DIPoint definitions.
Contains CGeomCell definitions.
vector< CGeom2DPoint > m_VPoints
The points which comprise the float-coordinate 2D shape.
Geometry class used to represent 2D point objects with integer coordinates.
Geometry class used to represent 2D point objects with floating-point coordinates.
double dGetSeaDepth(void) const
Returns the depth of seawater on this cell.
void InsertLineSegment(int const)
Inserts a line segment, inheriting from preceding line segments.
int nGetNumLineSegments(void) const
Appends a line segment which then inherits from the preceding line segments.
bool m_bStartOfCoast
Is this a start-of-coast profile?
void TruncateProfile(int const)
Truncates the profile's CGeomLine (external CRS points)
int m_nCoastPoint
The coastline point at which this profile hits the coast (not necessarily coincident wih the profile ...
double m_dDeepWaterWaveHeight
The wave height at the end of the profile.
CGeomProfile * m_pUpCoastAdjacentProfile
Pointer to the adjacent up-coast profile (may be an invalid profile)
int nGetCellGivenDepth(CGeomRasterGrid const *, double const)
Returns the index of the cell on this profile which has a sea depth which is just less than a given d...
void SetEndOfCoast(bool const)
Sets a switch to indicate whether this is an end-of-coast profile.
bool m_bHitCoast
Has this profile hit a coastline?
void AppendPointInProfile(double const, double const)
Appends a point (external CRS) to the profile.
double dGetProfileDeepWaterWaveAngle(void) const
Returns the deep-water wave orientation for this profile.
CGeomProfile(int const, int const, int const, CGeom2DIPoint const *, CGeom2DIPoint const *, bool const)
In external CRS, the coords of cells 'under' this profile (has the same length as m_VCellInProfile)
double dGetProfileDeepWaterWaveHeight(void) const
Returns the deep-water wave height for this profile.
int m_nProfileID
The this-coast ID of the profile (note that a profile in a different coast may have the same ID as th...
int nGetProfileID(void) const
Returns the profile's this-coast ID.
int nGetCoastPoint(void) const
Returns the coast point at which the profile starts.
void SetProfileDeepWaterWavePeriod(double const)
Sets the deep-water wave period for this profile.
bool m_bIntervention
Is this an intervention profile?
bool bIsPointInProfile(double const, double const)
Removes a line segment from the profile.
void SetHitCoast(bool const)
Sets a switch which indicates whether this profile has hit a coast.
CGeomProfile * m_pDownCoastAdjacentProfile
Pointer to the adjacent down-coast profile (may be an invalid profile)
int nGetCoast(void) const
Returns this profile's coast.
bool m_bCShoreProblem
Has this profile encountered a CShore problem?
bool bProfileOKIncTruncated(void) const
Returns true if this is a problem-free profile, and is not a start-of-coast and is not an end-of-coas...
bool m_bHitAnotherProfile
Has this profile hit another profile?
void SetStartOfCoast(bool const)
Sets a switch to indicate whether this is a start-of-coast profile.
CGeomProfile * pGetUpCoastAdjacentProfile(void) const
Returns the up-coast adjacent profile, returns NULL if there is no up-coast adjacent profile.
CGeomProfile * pGetDownCoastAdjacentProfile(void) const
Returns the down-coast adjacent profile, returns NULL if there is no down-coast adjacent profile.
void SetUpCoastAdjacentProfile(CGeomProfile *)
Sets the up-coast adjacent profile.
double m_dDeepWaterWaveAngle
The wave orientation at the end of the profile.
bool bTruncatedDifferentCoast(void) const
Returns the switch which indicates whether this profile has been truncated, due to hitting another pr...
CGeom2DIPoint * pPtiGetCellInProfile(int const)
Returns a single cell (grid CRS) in the profile.
void SetHitAnotherProfile(bool const)
Sets a switch which indicates whether this profile hits another profile badly.
vector< CGeom2DPoint > PtVGetThisPointAndAllAfter(int const)
Returns a given external CRS point from the profile, and all points after this.
bool bHitAnotherProfile(void) const
Returns the switch which indicates whether this profile hits another profile badly.
bool bInsertIntersection(double const, double const, int const)
Inserts an intersection (at a point specified in external CRS, with a line segment) into the profile.
CGeom2DIPoint PtiEnd
The seaward end point of the profile in grid CRS.
bool m_bTruncatedDifferentCoast
Has this profile been truncated by hitting another profile from a different coast?
bool bHitLand(void) const
Returns the switch which indicates whether this profile has hit land.
void SetTruncatedSameCoast(bool const)
Sets a switch which indicates whether this profile is truncated, due to hitting another profile from ...
CGeom2DIPoint PtiStart
The on-coast start point of the profile in grid CRS.
int nGetNumCellsInProfile(void) const
Returns the number of cells in the profile.
vector< CGeom2DIPoint > m_VCellInProfile
In the grid CRS, the integer coordinates of the cells 'under' this profile, point zero is the same as...
bool bProfileOK(void) const
Returns true if this is a problem-free profile, and is not a start-of-coast and is not an end-of-coas...
void SetProfileDeepWaterWaveHeight(double const)
Sets the deep-water wave height for this profile.
bool bTooShort(void) const
Returns the switch which indicates whether this profile is too short to be useful.
void SetDownCoastAdjacentProfile(CGeomProfile *)
Sets the down-coast adjacent profile.
bool bHitCoast(void) const
Returns the switch which indicates whether this profile has hit a coast.
bool bIsIntervention(void) const
Returns true if this is an intervention profile.
void SetHitIntervention(bool const)
Sets a switch which indicates whether this profile has hit an intervention.
bool m_bEndOfCoast
Is this an end-of-coast profile?
~CGeomProfile(void) override
Destructor.
CGeom2DIPoint * pPtiGetEndPoint(void)
Returns a pointer to the location of the cell (grid CRS) on which the profile ends.
void SetCShoreProblem(bool const)
Sets a switch to indicate whether this profile has a CShore problem.
CGeom2DPoint * pPtGetPointInProfile(int const)
Returns a single point (external CRS) from the profile.
bool bOKIncStartAndEndOfCoast(void) const
Returns true if this is a problem-free profile (however it could be a start-of-coast or an end-of-coa...
void AppendCellInProfile(CGeom2DIPoint const *)
Appends a cell (grid CRS) to the profile.
void SetPointInProfile(int const, double const, double const)
Sets a single point (external CRS) in the profile.
int nGetProfileSize(void) const
Returns the number of external CRS points in the profile (only two, initally; and always just two for...
CGeom2DIPoint * pPtiGetStartPoint(void)
Returns a pointer to the location of the cell (grid CRS) on which the profile starts.
bool m_bTooShort
Is this profile too short?
bool bStartOfCoast(void) const
Returns the switch to indicate whether this is a start-of-coast profile.
bool bTruncatedSameCoast(void) const
Returns the switch which indicates whether this profile has been truncated, due to hitting another pr...
void SetEndPoint(CGeom2DIPoint const *)
Sets the the location of the cell (grid CRS) on which the profile ends.
void SetHitLand(bool const)
Sets a switch which indicates whether this profile has hit land.
void SetPointsInProfile(vector< CGeom2DPoint > const *)
Sets points (external CRS) in the profile. Note that only two points, the start and end point,...
int m_nCoast
The coast from which this profile projects.
vector< CGeom2DIPoint > * pPtiVGetCellsInProfile(void)
Returns all cells (grid CRS) in the profile.
CGeom2DIPoint * pPtiGetLastCellInProfile(void)
Returns the last cell (grid CRS) in the profile.
void SetCellsInProfile(vector< CGeom2DIPoint > *)
Sets the profile's vector of cells (grid CRS)
bool m_bHitIntervention
Has this profile hit an intervention?
void SetTruncatedDifferentCoast(bool const)
Sets a switch which indicates whether this profile is truncated, due to hitting another profile from ...
bool m_bTruncatedSameCoast
Has this profile been truncated by hitting another profile from the same coast?
double m_dDeepWaterWavePeriod
The wave period at the end of the profile.
int nGetIndexOfCellInProfile(int const, int const)
Returns the index of a given cell in the vector of profile cells; returns INT_NODATA if not found.
bool bEndOfCoast(void) const
Returns the switch to indicate whether this is an end-of-coast profile.
double dGetProfileDeepWaterWavePeriod(void) const
Returns the deep-water wave period for this profile.
bool bCShoreProblem(void) const
Returns the switch which indicates whether this profile has a CShore problem.
bool bHitIntervention(void) const
Returns the switch which indicates whether this profile has hit an intervention.
void SetProfileDeepWaterWaveAngle(double const)
Sets the deep-water wave orientation for this profile.
bool m_bHitLand
Has this profile hit land?
void SetTooShort(bool const)
Sets a switch which indicates whether this profile is too short to be useful.
Geometry cass used to represent the raster grid of cell objects.
CGeomCell ** m_Cell
The 2D array of m_Cell objects. A c-style 2D array seems to be faster than using 2D STL vectors.
This file contains global definitions for CoastalME.
Contains CGeomMultiLine definitions.
Contains CGeomProfile definitions.
Contains CGeomRasterGrid definitions.