|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef ProcessPolygons_h
2 #define ProcessPolygons_h
9 #include <geos/geom/Coordinate.h>
10 #include <geos/geom/MultiPolygon.h>
11 #include <geos/geom/Polygon.h>
52 void SetStatCubes(
const QString ¶meter,
const int nsamps,
53 const int nlines,
int nbands = 1);
55 void SetStatCubes(
const QString &avgFileName,
const QString
57 const int nsamps,
const int nlines,
int nbands = 1);
61 const QString &countFileName =
"");
63 void Rasterize(std::vector<double> &samples,
64 std::vector<double> &lines,
65 std::vector<double> &values);
67 void Rasterize(std::vector<double> &samples,
68 std::vector<double> &lines,
69 int &band,
double &value);
75 void FillPolygon(
int Flag);
76 void GetPolygonCoords();
79 std::vector<double> m_sampleVertices, m_lineVertices, m_dns;
83 geos::geom::Polygon *m_imagePoly;
void Rasterize(std::vector< double > &samples, std::vector< double > &lines, std::vector< double > &values)
Definition: ProcessPolygons.cpp:44
This algorithm is designed for applications that jump around between a couple of spots in the cube wi...
Definition: BoxcarCachingAlgorithm.h:32
Definition: ProcessPolygons.h:47
File name manipulation and expansion.
Definition: FileName.h:100
ProcessPolygons()
Definition: ProcessPolygons.cpp:28
Base class for all cube processing derivatives.
Definition: Process.h:143
Manipulate and parse attributes of output cube filenames.
Definition: CubeAttribute.h:473
static geos::geom::GeometryFactory::Ptr globalFactory
Definition: PolygonTools.h:51
Buffer for containing a three dimensional section of an image.
Definition: Brick.h:45
QString baseName() const
Returns the name of the file without the path and without extensions.
Definition: FileName.cpp:145
void Finalize()
Cleans up by closing cubes and freeing memory for owned cubes.
Definition: ProcessPolygons.cpp:258
void SetIntersectAlgorithm(const bool useCenter)
Sets the algorithm for how output pixels are rasterized.
Definition: ProcessPolygons.cpp:380
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
void EndProcess()
Definition: ProcessPolygons.cpp:245
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis::Cube * AppendOutputCube(const QString &avgFileName, const QString &countFileName="")
This gives the option to append to the cube.
Definition: ProcessPolygons.cpp:275
void SetStatCubes(const QString ¶meter, const int nsamps, const int nlines, int nbands=1)
Definition: ProcessPolygons.cpp:355
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
QString extension() const
Returns the last extension of the file name.
Definition: FileName.cpp:178
Namespace for the standard library.
bool IsValidPixel(const double d)
Returns if the input pixel is valid.
Definition: SpecialPixel.h:223
void open(const QString &cfile, QString access="r")
This method will open an isis cube for reading or reading/writing.
Definition: Cube.cpp:627
QString path() const
Returns the path of the file name.
Definition: FileName.cpp:103
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16