QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
[legend]

Public Member Functions

 PointSet ()
 PointSet (int nbPoints, double *x, double *y)
virtual ~PointSet ()
PointSetextractShape (int nbPtSh, int imin, int imax, int fps, int fpe, double fptx, double fpty)
PointSetcreateProblemSpecificPointSet (double bbmin[2], double bbmax[2], bool *inside)
CHullBoxcompute_chull_bbox ()
double getDist (double px, double py, double *rx, double *ry)
 return the minimum distance bw this and the point (px,py)
void getCentroid (double &px, double &py, bool forceInside=false)
int getGeosType () const
void getBoundingBox (double min[2], double max[2]) const
PointSetgetHoleOf ()
 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)

Protected Member Functions

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

Protected Attributes

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

Friends

class FeaturePart
class LabelPosition
class CostCalculator
class PolygonCostCalculator
class Layer

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
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)
int pal::PointSet::getGeosType ( ) const
inline
PointSet* pal::PointSet::getHoleOf ( )
inline

returns NULL if this isn't a hole.

Otherwise returns pointer to parent pointset.

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

friend class CostCalculator
friend
friend class FeaturePart
friend
friend class LabelPosition
friend
friend class Layer
friend
friend class PolygonCostCalculator
friend

Member Data Documentation

int* pal::PointSet::cHull
protected
int pal::PointSet::cHullSize
protected
PointSet* pal::PointSet::holeOf
protected
int pal::PointSet::nbPoints
protected
PointSet* pal::PointSet::parent
protected
int pal::PointSet::type
protected
double* pal::PointSet::x
protected
double pal::PointSet::xmax
protected
double pal::PointSet::xmin
protected
double* pal::PointSet::y
protected
double pal::PointSet::ymax
protected
double pal::PointSet::ymin
protected

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