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
12
13#ifndef LINE_H
14#define LINE_H
15/* ===============================================================================================================================
16 This file is part of CoastalME, the Coastal Modelling Environment.
17
18 CoastalME 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.
19
20 This 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.
21
22 You 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.
23===============================================================================================================================*/
24#include "2d_point.h"
25#include "2d_shape.h"
26
27class CGeomLine : public CA2DShape
28{
29 private:
30 protected:
31 // void SetXAt(int const, double const);
32 // void SetYAt(int const, double const);
33 // bool bIsPresent(CGeom2DPoint*);
34
35 void Display(void) override;
36
37 public:
38 CGeomLine(void);
39 CGeomLine(CGeom2DPoint const*, CGeom2DPoint const*);
40 explicit CGeomLine(int const);
41 ~CGeomLine(void) override;
42
43 double dGetXAt(int const);
44 double dGetYAt(int const);
45 CGeom2DPoint* pPtGetAt(int const);
46};
47#endif // LINE_H
Contains CGeom2DPoint definitions.
Contains CA2DShape definitions.
CA2DShape(void)
Constructor.
Definition 2d_shape.cpp:24
Geometry class used to represent 2D point objects with floating-point coordinates.
Definition 2d_point.h:25
CGeom2DPoint * pPtGetAt(int const)
Returns the point at a given place in the line.
Definition line.cpp:66
double dGetYAt(int const)
Returns the Y value at a given place in the line.
Definition line.cpp:60
void Display(void) override
Instantiates the pure virtual function in the abstract parent class, so that CGeomLine is not an abst...
Definition line.cpp:92
double dGetXAt(int const)
Returns the X value at a given place in the line.
Definition line.cpp:54
~CGeomLine(void) override
Destructor.
Definition line.cpp:49
CGeomLine(void)
Constructor.
Definition line.cpp:27