CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
|
Geometry class used to represent 2D vector integer line objects. More...
#include <i_line.h>
Inherits CA2DIShape.
Public Member Functions | |
CGeomILine (void) | |
Constructor. | |
~CGeomILine (void) override | |
Destructor. | |
bool | bIsPresent (int const, int const) |
Returns true if the point is present in the line. | |
![]() | |
CGeom2DIPoint & | operator[] (int const) |
Returns one integer point from the vector which represents this 2D shape. | |
CGeom2DIPoint & | Back (void) |
Returns the last integer point from the vector which represents this 2D shape. | |
vector< CGeom2DIPoint > * | pPtiVGetPoints (void) |
Returns the address of the vector which represents this 2D shape. | |
void | Resize (const int) |
Resizes the vector which represents this 2D shape. | |
int | nGetSize (void) const |
Returns the number of integer point in the vector which represents this 2D shape. | |
void | Append (CGeom2DIPoint const *) |
Appends a new integer point to the vector which represents this 2D shape. | |
void | Append (int const, int const) |
Appends a new integer point to the vector which represents this 2D shape. | |
void | AppendIfNotAlready (int const, int const) |
Appends a new integer point to the vector which represents this 2D shape, but only if the point is not already present. | |
Protected Member Functions | |
void | Display (void) override |
Instantiates the pure virtual function in the abstract parent class, so that CGeomILine is not an abstract class. | |
![]() | |
CA2DIShape (void) | |
Constructor, no parameters. | |
virtual | ~CA2DIShape (void) |
Destructor. | |
void | Clear (void) |
Clears the vector which represents this 2D shape. | |
Additional Inherited Members | |
![]() | |
vector< CGeom2DIPoint > | m_VPoints |
The integer points which comprise the integer-coordinate 2D shape. | |
Geometry class used to represent 2D vector integer line objects.
TODO 001 This is a more detailed description of the CCGeomLine class.
CGeomILine::CGeomILine | ( | void | ) |
Constructor.
Definition at line 34 of file i_line.cpp.
|
override |
Destructor.
Definition at line 39 of file i_line.cpp.
bool CGeomILine::bIsPresent | ( | int const | nX, |
int const | nY ) |
Returns true if the point is present in the line.
Definition at line 72 of file i_line.cpp.
Referenced by CSimulation::nDoAllShadowZones().
|
overrideprotectedvirtual |
Instantiates the pure virtual function in the abstract parent class, so that CGeomILine is not an abstract class.
Implements CA2DIShape.
Definition at line 88 of file i_line.cpp.