| 
    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 | 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.   | |
Protected Member Functions | |
| CA2DShape (void) | |
| Constructor.   | |
| virtual | ~CA2DShape (void) | 
| Destructor.   | |
| void | Clear (void) | 
| Clears this 2D shape.   | |
| 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 34 of file 2d_shape.h.
      
  | 
  protected | 
Constructor.
Definition at line 27 of file 2d_shape.cpp.
      
  | 
  protectedvirtual | 
Destructor.
Definition at line 32 of file 2d_shape.cpp.
| void CA2DShape::Append | ( | CGeom2DPoint const * | pPtNew | ) | 
Appends a point to this 2D shape.
Definition at line 67 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 73 of file 2d_shape.cpp.
| void CA2DShape::AppendIfNotAlready | ( | double const | dX, | 
| double const | dY ) | 
Appends a point to this 2D shape only if it isn't already in the shape vector.
Definition at line 79 of file 2d_shape.cpp.
Referenced by CSimulation::nDoAllShadowZones().
      
  | 
  protected | 
Clears this 2D shape.
Definition at line 44 of file 2d_shape.cpp.
      
  | 
  protectedpure virtual | 
Implemented in CGeomCoastPolygon, and CGeomLine.
| int CA2DShape::nGetSize | ( | void | ) | const | 
Definition at line 56 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 37 of file 2d_shape.cpp.
| CGeom2DPoint * CA2DShape::pPtBack | ( | void | ) | 
Returns the last element of this 2D shape.
Definition at line 91 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 130 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 50 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 166 of file 2d_shape.cpp.
Referenced by CSimulation::nDoAllShadowZones().
      
  | 
  protected | 
The points which comprise the float-coordinate 2D shape.
Definition at line 39 of file 2d_shape.h.
Referenced by Append(), Append(), AppendIfNotAlready(), CGeomProfile::AppendPointInProfile(), CGeomProfile::AppendPointInProfile(), CGeomProfile::bInsertIntersection(), CGeomProfile::bIsPointInProfile(), CGeomProfile::bIsPointInProfile(), CGeomCoastPolygon::CGeomCoastPolygon(), CGeomLine::CGeomLine(), CGeomLine::CGeomLine(), Clear(), 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(), CGeomMultiLine::SetPoints(), CGeomProfile::SetPointsInProfile(), and CGeomProfile::TruncateProfile().