CoastalME (Coastal Modelling Environment)
Simulates the long-term behaviour of complex coastlines
Loading...
Searching...
No Matches
line.h
Go to the documentation of this file.
1
14
15#ifndef LINE_H
16#define LINE_H
17/*===============================================================================================================================
18
19This file is part of CoastalME, the Coastal Modelling Environment.
20
21CoastalME is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
22
23This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
24
25You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
27===============================================================================================================================*/
28#include "2d_shape.h"
29
30class CGeomLine : public CA2DShape
31{
32private:
33
34protected:
35// void SetXAt(int const, double const);
36// void SetYAt(int const, double const);
37// bool bIsPresent(CGeom2DPoint*);
38
39 void Display(void) override;
40
41public:
42 CGeomLine(void);
43 CGeomLine(CGeom2DPoint const*, CGeom2DPoint const*);
44 explicit CGeomLine(int const);
45 ~CGeomLine(void) override;
46
47 double dGetXAt(int const);
48 double dGetYAt(int const);
49 CGeom2DPoint* pPtGetAt(int const);
50};
51#endif // LINE_H
52
Contains CA2DShape definitions.
CA2DShape(void)
Constructor.
Definition 2d_shape.cpp:27
Geometry class used to represent 2D point objects with floating-point coordinates.
Definition 2d_point.h:27
CGeom2DPoint * pPtGetAt(int const)
Returns the point at a given place in the line.
Definition line.cpp:72
double dGetYAt(int const)
Returns the Y value at a given place in the line.
Definition line.cpp:66
void Display(void) override
Instantiates the pure virtual function in the abstract parent class, so that CGeomLine is not an abst...
Definition line.cpp:98
double dGetXAt(int const)
Returns the X value at a given place in the line.
Definition line.cpp:60
~CGeomLine(void) override
Destructor.
Definition line.cpp:55
CGeomLine(void)
Constructor.
Definition line.cpp:34