85 errorSpot =
"Algorithm";
100 errorSpot =
"MinimumThickness";
110 errorSpot =
"MinimumArea";
120 QString msg =
"Improper format for PolygonSeeder PVL [";
121 msg += pvl.
fileName() +
"]. Location [" + errorSpot +
"]";
141 const geos::geom::Envelope *xyBoundBox) {
143 QString msg =
"Polygon did not meet the minimum area of [";
150 pow(std::max(xyBoundBox->getWidth(), xyBoundBox->getHeight()), 2.0);
152 QString msg =
"Polygon did not meet the minimum thickness ratio of [";
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
virtual ~PolygonSeeder()
Destroys the PolygonSeeder object.
Pvl InvalidInput()
This method returns a copy of the Pvl passed in by the constructor (from a def file probably) minus w...
PolygonSeeder(Pvl &pvl)
Create PolygonSeeder object.
QString Algorithm() const
The name of the algorithm, read from the Name Keyword in the PolygonSeeder Pvl passed into the constr...
Pvl * invalidInput
The Pvl passed in by the constructor minus what was used.
This class is used as the base class for all PolygonSeeder objects.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
void addKeyword(const PvlKeyword &keyword, const InsertMode mode=Append)
Add a keyword to the container.
double p_minimumThickness
The value for the 'MinimumThickness' Keyword in the PolygonSeederAlgorithm group of the Pvl that is p...
Contains multiple PvlContainers.
#define _FILEINFO_
Macro for the filename and line number.
A type of error that could only have occurred due to a mistake on the user's part (e...
A single keyword-value pair.
virtual void Parse(Pvl &pvl)
Initialize parameters in the PolygonSeeder class using a PVL specification.
Container for cube-like labels.
QString StandardTests(const geos::geom::MultiPolygon *multiPoly, const geos::geom::Envelope *polyBoundBox)
Check the polygon to see if it meets standard criteria.
double MinimumThickness()
Return the minimum allowed thickness of the polygon.
QString fileName() const
Returns the filename used to initialise the Pvl object.
double MinimumArea()
Return the minimum allowed area of the polygon.
Namespace for ISIS/Bullet specific routines.
virtual PvlGroup PluginParameters(QString grpName)
Plugin parameters.
const PolygonSeeder & operator=(const PolygonSeeder &other)
Assignment operator.
void deleteKeyword(const QString &name)
Remove a specified keyword.
double p_minimumArea
The value for the 'MinimumArea' Keyword in the PolygonSeederAlgorithm group of the Pvl that is passed...
QString p_algorithmName
The value for the 'Name' Keyword in the PolygonSeederAlgorithm group of the Pvl that is passed into t...