#include <pointset.h>
Public Member Functions |
| PointSet () |
| PointSet (int nbPoints, double *x, double *y) |
virtual | ~PointSet () |
CHullBox * | compute_chull_bbox () |
PointSet * | createProblemSpecificPointSet (double bbmin[2], double bbmax[2], bool *inside) |
PointSet * | extractShape (int nbPtSh, int imin, int imax, int fps, int fpe, double fptx, double fpty) |
void | getBoundingBox (double min[2], double max[2]) const |
void | getCentroid (double &px, double &py, bool forceInside=false) |
double | getDist (double px, double py, double *rx, double *ry) |
| return the minimum distance bw this and the point (px,py)
|
int | getGeosType () const |
PointSet * | getHoleOf () |
| returns NULL if this isn't a hole.
|
int | getNumPoints () const |
void | getPoint (double *d, double *ad, double dl, double *px, double *py) |
Static Public Member Functions |
static void | splitPolygons (LinkedList< PointSet * > *shapes_toProcess, LinkedList< PointSet * > *shapes_final, double xrm, double yrm, char *uid) |
Detailed Description
Definition at line 92 of file pointset.h.
Constructor & Destructor Documentation
pal::PointSet::PointSet |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
protected |
pal::PointSet::PointSet |
( |
PointSet & |
ps | ) |
|
|
protected |
pal::PointSet::PointSet |
( |
| ) |
|
pal::PointSet::PointSet |
( |
int |
nbPoints, |
|
|
double * |
x, |
|
|
double * |
y |
|
) |
| |
pal::PointSet::~PointSet |
( |
| ) |
|
|
virtual |
Member Function Documentation
CHullBox * pal::PointSet::compute_chull_bbox |
( |
| ) |
|
PointSet * pal::PointSet::createProblemSpecificPointSet |
( |
double |
bbmin[2], |
|
|
double |
bbmax[2], |
|
|
bool * |
inside |
|
) |
| |
void pal::PointSet::deleteCoords |
( |
| ) |
|
|
protected |
PointSet * pal::PointSet::extractShape |
( |
int |
nbPtSh, |
|
|
int |
imin, |
|
|
int |
imax, |
|
|
int |
fps, |
|
|
int |
fpe, |
|
|
double |
fptx, |
|
|
double |
fpty |
|
) |
| |
void pal::PointSet::getBoundingBox |
( |
double |
min[2], |
|
|
double |
max[2] |
|
) |
| const |
|
inline |
void pal::PointSet::getCentroid |
( |
double & |
px, |
|
|
double & |
py, |
|
|
bool |
forceInside = false |
|
) |
| |
double pal::PointSet::getDist |
( |
double |
px, |
|
|
double |
py, |
|
|
double * |
rx, |
|
|
double * |
ry |
|
) |
| |
return the minimum distance bw this and the point (px,py)
compute the minimum distance bw the point (px,py) and this. Optionnaly, store the nearest point in (rx,ry)
- Parameters
-
px | x coordinate of the point |
py | y coordinate of the points |
rx | pointer to x coorinates of the nearest point (can be NULL) |
ry | pointer to y coorinates of the nearest point (can be NULL) |
Definition at line 910 of file pointset.cpp.
int pal::PointSet::getGeosType |
( |
| ) |
const |
|
inline |
returns NULL if this isn't a hole.
Otherwise returns pointer to parent pointset.
Definition at line 175 of file pointset.h.
int pal::PointSet::getNumPoints |
( |
| ) |
const |
|
inline |
void pal::PointSet::getPoint |
( |
double * |
d, |
|
|
double * |
ad, |
|
|
double |
dl, |
|
|
double * |
px, |
|
|
double * |
py |
|
) |
| |
|
inline |
void pal::PointSet::splitPolygons |
( |
LinkedList< PointSet * > * |
shapes_toProcess, |
|
|
LinkedList< PointSet * > * |
shapes_final, |
|
|
double |
xrm, |
|
|
double |
yrm, |
|
|
char * |
uid |
|
) |
| |
|
static |
Friends And Related Function Documentation
Member Data Documentation
int* pal::PointSet::cHull |
|
protected |
int pal::PointSet::cHullSize |
|
protected |
int pal::PointSet::nbPoints |
|
protected |
double pal::PointSet::xmax |
|
protected |
double pal::PointSet::xmin |
|
protected |
double pal::PointSet::ymax |
|
protected |
double pal::PointSet::ymin |
|
protected |
The documentation for this class was generated from the following files:
- /tmp/buildd/qgis-2.8.2+12wheezy/src/core/pal/pointset.h
- /tmp/buildd/qgis-2.8.2+12wheezy/src/core/pal/pointset.cpp