|
CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
|
Abstract class, used as a base class for 2D objects (line, area, etc.) More...
#include <2d_shape.h>
Inherited by CGeomCoastPolygon, and CGeomLine.
Public Member Functions | |
| 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 | AppendIfNotPrevious (double const, double const) |
| Appends a point to this 2D shape only if the point is not the same as the previous point in the 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. | |
Protected Member Functions | |
| CA2DShape (void) | |
| Constructor. | |
| virtual | ~CA2DShape (void) |
| Destructor. | |
| virtual void | Display ()=0 |
Protected Attributes | |
| vector< CGeom2DPoint > | m_VPoints |
| The points which comprise the float-coordinate 2D shape. | |
Abstract class, used as a base class for 2D objects (line, area, etc.)
Abstract class, used as a base class for 2D objects (line, area, etc.)
Definition at line 32 of file 2d_shape.h.
|
protected |
Constructor.
Definition at line 24 of file 2d_shape.cpp.
|
protectedvirtual |
Destructor.
Definition at line 29 of file 2d_shape.cpp.
| void CA2DShape::Append | ( | CGeom2DPoint const * | pPtNew | ) |
Appends a point to this 2D shape.
Definition at line 64 of file 2d_shape.cpp.
Referenced by CSimulation::DoShadowZoneAndDownDriftZone(), CSimulation::nTraceCoastLine(), CSimulation::nTraceFloodCoastLine(), CSimulation::nTraceSeawardCliffEdge(), and CSimulation::nValidateCliffToeDirection().
| void CA2DShape::Append | ( | double const | dX, |
| double const | dY ) |
Appends a point to this 2D shape.
Definition at line 70 of file 2d_shape.cpp.
| void CA2DShape::AppendIfNotPrevious | ( | double const | dX, |
| double const | dY ) |
Appends a point to this 2D shape only if the point is not the same as the previous point in the vector.
Definition at line 76 of file 2d_shape.cpp.
Referenced by CSimulation::nDoAllShadowZones().
|
protectedpure virtual |
Implemented in CGeomCoastPolygon, and CGeomLine.
| int CA2DShape::nGetSize | ( | void | ) | const |
Definition at line 53 of file 2d_shape.cpp.
Referenced by CSimulation::bWriteVectorGISFile(), CSimulation::DoShadowZoneAndDownDriftZone(), CSimulation::LSmoothCoastRunningMean(), CSimulation::LSmoothCoastSavitzkyGolay(), CSimulation::nValidateCliffToeDirection(), and CSimulation::nValidateCliffToeEdges().
| CGeom2DPoint & CA2DShape::operator[] | ( | int const | n | ) |
Operator to return one point of this 2D shape.
Definition at line 34 of file 2d_shape.cpp.
| CGeom2DPoint * CA2DShape::pPtBack | ( | void | ) |
Returns the last element of this 2D shape.
Definition at line 88 of file 2d_shape.cpp.
Referenced by CSimulation::DoShadowZoneAndDownDriftZone().
| vector< CGeom2DPoint > * CA2DShape::pPtVGetPoints | ( | void | ) |
Returns the address of the vector which represents this 2D shape.
Definition at line 127 of file 2d_shape.cpp.
Referenced by CSimulation::bCheckForIntersection().
| void CA2DShape::Resize | ( | int const | nSize | ) |
Resizes the vector which represents this 2D shape.
Definition at line 47 of file 2d_shape.cpp.
Referenced by CSimulation::LSmoothCoastSavitzkyGolay().
| void CA2DShape::Reverse | ( | void | ) |
Reverses the sequence of points in the vector which represents this 2D polygon.
Definition at line 163 of file 2d_shape.cpp.
Referenced by CSimulation::nDoAllShadowZones().
|
protected |
The points which comprise the float-coordinate 2D shape.
Definition at line 37 of file 2d_shape.h.
Referenced by Append(), Append(), AppendIfNotPrevious(), CGeomProfile::AppendPointInProfile(), CGeomProfile::AppendPointInProfile(), CGeomProfile::bInsertIntersection(), CGeomProfile::bIsPointInProfile(), CGeomProfile::bIsPointInProfile(), CGeomCoastPolygon::CGeomCoastPolygon(), CGeomLine::CGeomLine(), CGeomLine::CGeomLine(), CGeomLine::dGetXAt(), CGeomLine::dGetYAt(), CGeomCoastPolygon::nGetBoundarySize(), CGeomProfile::nGetProfileSize(), nGetSize(), operator[](), CGeomMultiLine::pGetPoints(), pPtBack(), CGeomLine::pPtGetAt(), CGeomCoastPolygon::pPtGetBoundaryPoint(), CGeomProfile::pPtGetPointInProfile(), pPtVGetPoints(), CGeomProfile::PtVGetThisPointAndAllAfter(), Resize(), Reverse(), CGeomProfile::SetPointInProfile(), CGeomProfile::SetPointsInProfile(), and CGeomProfile::TruncateProfile().