DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
geographicgridbuilder.h
Go to the documentation of this file.
1 #ifndef GEOGRAPHICGRIDBUILDER_H
2 #define GEOGRAPHICGRIDBUILDER_H
3 
4 #include <QPointF>
5 
6 namespace displace {
7 
8 namespace graphbuilders {
9 
30 {
31 public:
33  virtual ~GeographicGridBuilder();
34 
36  virtual bool beginCreateGrid() = 0;
37 
39  virtual QPointF getNext() = 0;
40 
44  virtual bool atEnd() = 0;
45 
49  virtual bool isAtLineStart() = 0;
50 
55  virtual bool endCreateGrid() = 0;
56 };
57 
58 }
59 }
60 
61 #endif // GEOGRAPHICGRIDBUILDER_H
virtual bool beginCreateGrid()=0
Initialize the object to iterate over the loop.
Definition: decisiontreemanager.h:13
virtual QPointF getNext()=0
Calculate the next point and iterate the object state over the loop.
virtual ~GeographicGridBuilder()
Standard Destructor.
Definition: geographicgridbuilder.cpp:25
An abstract class to build a grid of points on a map, based on certain parameters.
Definition: geographicgridbuilder.h:29
virtual bool isAtLineStart()=0
Check if the loop is at the beginning of a "line" This is used to allow constrain creation for delaun...
virtual bool endCreateGrid()=0
Finalize the object when the loop is completed.
virtual bool atEnd()=0
Check if the loop is completed.