QGIS API Documentation  2.9.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 92 of file pointset.h.

Constructor & Destructor Documentation

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

Definition at line 93 of file pointset.cpp.

pal::PointSet::PointSet ( PointSet ps)

Definition at line 110 of file pointset.cpp.

pal::PointSet::PointSet ( )

Definition at line 55 of file pointset.cpp.

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

Definition at line 70 of file pointset.cpp.

pal::PointSet::~PointSet ( )

Definition at line 149 of file pointset.cpp.

Member Function Documentation

CHullBox * pal::PointSet::compute_chull_bbox ( )

Definition at line 618 of file pointset.cpp.

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

Definition at line 581 of file pointset.cpp.

void pal::PointSet::deleteCoords ( )

Definition at line 157 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 170 of file pointset.cpp.

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

Definition at line 168 of file pointset.h.

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

Definition at line 979 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 910 of file pointset.cpp.

int pal::PointSet::getGeosType ( ) const

Definition at line 166 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 175 of file pointset.h.

int pal::PointSet::getNumPoints ( ) const

Definition at line 177 of file pointset.h.

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

Definition at line 190 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 216 of file pointset.cpp.

Friends And Related Function Documentation

friend class CostCalculator

Definition at line 96 of file pointset.h.

friend class FeaturePart

Definition at line 94 of file pointset.h.

friend class LabelPosition

Definition at line 95 of file pointset.h.

friend class Layer

Definition at line 98 of file pointset.h.

friend class PolygonCostCalculator

Definition at line 97 of file pointset.h.

Member Data Documentation

int* pal::PointSet::cHull

Definition at line 105 of file pointset.h.

int pal::PointSet::cHullSize

Definition at line 106 of file pointset.h.

PointSet* pal::PointSet::holeOf

Definition at line 110 of file pointset.h.

int pal::PointSet::nbPoints

Definition at line 101 of file pointset.h.

PointSet* pal::PointSet::parent

Definition at line 111 of file pointset.h.

int pal::PointSet::type

Definition at line 108 of file pointset.h.

double* pal::PointSet::x

Definition at line 102 of file pointset.h.

double pal::PointSet::xmax

Definition at line 120 of file pointset.h.

double pal::PointSet::xmin

Definition at line 119 of file pointset.h.

double* pal::PointSet::y

Definition at line 103 of file pointset.h.

double pal::PointSet::ymax

Definition at line 122 of file pointset.h.

double pal::PointSet::ymin

Definition at line 121 of file pointset.h.

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