Isis 3 Programmer Reference
GridPolygonSeeder.h
Go to the documentation of this file.
1 #ifndef GridPolygonSeeder_h
2 #define GridPolygonSeeder_h
3 
26 #include "geos/geom/Point.h"
27 #include "geos/geom/MultiPolygon.h"
28 
29 #include "PolygonSeeder.h"
30 
31 namespace Isis {
32  class Pvl;
33 
65  public:
66  GridPolygonSeeder(Pvl &pvl);
67 
69  virtual ~GridPolygonSeeder() {};
70 
71  std::vector<geos::geom::Point *> Seed(const geos::geom::MultiPolygon *mp);
72 
73  bool SubGrid() {
74  return p_subGrid;
75  }
76  virtual PvlGroup PluginParameters(QString grpName);
77 
78  protected:
79  virtual void Parse(Pvl &pvl);
80 
81  private:
82  std::vector<geos::geom::Point *> SeedGrid(const geos::geom::MultiPolygon *mp);
83 
84  std::vector<geos::geom::Point *> SeedSubGrid(const geos::geom::MultiPolygon *mp);
85 
86 
87  geos::geom::Point *CheckSubGrid(const geos::geom::MultiPolygon &, const double &,
88  const double &, const int &);
89 
90  double p_Xspacing;
91  double p_Yspacing;
92  bool p_subGrid;
93  };
94 };
95 
96 #endif
virtual void Parse(Pvl &pvl)
Parse the GridPolygonSeeder spicific parameters from the PVL.
virtual PvlGroup PluginParameters(QString grpName)
Plugin parameters.
This class is used as the base class for all PolygonSeeder objects.
Definition: PolygonSeeder.h:63
Seed points using a grid.
virtual ~GridPolygonSeeder()
Destructor.
Container for cube-like labels.
Definition: Pvl.h:135
geos::geom::Point * CheckSubGrid(const geos::geom::MultiPolygon &, const double &, const double &, const int &)
This method is used to search for a valid point, on the polygon, within the square whose center is de...
GridPolygonSeeder(Pvl &pvl)
Construct a GridPolygonSeeder algorithm.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
std::vector< geos::geom::Point * > Seed(const geos::geom::MultiPolygon *mp)
Seed a polygon with points.
std::vector< geos::geom::Point * > SeedSubGrid(const geos::geom::MultiPolygon *mp)
This method works a lot like SeedGrid, except around the edges of known polygons. ...