CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
|
Geometry class used to represent coast profile objects. More...
#include <profile.h>
Inherits CGeomMultiLine.
Public Member Functions | |
CGeomProfile (int const, int const, int const, int const, CGeom2DIPoint const *, CGeom2DIPoint const *, bool const) | |
Constructor with initialization list, requires one parameter (the coast point at which the profile starts) | |
~CGeomProfile (void) override | |
Destructor. | |
int | nGetCoastID (void) const |
Returns the profile's coast ID. | |
int | nGetGlobalID (void) const |
Returns the profile's global ID. | |
int | nGetCoastPoint (void) const |
Returns the coast point at which the profile starts. | |
CGeom2DIPoint * | pPtiGetStartPoint (void) |
Returns a pointer to the location of the cell (grid CRS) on which the profile starts. | |
void | SetEndPoint (CGeom2DIPoint const *) |
Sets the the location of the cell (grid CRS) on which the profile ends. | |
CGeom2DIPoint * | pPtiGetEndPoint (void) |
Returns a pointer to the location of the cell (grid CRS) on which the profile ends. | |
void | SetStartOfCoast (bool const) |
Sets a switch to indicate whether this is a start-of-coast profile. | |
bool | bStartOfCoast (void) const |
Returns the switch to indicate whether this is a start-of-coast profile. | |
void | SetEndOfCoast (bool const) |
Sets a switch to indicate whether this is an end-of-coast profile. | |
bool | bEndOfCoast (void) const |
Returns the switch to indicate whether this is an end-of-coast profile. | |
void | SetCShoreProblem (bool const) |
Sets a switch to indicate whether this profile has a CShore problem. | |
bool | bCShoreProblem (void) const |
Returns the switch which indicates whether this profile has a CShore problem. | |
void | SetHitLand (bool const) |
Sets a switch which indicates whether this profile has hit land. | |
bool | bHitLand (void) const |
Returns the switch which indicates whether this profile has hit land. | |
void | SetHitIntervention (bool const) |
Sets a switch which indicates whether this profile has hit an intervention. | |
bool | bHitIntervention (void) const |
Returns the switch which indicates whether this profile has hit an intervention. | |
void | SetHitCoast (bool const) |
Sets a switch which indicates whether this profile has hit a coast. | |
bool | bHitCoast (void) const |
Returns the switch which indicates whether this profile has hit a coast. | |
void | SetTooShort (bool const) |
Sets a switch which indicates whether this profile is too short to be useful. | |
bool | bTooShort (void) const |
Returns the switch which indicates whether this profile is too short to be useful. | |
void | SetTruncated (bool const) |
Sets a switch which indicates whether this profile is truncated. | |
bool | bTruncated (void) const |
Returns the switch which indicates whether this profile is truncated. | |
void | SetHitAnotherProfile (bool const) |
Sets a switch which indicates whether this profile hits another profile badly. | |
bool | bHitAnotherProfile (void) const |
Returns the switch which indicates whether this profile hits another profile badly. | |
bool | bProfileOK (void) const |
Returns true if this is a problem-free profile, and is not a start-of-coast or an end-of-coast profile. | |
bool | bProfileOKIncTruncated (void) const |
Returns true if this is a problem-free profile, and is not a start-of-coast or an end-of-coast profile. But it can be a truncated 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-coast profile) | |
void | SetPointsInProfile (vector< CGeom2DPoint > const *) |
Sets all points in the profile. | |
void | SetPointInProfile (int const, double const, double const) |
Sets a single point in the profile. | |
void | AppendPointInProfile (double const, double const) |
Appends a point to the profile. | |
void | AppendPointInProfile (CGeom2DPoint const *) |
Appends a point to the profile (overloaded version) | |
void | TruncateProfile (int const) |
Truncates the profile. | |
bool | bInsertIntersection (double const, double const, int const) |
Inserts an intersection into the profile. | |
int | nGetProfileSize (void) const |
Returns the number of points in the profile. | |
CGeom2DPoint * | pPtGetPointInProfile (int const) |
Returns a single point in the profile. | |
CGeom2DIPoint * | pPtiGetLastCellInProfile (void) |
Returns the last cell in the profile. | |
vector< CGeom2DPoint > | PtVGetThisPointAndAllAfter (int const) |
Returns a given point from the profile, and all points after this. | |
bool | bIsPointInProfile (double const, double const) |
Removes a line segment from the profile. | |
bool | bIsPointInProfile (double const, double const, int &) |
Queries the profile: is the given point a profile point? If so, then it also returns the number of the point in the profile. | |
void | SetUpCoastAdjacentProfile (CGeomProfile *) |
CGeomProfile * | pGetUpCoastAdjacentProfile (void) const |
void | SetDownCoastAdjacentProfile (CGeomProfile *) |
CGeomProfile * | pGetDownCoastAdjacentProfile (void) const |
void | AppendCellInProfile (CGeom2DIPoint const *) |
Appends a cell to the profile. | |
void | AppendCellInProfile (int const, int const) |
Appends a cell to the profile (overloaded version) | |
vector< CGeom2DIPoint > * | pPtiVGetCellsInProfile (void) |
Returns all cells in the profile. | |
CGeom2DIPoint * | pPtiGetCellInProfile (int const) |
Returns a single cell in the profile. | |
int | nGetNumCellsInProfile (void) const |
Returns the number of cells in the profile. | |
void | AppendCellInProfileExtCRS (double const, double const) |
Appends a cell (specified in the external coordinate system) to the profile. | |
void | AppendCellInProfileExtCRS (CGeom2DPoint const *) |
Appends a cell (specified in the external coordinate system) to the profile (overloaded version) | |
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 depth. If every cell on the profile has a sea depth which is less than the given depth it returns INT_NODATA. | |
void | SetProfileDeepWaterWaveHeight (double const) |
Sets the deep-water wave height for this profile. | |
double | dGetProfileDeepWaterWaveHeight (void) const |
Returns the deep-water wave height for this profile. | |
void | SetProfileDeepWaterWaveAngle (double const) |
Sets the deep-water wave orientation for this profile. | |
double | dGetProfileDeepWaterWaveAngle (void) const |
Returns the deep-water wave orientation for this profile. | |
void | SetProfileDeepWaterWavePeriod (double const) |
Sets the deep-water wave Period for this profile. | |
double | dGetProfileDeepWaterWavePeriod (void) const |
Returns the deep-water wave Period for this profile. | |
bool | bIsIntervention (void) const |
Returns true if this is an intervention profile. | |
![]() | |
CGeomMultiLine (void) | |
Constructor, no parameters. | |
~CGeomMultiLine (void) override | |
Destructor. | |
void | AppendLineSegment (void) |
Appends a new empty line segment. | |
void | AppendLineSegment (vector< pair< int, int > > *) |
Appends a line segment which is supplied as a parameter. | |
int | nGetNumLineSegments (void) const |
Appends a line segment which then inherits from the preceding line segments. | |
void | TruncateLineSegments (int const) |
Cuts short the number of line segments. | |
void | InsertLineSegment (int const) |
Inserts a line segment, inheriting from preceding line segments. | |
vector< vector< pair< int, int > > > | prVVGetAllLineSegAfter (int const) |
Returns a vector of the line segments which succeed the specified line segment number. | |
void | RemoveLineSegment (int const) |
Removes a line segment. | |
void | AppendCoincidentProfileToLineSegments (pair< int, int > const) |
Appends a coincident profile pair to the CGeomMultiLine object's final line segment. | |
void | AddCoincidentProfileToExistingLineSegment (int const, int const, int const) |
Adds a coincident profile to a pre-existing line segment of the CGeomMultiLine object. | |
vector< pair< int, int > > * | pprVGetPairedCoincidentProfilesForLineSegment (int const) |
Returns a vector of pairs (a line segment) | |
int | nGetCoincidentProfileForLineSegment (int const, int const) const |
Returns the numbers of coincident profiles. | |
int | nGetNumCoincidentProfilesInLineSegment (int const) |
Returns the count of coincident profiles in a specified line segment, or -1 if the line segment does not exist. | |
bool | bFindProfileInCoincidentProfilesOfLastLineSegment (int const) |
Returns true if the given profile number is amongst the coincident profiles of the CGeomMultiLine object's final line segment. | |
bool | bFindProfileInCoincidentProfiles (int const) |
Returns true if the given profile number is one of the coincident profiles of the a specified line segment. | |
void | GetMostCoastwardSharedLineSegment (int const, int &, int &) |
Finds the number of the most coastward line segment for which the two profiles are coincident, or -1 if they are not coincident. If they are coincident, also finds the line segment of the other profile. | |
int | nGetProf (int const, int const) const |
Returns the profile number, given a line segment and the index of the co-incident profile for that line segment. | |
int | nGetProfsLineSeg (int const, int const) const |
Returns the profile's own line segment, given a line segment and the index of the co-incident profile for that line segment. | |
void | SetProfsLineSeg (int const, int const, int const) |
Sets a profile's own line segment number, given a line segment and the index of the co-incident profile for that line segment. | |
![]() | |
CGeomLine (void) | |
Constructor. | |
CGeomLine (CGeom2DPoint const *, CGeom2DPoint const *) | |
Overloaded constructor with two points as parameters. | |
CGeomLine (int const) | |
Overloaded constructor with one parameter, this creates a given number of uninitialized points. | |
~CGeomLine (void) override | |
Destructor. | |
double | dGetXAt (int const) |
Returns the X value at a given place in the line. | |
double | dGetYAt (int const) |
Returns the Y value at a given place in the line. | |
CGeom2DPoint * | pPtGetAt (int const) |
Returns the point at a given place in the line. | |
![]() | |
void | Reverse (void) |
Reverses the sequence of points in the vector which represents this 2D polygon. | |
int | nGetSize (void) const |
void | Resize (int const) |
Resizes the vector which represents this 2D shape. | |
void | Append (CGeom2DPoint const *) |
Appends a point to this 2D shape. | |
void | Append (double const, double const) |
Appends a point to this 2D shape. | |
void | AppendIfNotAlready (double const, double const) |
Appends a point to this 2D shape only if it isn't already in the shape vector. | |
CGeom2DPoint * | pPtBack (void) |
Returns the last element of this 2D shape. | |
CGeom2DPoint & | operator[] (int const) |
Operator to return one point of this 2D shape. | |
vector< CGeom2DPoint > * | pPtVGetPoints (void) |
Returns the address of the vector which represents this 2D shape. | |
Private Attributes | |
bool | m_bStartOfCoast |
Is this a start-of-coast profile? | |
bool | m_bEndOfCoast |
Is this an end-of-coast profile? | |
bool | m_bCShoreProblem |
Has this profile encountered a CShore problem? | |
bool | m_bHitLand |
Has this profile hit land? | |
bool | m_bHitIntervention |
Has this profile hit an intervention? | |
bool | m_bHitCoast |
Has this profile hit a coastline? | |
bool | m_bTooShort |
Is this profile too short? | |
bool | m_bTruncated |
Has this profile been truncated? | |
bool | m_bHitAnotherProfile |
Has this profile hit another profile? | |
bool | m_bIntervention |
Is this an intervention profile? | |
int | m_nCoast |
The coast from which this profile projects. | |
int | m_nCoastPoint |
The coastline point at which this profile hits the coast (not necessarily coincident wih the profile start cell) | |
int | m_nCoastID |
The this-coast ID of the profile. | |
int | m_nGlobalID |
The global ID of the profile. | |
double | m_dDeepWaterWaveHeight |
The wave height at the end of the profile. | |
double | m_dDeepWaterWaveAngle |
The wave orientation at the end of the profile. | |
double | m_dDeepWaterWavePeriod |
The wave period at the end of the profile. | |
CGeom2DIPoint | PtiStart |
The on-coast start point of the profile in grid CRS. | |
CGeom2DIPoint | PtiEnd |
The seaward end point of the profile in grid CRS. | |
CGeomProfile * | m_pUpCoastAdjacentProfile |
Pointer to the adjacent up-coast profile (may be an invalid profile) | |
CGeomProfile * | m_pDownCoastAdjacentProfile |
Pointer to the adjacent down-coast profile (may be an invalid profile) | |
vector< CGeom2DIPoint > | m_VCellInProfile |
In the grid CRS, the integer coordinates of the cells 'under' this profile, point zero is the same as 'cell marked as coastline' in coast object. | |
vector< CGeom2DPoint > | m_VCellInProfileExtCRS |
In external CRS, the coords of cells 'under' this profile. | |
Additional Inherited Members | |
![]() | |
void | Display (void) override |
Instantiates the pure virtual function in the abstract parent class, so that CGeomLine is not an abstract class. | |
![]() | |
CA2DShape (void) | |
Constructor. | |
virtual | ~CA2DShape (void) |
Destructor. | |
void | Clear (void) |
Clears this 2D shape. | |
![]() | |
vector< CGeom2DPoint > | m_VPoints |
The points which comprise the float-coordinate 2D shape. | |
Geometry class used to represent coast profile objects.
TODO 001 This is a more detailed description of the CGeomProfile class.
|
explicit |
Constructor with initialization list, requires one parameter (the coast point at which the profile starts)
Definition at line 44 of file profile.cpp.
Referenced by pGetDownCoastAdjacentProfile(), pGetUpCoastAdjacentProfile(), SetDownCoastAdjacentProfile(), and SetUpCoastAdjacentProfile().
|
override |
Destructor.
Definition at line 70 of file profile.cpp.
void CGeomProfile::AppendCellInProfile | ( | CGeom2DIPoint const * | pPti | ) |
Appends a cell to the profile.
Definition at line 484 of file profile.cpp.
Referenced by CSimulation::nLocateAndCreateGridEdgeProfile().
void CGeomProfile::AppendCellInProfile | ( | int const | nX, |
int const | nY ) |
Appends a cell to the profile (overloaded version)
Definition at line 491 of file profile.cpp.
void CGeomProfile::AppendCellInProfileExtCRS | ( | CGeom2DPoint const * | pPt | ) |
Appends a cell (specified in the external coordinate system) to the profile (overloaded version)
Definition at line 545 of file profile.cpp.
void CGeomProfile::AppendCellInProfileExtCRS | ( | double const | dX, |
double const | dY ) |
Appends a cell (specified in the external coordinate system) to the profile.
Definition at line 538 of file profile.cpp.
Referenced by CSimulation::nLocateAndCreateGridEdgeProfile().
void CGeomProfile::AppendPointInProfile | ( | CGeom2DPoint const * | pPt | ) |
Appends a point to the profile (overloaded version)
Definition at line 305 of file profile.cpp.
void CGeomProfile::AppendPointInProfile | ( | double const | dNewX, |
double const | dNewY ) |
Appends a point to the profile.
Definition at line 299 of file profile.cpp.
Referenced by CSimulation::MergeProfilesAtFinalLineSegments(), CSimulation::nLocateAndCreateGridEdgeProfile(), and CSimulation::TruncateProfileAndAppendNew().
bool CGeomProfile::bCShoreProblem | ( | void | ) | const |
Returns the switch which indicates whether this profile has a CShore problem.
Definition at line 141 of file profile.cpp.
Referenced by CSimulation::bWriteVectorGISFile().
bool CGeomProfile::bEndOfCoast | ( | void | ) | const |
Returns the switch to indicate whether this is an end-of-coast profile.
Definition at line 129 of file profile.cpp.
Referenced by CSimulation::bWriteVectorGISFile(), CSimulation::CreateRasterizedProfile(), CSimulation::InterpolateWavePropertiesBetweenProfiles(), CSimulation::MarkProfilesOnGrid(), CSimulation::nCreateAllPolygons(), CSimulation::nDoAllPropagateWaves(), and CRWCoast::pGetDownCoastProfileNotIncLastProfile().
bool CGeomProfile::bHitAnotherProfile | ( | void | ) | const |
Returns the switch which indicates whether this profile hits another profile badly.
Definition at line 213 of file profile.cpp.
Referenced by CSimulation::bWriteVectorGISFile().
bool CGeomProfile::bHitCoast | ( | void | ) | const |
Returns the switch which indicates whether this profile has hit a coast.
Definition at line 177 of file profile.cpp.
Referenced by CSimulation::bWriteVectorGISFile().
bool CGeomProfile::bHitIntervention | ( | void | ) | const |
Returns the switch which indicates whether this profile has hit an intervention.
Definition at line 165 of file profile.cpp.
Referenced by CSimulation::bWriteVectorGISFile().
bool CGeomProfile::bHitLand | ( | void | ) | const |
Returns the switch which indicates whether this profile has hit land.
Definition at line 153 of file profile.cpp.
Referenced by CSimulation::bWriteVectorGISFile().
bool CGeomProfile::bInsertIntersection | ( | double const | dX, |
double const | dY, | ||
int const | nSeg ) |
Inserts an intersection into the profile.
Definition at line 311 of file profile.cpp.
Referenced by CSimulation::nInsertPointIntoProfilesIfNeededThenUpdate().
bool CGeomProfile::bIsIntervention | ( | void | ) | const |
Returns true if this is an intervention profile.
Definition at line 620 of file profile.cpp.
Referenced by CSimulation::CheckForIntersectingProfiles(), and CSimulation::nCreateProfile().
bool CGeomProfile::bIsPointInProfile | ( | double const | dX, |
double const | dY ) |
Removes a line segment from the profile.
Queries the profile: is the given point a profile point?
Definition at line 376 of file profile.cpp.
Referenced by CSimulation::CheckForIntersectingProfiles().
bool CGeomProfile::bIsPointInProfile | ( | double const | dX, |
double const | dY, | ||
int & | nPoint ) |
Queries the profile: is the given point a profile point? If so, then it also returns the number of the point in the profile.
Definition at line 389 of file profile.cpp.
bool CGeomProfile::bOKIncStartAndEndOfCoast | ( | void | ) | const |
Returns true if this is a problem-free profile (however it could be a start-of-coast or an end-of-coast profile)
Definition at line 254 of file profile.cpp.
Referenced by CSimulation::bWriteVectorGISFile(), CSimulation::InterpolateWavePropertiesBetweenProfiles(), CSimulation::ModifyBreakingWavePropertiesWithinShadowZoneToCoastline(), CSimulation::nCalcPotentialPlatformErosionBetweenProfiles(), CSimulation::nCalcPotentialPlatformErosionOnProfile(), CSimulation::nCalcWavePropertiesOnProfile(), and CSimulation::nCreateAllPolygons().
bool CGeomProfile::bProfileOK | ( | void | ) | const |
Returns true if this is a problem-free profile, and is not a start-of-coast or an end-of-coast profile.
Definition at line 219 of file profile.cpp.
Referenced by CSimulation::nCheckAllProfiles(), and CSimulation::nDoPolygonSharedBoundaries().
bool CGeomProfile::bProfileOKIncTruncated | ( | void | ) | const |
Returns true if this is a problem-free profile, and is not a start-of-coast or an end-of-coast profile. But it can be a truncated profile.
Definition at line 237 of file profile.cpp.
Referenced by CSimulation::CheckForIntersectingProfiles().
bool CGeomProfile::bStartOfCoast | ( | void | ) | const |
Returns the switch to indicate whether this is a start-of-coast profile.
Definition at line 117 of file profile.cpp.
Referenced by CSimulation::bWriteVectorGISFile(), CSimulation::CreateRasterizedProfile(), CSimulation::MarkProfilesOnGrid(), CSimulation::nCreateAllPolygons(), and CSimulation::nDoAllPropagateWaves().
bool CGeomProfile::bTooShort | ( | void | ) | const |
Returns the switch which indicates whether this profile is too short to be useful.
Definition at line 189 of file profile.cpp.
bool CGeomProfile::bTruncated | ( | void | ) | const |
Returns the switch which indicates whether this profile is truncated.
Definition at line 201 of file profile.cpp.
double CGeomProfile::dGetProfileDeepWaterWaveAngle | ( | void | ) | const |
Returns the deep-water wave orientation for this profile.
Definition at line 602 of file profile.cpp.
Referenced by CSimulation::nCalcWavePropertiesOnProfile(), and CSimulation::nSetAllCoastpointDeepWaterWaveValues().
double CGeomProfile::dGetProfileDeepWaterWaveHeight | ( | void | ) | const |
Returns the deep-water wave height for this profile.
Definition at line 590 of file profile.cpp.
Referenced by CSimulation::nCalcWavePropertiesOnProfile(), and CSimulation::nSetAllCoastpointDeepWaterWaveValues().
double CGeomProfile::dGetProfileDeepWaterWavePeriod | ( | void | ) | const |
Returns the deep-water wave Period for this profile.
Definition at line 614 of file profile.cpp.
Referenced by CSimulation::nCalcWavePropertiesOnProfile(), and CSimulation::nSetAllCoastpointDeepWaterWaveValues().
int CGeomProfile::nGetCellGivenDepth | ( | CGeomRasterGrid const * | pGrid, |
double const | dDepthIn ) |
Returns the index of the cell on this profile which has a sea depth which is just less than a given depth. If every cell on the profile has a sea depth which is less than the given depth it returns INT_NODATA.
Definition at line 552 of file profile.cpp.
Referenced by CSimulation::nDoUnconsDepositionOnPolygon(), and CSimulation::nDoUnconsErosionOnPolygon().
int CGeomProfile::nGetCoastID | ( | void | ) | const |
Returns the profile's coast ID.
Definition at line 75 of file profile.cpp.
Referenced by CSimulation::bWriteProfileData(), CSimulation::CheckForIntersectingProfiles(), CSimulation::CreateRasterizedProfile(), CSimulation::MarkProfilesOnGrid(), CSimulation::nCalcPotentialPlatformErosionBetweenProfiles(), CSimulation::nCalcPotentialPlatformErosionOnProfile(), CSimulation::nCalcWavePropertiesOnProfile(), CSimulation::nCheckAllProfiles(), CSimulation::nCreateAllPolygons(), CSimulation::nCreateProfile(), CSimulation::nGetThisProfileElevationsForCShore(), CSimulation::nInsertPointIntoProfilesIfNeededThenUpdate(), CSimulation::nLocateAndCreateGridEdgeProfile(), CSimulation::nSaveParProfile(), and CSimulation::nSaveProfile().
int CGeomProfile::nGetCoastPoint | ( | void | ) | const |
Returns the coast point at which the profile starts.
Definition at line 87 of file profile.cpp.
Referenced by CSimulation::InterpolateWavePropertiesBetweenProfiles(), CSimulation::ModifyBreakingWavePropertiesWithinShadowZoneToCoastline(), CSimulation::nCalcPotentialPlatformErosionBetweenProfiles(), CSimulation::nCalcPotentialPlatformErosionOnProfile(), CSimulation::nCalcWavePropertiesOnProfile(), CSimulation::nCreateAllPolygons(), CSimulation::nDoUnconsDepositionOnPolygon(), CSimulation::nDoUnconsErosionOnPolygon(), and CSimulation::nSetAllCoastpointDeepWaterWaveValues().
int CGeomProfile::nGetGlobalID | ( | void | ) | const |
Returns the profile's global ID.
Definition at line 81 of file profile.cpp.
Referenced by CSimulation::nCreateProfile(), and CSimulation::nLocateAndCreateGridEdgeProfile().
int CGeomProfile::nGetNumCellsInProfile | ( | void | ) | const |
Returns the number of cells in the profile.
Definition at line 525 of file profile.cpp.
Referenced by CSimulation::ModifyBreakingWavePropertiesWithinShadowZoneToCoastline(), CSimulation::nCalcPotentialPlatformErosionBetweenProfiles(), CSimulation::nCalcPotentialPlatformErosionOnProfile(), CSimulation::nCalcWavePropertiesOnProfile(), CSimulation::nCreateAllPolygons(), CSimulation::nDoUnconsDepositionOnPolygon(), and CSimulation::nDoUnconsErosionOnPolygon().
int CGeomProfile::nGetProfileSize | ( | void | ) | const |
Returns the number of points in the profile.
Definition at line 350 of file profile.cpp.
Referenced by CSimulation::bWriteVectorGISFile(), CSimulation::MarkProfilesOnGrid(), CSimulation::MergeProfilesAtFinalLineSegments(), CSimulation::nCalcPotentialPlatformErosionOnProfile(), CSimulation::nCheckAllProfiles(), and CSimulation::nCreateAllPolygons().
CGeomProfile * CGeomProfile::pGetDownCoastAdjacentProfile | ( | void | ) | const |
CGeomProfile * CGeomProfile::pGetUpCoastAdjacentProfile | ( | void | ) | const |
Definition at line 468 of file profile.cpp.
Referenced by CRWCoast::pGetUpCoastProfile().
CGeom2DPoint * CGeomProfile::pPtGetPointInProfile | ( | int const | n | ) |
Returns a single point in the profile.
Definition at line 357 of file profile.cpp.
Referenced by CSimulation::bWriteVectorGISFile(), CSimulation::CreateRasterizedProfile(), CSimulation::nCalcPotentialPlatformErosionOnProfile(), CSimulation::nCheckAllProfiles(), CSimulation::nCreateAllPolygons(), and CSimulation::nDoPolygonSharedBoundaries().
CGeom2DIPoint * CGeomProfile::pPtiGetCellInProfile | ( | int const | n | ) |
Returns a single cell in the profile.
Definition at line 511 of file profile.cpp.
Referenced by CSimulation::ModifyBreakingWavePropertiesWithinShadowZoneToCoastline(), CSimulation::nCalcWavePropertiesOnProfile(), CSimulation::nCreateAllPolygons(), CSimulation::nDoUnconsDepositionOnPolygon(), and CSimulation::nDoUnconsErosionOnPolygon().
CGeom2DIPoint * CGeomProfile::pPtiGetEndPoint | ( | void | ) |
Returns a pointer to the location of the cell (grid CRS) on which the profile ends.
Definition at line 105 of file profile.cpp.
Referenced by CSimulation::nCreateAllPolygons().
CGeom2DIPoint * CGeomProfile::pPtiGetLastCellInProfile | ( | void | ) |
Returns the last cell in the profile.
Definition at line 518 of file profile.cpp.
CGeom2DIPoint * CGeomProfile::pPtiGetStartPoint | ( | void | ) |
Returns a pointer to the location of the cell (grid CRS) on which the profile starts.
Definition at line 93 of file profile.cpp.
Referenced by CSimulation::CreateRasterizedProfile(), and CSimulation::nCreateAllPolygons().
vector< CGeom2DIPoint > * CGeomProfile::pPtiVGetCellsInProfile | ( | void | ) |
Returns all cells in the profile.
Definition at line 504 of file profile.cpp.
Referenced by CSimulation::nCalcPotentialPlatformErosionBetweenProfiles(), CSimulation::nCalcPotentialPlatformErosionOnProfile(), and CSimulation::nGetThisProfileElevationsForCShore().
vector< CGeom2DPoint > CGeomProfile::PtVGetThisPointAndAllAfter | ( | int const | nStart | ) |
Returns a given point from the profile, and all points after this.
Definition at line 363 of file profile.cpp.
Referenced by CSimulation::TruncateOneProfileRetainOtherProfile().
void CGeomProfile::SetCShoreProblem | ( | bool const | bFlag | ) |
Sets a switch to indicate whether this profile has a CShore problem.
Definition at line 135 of file profile.cpp.
Referenced by CSimulation::nDoAllPropagateWaves().
void CGeomProfile::SetDownCoastAdjacentProfile | ( | CGeomProfile * | pProfile | ) |
Definition at line 473 of file profile.cpp.
Referenced by CSimulation::nCreateAllProfiles().
void CGeomProfile::SetEndOfCoast | ( | bool const | bFlag | ) |
Sets a switch to indicate whether this is an end-of-coast profile.
Definition at line 123 of file profile.cpp.
Referenced by CSimulation::nLocateAndCreateGridEdgeProfile().
void CGeomProfile::SetEndPoint | ( | CGeom2DIPoint const * | pPtiEnd | ) |
Sets the the location of the cell (grid CRS) on which the profile ends.
Definition at line 99 of file profile.cpp.
Referenced by CSimulation::nLocateAndCreateGridEdgeProfile().
void CGeomProfile::SetHitAnotherProfile | ( | bool const | bFlag | ) |
Sets a switch which indicates whether this profile hits another profile badly.
Definition at line 207 of file profile.cpp.
Referenced by CSimulation::CreateRasterizedProfile().
void CGeomProfile::SetHitCoast | ( | bool const | bFlag | ) |
Sets a switch which indicates whether this profile has hit a coast.
Definition at line 171 of file profile.cpp.
Referenced by CSimulation::CreateRasterizedProfile().
void CGeomProfile::SetHitIntervention | ( | bool const | bFlag | ) |
Sets a switch which indicates whether this profile has hit an intervention.
Definition at line 159 of file profile.cpp.
Referenced by CSimulation::CreateRasterizedProfile().
void CGeomProfile::SetHitLand | ( | bool const | bFlag | ) |
Sets a switch which indicates whether this profile has hit land.
Definition at line 147 of file profile.cpp.
Referenced by CSimulation::CreateRasterizedProfile().
void CGeomProfile::SetPointInProfile | ( | int const | nPoint, |
double const | dNewX, | ||
double const | dNewY ) |
Sets a single point in the profile.
Definition at line 292 of file profile.cpp.
Referenced by CSimulation::MergeProfilesAtFinalLineSegments().
void CGeomProfile::SetPointsInProfile | ( | vector< CGeom2DPoint > const * | VNewPoints | ) |
Sets all points in the profile.
Definition at line 286 of file profile.cpp.
Referenced by CSimulation::nCreateProfile().
void CGeomProfile::SetProfileDeepWaterWaveAngle | ( | double const | dWaveAngle | ) |
Sets the deep-water wave orientation for this profile.
Definition at line 596 of file profile.cpp.
Referenced by CSimulation::nLocateAndCreateGridEdgeProfile().
void CGeomProfile::SetProfileDeepWaterWaveHeight | ( | double const | dWaveHeight | ) |
Sets the deep-water wave height for this profile.
Definition at line 584 of file profile.cpp.
Referenced by CSimulation::nLocateAndCreateGridEdgeProfile().
void CGeomProfile::SetProfileDeepWaterWavePeriod | ( | double const | dWavePeriod | ) |
Sets the deep-water wave Period for this profile.
Definition at line 608 of file profile.cpp.
Referenced by CSimulation::nLocateAndCreateGridEdgeProfile().
void CGeomProfile::SetStartOfCoast | ( | bool const | bFlag | ) |
Sets a switch to indicate whether this is a start-of-coast profile.
Definition at line 111 of file profile.cpp.
Referenced by CSimulation::nLocateAndCreateGridEdgeProfile().
void CGeomProfile::SetTooShort | ( | bool const | bFlag | ) |
Sets a switch which indicates whether this profile is too short to be useful.
Definition at line 183 of file profile.cpp.
Referenced by CSimulation::CreateRasterizedProfile().
void CGeomProfile::SetTruncated | ( | bool const | bFlag | ) |
Sets a switch which indicates whether this profile is truncated.
Definition at line 195 of file profile.cpp.
Referenced by CSimulation::CreateRasterizedProfile().
void CGeomProfile::SetUpCoastAdjacentProfile | ( | CGeomProfile * | pProfile | ) |
Definition at line 463 of file profile.cpp.
Referenced by CSimulation::nCreateAllProfiles().
void CGeomProfile::TruncateProfile | ( | int const | nSize | ) |
Truncates the profile.
Definition at line 330 of file profile.cpp.
Referenced by CSimulation::TruncateProfileAndAppendNew().
|
private |
Has this profile encountered a CShore problem?
Definition at line 46 of file profile.h.
Referenced by bCShoreProblem(), bOKIncStartAndEndOfCoast(), bProfileOK(), bProfileOKIncTruncated(), CGeomProfile(), and SetCShoreProblem().
|
private |
Is this an end-of-coast profile?
Definition at line 43 of file profile.h.
Referenced by bEndOfCoast(), bProfileOK(), bProfileOKIncTruncated(), CGeomProfile(), and SetEndOfCoast().
|
private |
Has this profile hit another profile?
Definition at line 64 of file profile.h.
Referenced by bHitAnotherProfile(), bOKIncStartAndEndOfCoast(), bProfileOK(), bProfileOKIncTruncated(), CGeomProfile(), and SetHitAnotherProfile().
|
private |
Has this profile hit a coastline?
Definition at line 55 of file profile.h.
Referenced by bHitCoast(), bOKIncStartAndEndOfCoast(), bProfileOK(), bProfileOKIncTruncated(), CGeomProfile(), and SetHitCoast().
|
private |
Has this profile hit an intervention?
Definition at line 52 of file profile.h.
Referenced by bHitIntervention(), bOKIncStartAndEndOfCoast(), bProfileOK(), bProfileOKIncTruncated(), CGeomProfile(), and SetHitIntervention().
|
private |
Has this profile hit land?
Definition at line 49 of file profile.h.
Referenced by bHitLand(), bOKIncStartAndEndOfCoast(), bProfileOK(), bProfileOKIncTruncated(), CGeomProfile(), and SetHitLand().
|
private |
Is this an intervention profile?
Definition at line 67 of file profile.h.
Referenced by bIsIntervention(), and CGeomProfile().
|
private |
Is this a start-of-coast profile?
Definition at line 40 of file profile.h.
Referenced by bProfileOK(), bProfileOKIncTruncated(), bStartOfCoast(), CGeomProfile(), and SetStartOfCoast().
|
private |
Is this profile too short?
Definition at line 58 of file profile.h.
Referenced by bOKIncStartAndEndOfCoast(), bProfileOK(), bProfileOKIncTruncated(), bTooShort(), CGeomProfile(), and SetTooShort().
|
private |
Has this profile been truncated?
Definition at line 61 of file profile.h.
Referenced by bOKIncStartAndEndOfCoast(), bProfileOK(), bTruncated(), CGeomProfile(), and SetTruncated().
|
private |
The wave orientation at the end of the profile.
Definition at line 85 of file profile.h.
Referenced by CGeomProfile(), dGetProfileDeepWaterWaveAngle(), and SetProfileDeepWaterWaveAngle().
|
private |
The wave height at the end of the profile.
Definition at line 82 of file profile.h.
Referenced by CGeomProfile(), dGetProfileDeepWaterWaveHeight(), and SetProfileDeepWaterWaveHeight().
|
private |
The wave period at the end of the profile.
Definition at line 88 of file profile.h.
Referenced by CGeomProfile(), dGetProfileDeepWaterWavePeriod(), and SetProfileDeepWaterWavePeriod().
|
private |
The coast from which this profile projects.
Definition at line 70 of file profile.h.
Referenced by CGeomProfile().
|
private |
The this-coast ID of the profile.
Definition at line 76 of file profile.h.
Referenced by CGeomProfile(), and nGetCoastID().
|
private |
The coastline point at which this profile hits the coast (not necessarily coincident wih the profile start cell)
Definition at line 73 of file profile.h.
Referenced by CGeomProfile(), and nGetCoastPoint().
|
private |
The global ID of the profile.
Definition at line 79 of file profile.h.
Referenced by CGeomProfile(), and nGetGlobalID().
|
private |
Pointer to the adjacent down-coast profile (may be an invalid profile)
Definition at line 100 of file profile.h.
Referenced by CGeomProfile(), pGetDownCoastAdjacentProfile(), and SetDownCoastAdjacentProfile().
|
private |
Pointer to the adjacent up-coast profile (may be an invalid profile)
Definition at line 97 of file profile.h.
Referenced by CGeomProfile(), pGetUpCoastAdjacentProfile(), and SetUpCoastAdjacentProfile().
|
private |
In the grid CRS, the integer coordinates of the cells 'under' this profile, point zero is the same as 'cell marked as coastline' in coast object.
Definition at line 103 of file profile.h.
Referenced by AppendCellInProfile(), AppendCellInProfile(), nGetCellGivenDepth(), nGetNumCellsInProfile(), pPtiGetCellInProfile(), pPtiGetLastCellInProfile(), and pPtiVGetCellsInProfile().
|
private |
In external CRS, the coords of cells 'under' this profile.
Definition at line 107 of file profile.h.
Referenced by AppendCellInProfileExtCRS(), and AppendCellInProfileExtCRS().
|
private |
The seaward end point of the profile in grid CRS.
Definition at line 94 of file profile.h.
Referenced by CGeomProfile(), pPtiGetEndPoint(), and SetEndPoint().
|
private |
The on-coast start point of the profile in grid CRS.
Definition at line 91 of file profile.h.
Referenced by CGeomProfile(), and pPtiGetStartPoint().