|
CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
|
Geometry class used to represent 2D vector line objects. More...
#include <line.h>
Inherits CA2DShape.
Inherited by CGeomMultiLine.
Public Member Functions | |
| 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 uninitialised 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. | |
Public Member Functions inherited from CA2DShape | |
| 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 | |
| void | Display (void) override |
| Instantiates the pure virtual function in the abstract parent class, so that CGeomLine is not an abstract class. | |
Protected Member Functions inherited from CA2DShape | |
| CA2DShape (void) | |
| Constructor. | |
| virtual | ~CA2DShape (void) |
| Destructor. | |
Additional Inherited Members | |
Protected Attributes inherited from CA2DShape | |
| vector< CGeom2DPoint > | m_VPoints |
| The points which comprise the float-coordinate 2D shape. | |
Geometry class used to represent 2D vector line objects.
TODO 001 This is a more detailed description of the CGeomLine class.
| CGeomLine::CGeomLine | ( | CGeom2DPoint const * | pPt1, |
| CGeom2DPoint const * | pPt2 ) |
|
explicit |
| double CGeomLine::dGetXAt | ( | int const | n | ) |
Returns the X value at a given place in the line.
Definition at line 54 of file line.cpp.
Referenced by CSimulation::bWriteVectorGISFile(), CSimulation::LSmoothCoastRunningMean(), CSimulation::LSmoothCoastSavitzkyGolay(), and CSimulation::nValidateCliffToeDirection().
| double CGeomLine::dGetYAt | ( | int const | n | ) |
Returns the Y value at a given place in the line.
Definition at line 60 of file line.cpp.
Referenced by CSimulation::bWriteVectorGISFile(), CSimulation::LSmoothCoastRunningMean(), CSimulation::LSmoothCoastSavitzkyGolay(), and CSimulation::nValidateCliffToeDirection().
|
overrideprotectedvirtual |
| CGeom2DPoint * CGeomLine::pPtGetAt | ( | int const | n | ) |
Returns the point at a given place in the line.
Definition at line 66 of file line.cpp.
Referenced by CSimulation::LSmoothCoastRunningMean(), and CSimulation::LSmoothCoastSavitzkyGolay().