Isis Developer Reference
StripPolygonSeeder.h
Go to the documentation of this file.
1 #ifndef StripPolygonSeeder_h
2 #define StripPolygonSeeder_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include "geos/geom/Point.h"
11 #include "geos/geom/MultiPolygon.h"
12 #include "PolygonSeeder.h"
13 
14 namespace Isis {
15  class Pvl;
16 
52  public:
53  StripPolygonSeeder(Pvl &pvl);
54 
56  virtual ~StripPolygonSeeder() {};
57 
58  std::vector<geos::geom::Point *> Seed(const geos::geom::MultiPolygon *mp);
59 
60  virtual PvlGroup PluginParameters(QString grpName);
61 
62  protected:
63  virtual void Parse(Pvl &pvl);
64 
65  private:
66  double p_Xspacing;
67  double p_Yspacing;
68  };
69 };
70 
71 #endif
Isis::PvlObject::findGroup
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
Isis::StripPolygonSeeder::~StripPolygonSeeder
virtual ~StripPolygonSeeder()
Destructor.
Definition: StripPolygonSeeder.h:56
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
PolygonSeeder.h
Isis::PvlContainer::addKeyword
void addKeyword(const PvlKeyword &keyword, const InsertMode mode=Append)
Add a keyword to the container.
Definition: PvlContainer.cpp:202
PvlGroup.h
Isis::StripPolygonSeeder::Parse
virtual void Parse(Pvl &pvl)
Parse the StripSeeder spicific parameters from the PVL.
Definition: StripPolygonSeeder.cpp:108
Isis::PvlContainer::hasKeyword
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::globalFactory
static geos::geom::GeometryFactory::Ptr globalFactory
Definition: PolygonTools.h:51
Isis::StripPolygonSeeder::PluginParameters
virtual PvlGroup PluginParameters(QString grpName)
Plugin parameters.
Definition: StripPolygonSeeder.cpp:161
Isis::PolygonSeeder::MinimumArea
double MinimumArea()
Return the minimum allowed area of the polygon.
Definition: PolygonSeeder.cpp:195
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Isis::StripPolygonSeeder
Seed points using a grid with a staggered pattern.
Definition: StripPolygonSeeder.h:51
StripPolygonSeeder.h
Isis::PvlObject::Traverse
@ Traverse
Search child objects.
Definition: PvlObject.h:158
Isis::PolygonSeeder::MinimumThickness
double MinimumThickness()
Return the minimum allowed thickness of the polygon.
Definition: PolygonSeeder.cpp:183
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Pvl.h
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::PolygonSeeder::invalidInput
Pvl * invalidInput
The Pvl passed in by the constructor minus what was used.
Definition: PolygonSeeder.h:78
Isis::PvlContainer::fileName
QString fileName() const
Returns the filename used to initialise the Pvl object.
Definition: PvlContainer.h:232
Isis::StripPolygonSeeder::StripPolygonSeeder
StripPolygonSeeder(Pvl &pvl)
Construct a StripPolygonSeeder algorithm.
Definition: StripPolygonSeeder.cpp:27
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::PolygonSeeder::Parse
virtual void Parse(Pvl &pvl)
Initialize parameters in the PolygonSeeder class using a PVL specification.
Definition: PolygonSeeder.cpp:85
Isis::PvlContainer::deleteKeyword
void deleteKeyword(const QString &name)
Remove a specified keyword.
Definition: PvlContainer.cpp:97
Isis::StripPolygonSeeder::Seed
std::vector< geos::geom::Point * > Seed(const geos::geom::MultiPolygon *mp)
Seed a polygon with points.
Definition: StripPolygonSeeder.cpp:51
IException.h
Isis::PolygonSeeder::Algorithm
QString Algorithm() const
The name of the algorithm, read from the Name Keyword in the PolygonSeeder Pvl passed into the constr...
Definition: PolygonSeeder.cpp:172
Isis::PolygonSeeder::StandardTests
QString StandardTests(const geos::geom::MultiPolygon *multiPoly, const geos::geom::Envelope *polyBoundBox)
Check the polygon to see if it meets standard criteria.
Definition: PolygonSeeder.cpp:146
StripPolygonSeederPlugin
Isis::PolygonSeeder * StripPolygonSeederPlugin(Isis::Pvl &pvl)
Create a StripSeeder object.
Definition: StripPolygonSeeder.cpp:193
Isis::IString
Adds specific functionality to C++ strings.
Definition: IString.h:165
PolygonTools.h
Isis::PolygonSeeder
This class is used as the base class for all PolygonSeeder objects.
Definition: PolygonSeeder.h:47
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::IException::User
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126