QGIS API Documentation  2.11.0-Master
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
pal::PointSet Class Reference

#include <pointset.h>

Inheritance diagram for pal::PointSet:
Inheritance graph

Public Member Functions

 PointSet ()
 PointSet (int nbPoints, double *x, double *y)
virtual ~PointSet ()
CHullBoxcompute_chull_bbox ()
PointSetcreateProblemSpecificPointSet (double bbmin[2], double bbmax[2], bool *inside)
PointSetextractShape (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) More...
int getGeosType () const
PointSetgetHoleOf ()
 Returns NULL if this isn't a hole. More...
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)

Protected Member Functions

 PointSet (double x, double y)
 PointSet (PointSet &ps)
void deleteCoords ()

Protected Attributes

int * cHull
int cHullSize
int nbPoints
int type
double * x
double xmax
double xmin
double * y
double ymax
double ymin


class CostCalculator
class FeaturePart
class LabelPosition
class Layer
class PolygonCostCalculator

Detailed Description

Definition at line 88 of file pointset.h.

Constructor & Destructor Documentation

pal::PointSet::PointSet ( )

Definition at line 48 of file pointset.cpp.

pal::PointSet::PointSet ( int  nbPoints,
double *  x,
double *  y 

Definition at line 63 of file pointset.cpp.

pal::PointSet::~PointSet ( )

Definition at line 142 of file pointset.cpp.

pal::PointSet::PointSet ( double  x,
double  y 

Definition at line 86 of file pointset.cpp.

pal::PointSet::PointSet ( PointSet ps)

Definition at line 103 of file pointset.cpp.

Member Function Documentation

CHullBox * pal::PointSet::compute_chull_bbox ( )

Definition at line 611 of file pointset.cpp.

PointSet * pal::PointSet::createProblemSpecificPointSet ( double  bbmin[2],
double  bbmax[2],
bool *  inside 

Definition at line 574 of file pointset.cpp.

void pal::PointSet::deleteCoords ( )

Definition at line 150 of file pointset.cpp.

PointSet * pal::PointSet::extractShape ( int  nbPtSh,
int  imin,
int  imax,
int  fps,
int  fpe,
double  fptx,
double  fpty 

Definition at line 163 of file pointset.cpp.

void pal::PointSet::getBoundingBox ( double  min[2],
double  max[2] 
) const

Definition at line 140 of file pointset.h.

void pal::PointSet::getCentroid ( double &  px,
double &  py,
bool  forceInside = false 

Definition at line 847 of file pointset.cpp.

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)

pxx coordinate of the point
pyy coordinate of the points
rxpointer to x coorinates of the nearest point (can be NULL)
rypointer to y coorinates of the nearest point (can be NULL)

Definition at line 778 of file pointset.cpp.

int pal::PointSet::getGeosType ( ) const

Definition at line 138 of file pointset.h.

PointSet* pal::PointSet::getHoleOf ( )

Returns NULL if this isn't a hole.

Otherwise returns pointer to parent pointset.

Definition at line 147 of file pointset.h.

int pal::PointSet::getNumPoints ( ) const

Definition at line 149 of file pointset.h.

void pal::PointSet::getPoint ( double *  d,
double *  ad,
double  dl,
double *  px,
double *  py 

Definition at line 162 of file pointset.h.

void pal::PointSet::splitPolygons ( LinkedList< PointSet * > *  shapes_toProcess,
LinkedList< PointSet * > *  shapes_final,
double  xrm,
double  yrm,
char *  uid 

Definition at line 209 of file pointset.cpp.

Friends And Related Function Documentation

friend class CostCalculator

Definition at line 92 of file pointset.h.

friend class FeaturePart

Definition at line 90 of file pointset.h.

friend class LabelPosition

Definition at line 91 of file pointset.h.

friend class Layer

Definition at line 94 of file pointset.h.

friend class PolygonCostCalculator

Definition at line 93 of file pointset.h.

Member Data Documentation

int* pal::PointSet::cHull

Definition at line 207 of file pointset.h.

int pal::PointSet::cHullSize

Definition at line 208 of file pointset.h.

PointSet* pal::PointSet::holeOf

Definition at line 212 of file pointset.h.

int pal::PointSet::nbPoints

Definition at line 203 of file pointset.h.

PointSet* pal::PointSet::parent

Definition at line 213 of file pointset.h.

int pal::PointSet::type

Definition at line 210 of file pointset.h.

double* pal::PointSet::x

Definition at line 204 of file pointset.h.

double pal::PointSet::xmax

Definition at line 222 of file pointset.h.

double pal::PointSet::xmin

Definition at line 221 of file pointset.h.

double* pal::PointSet::y

Definition at line 205 of file pointset.h.

double pal::PointSet::ymax

Definition at line 224 of file pointset.h.

double pal::PointSet::ymin

Definition at line 223 of file pointset.h.

The documentation for this class was generated from the following files: