#include <pointset.h>
 | 
|   | PointSet () | 
|   | 
|   | PointSet (int nbPoints, double *x, double *y) | 
|   | 
| virtual  | ~PointSet () | 
|   | 
| CHullBox *  | compute_chull_bbox () | 
|   | 
| bool  | containsLabelCandidate (double x, double y, double width, double height, double alpha=0) const  | 
|   | Tests whether a possible label candidate will fit completely within the shape.  More...
  | 
|   | 
| bool  | containsPoint (double x, double y) const  | 
|   | Tests whether point set contains a specified point.  More...
  | 
|   | 
| PointSet *  | extractShape (int nbPtSh, int imin, int imax, int fps, int fpe, double fptx, double fpty) | 
|   | 
| const GEOSGeometry *  | geos () const  | 
|   | Returns the point set's GEOS geometry.  More...
  | 
|   | 
| void  | getBoundingBox (double min[2], double max[2]) const  | 
|   | 
| void  | getCentroid (double &px, double &py, bool forceInside=false) const  | 
|   | 
| int  | getGeosType () const  | 
|   | 
| PointSet *  | getHoleOf () | 
|   | Returns NULL if this isn't a hole. Otherwise returns pointer to parent pointset.  More...
  | 
|   | 
| int  | getNumPoints () const  | 
|   | 
| void  | getPointByDistance (double *d, double *ad, double dl, double *px, double *py) | 
|   | Gets a point a set distance along a line geometry.  More...
  | 
|   | 
| bool  | isClosed () const  | 
|   | Returns true if pointset is closed.  More...
  | 
|   | 
| double  | length () const  | 
|   | Returns length of line geometry.  More...
  | 
|   | 
| double  | minDistanceToPoint (double px, double py, double *rx=nullptr, double *ry=nullptr) const  | 
|   | Returns the squared minimum distance between the point set geometry and the point (px,py) Optionally, the nearest point is stored in (rx,ry).  More...
  | 
|   | 
 | 
| static void  | splitPolygons (QLinkedList< PointSet * > &shapes_toProcess, QLinkedList< PointSet * > &shapes_final, double xrm, double yrm) | 
|   | Split a concave shape into several convex shapes.  More...
  | 
|   | 
- Note
 - not available in Python bindings 
 
Definition at line 68 of file pointset.h.
 
      
        
          | PointSet::PointSet  | 
          ( | 
          int  | 
          nbPoints,  | 
        
        
           | 
           | 
          double *  | 
          x,  | 
        
        
           | 
           | 
          double *  | 
          y  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
  
  
      
        
          | PointSet::PointSet  | 
          ( | 
          double  | 
          x,  | 
         
        
           | 
           | 
          double  | 
          y  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | PointSet::PointSet  | 
          ( | 
          const PointSet &  | 
          ps | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
      
        
          | CHullBox * PointSet::compute_chull_bbox  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | bool PointSet::containsLabelCandidate  | 
          ( | 
          double  | 
          x,  | 
        
        
           | 
           | 
          double  | 
          y,  | 
        
        
           | 
           | 
          double  | 
          width,  | 
        
        
           | 
           | 
          double  | 
          height,  | 
        
        
           | 
           | 
          double  | 
          alpha = 0  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
Tests whether a possible label candidate will fit completely within the shape. 
- Parameters
 - 
  
    | x | x-coordinate of label candidate  | 
    | y | y-coordinate of label candidate  | 
    | width | label width  | 
    | height | label height  | 
    | alpha | label angle  | 
  
   
- Returns
 - true if point set completely contains candidate label 
 
Definition at line 263 of file pointset.cpp.
 
 
      
        
          | bool PointSet::containsPoint  | 
          ( | 
          double  | 
          x,  | 
        
        
           | 
           | 
          double  | 
          y  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
Tests whether point set contains a specified point. 
- Parameters
 - 
  
    | x | x-coordinate of point  | 
    | y | y-coordinate of point  | 
  
   
- Returns
 - true if point set contains a specified point 
 
Definition at line 242 of file pointset.cpp.
 
 
  
  
      
        
          | void PointSet::createGeosGeom  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | void PointSet::deleteCoords  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
      
        
          | PointSet * PointSet::extractShape  | 
          ( | 
          int  | 
          nbPtSh,  | 
        
        
           | 
           | 
          int  | 
          imin,  | 
        
        
           | 
           | 
          int  | 
          imax,  | 
        
        
           | 
           | 
          int  | 
          fps,  | 
        
        
           | 
           | 
          int  | 
          fpe,  | 
        
        
           | 
           | 
          double  | 
          fptx,  | 
        
        
           | 
           | 
          double  | 
          fpty  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | const GEOSGeometry * PointSet::geos  | 
          ( | 
           | ) | 
           const | 
        
      
 
Returns the point set's GEOS geometry. 
Definition at line 818 of file pointset.cpp.
 
 
  
  
      
        
          | void pal::PointSet::getBoundingBox  | 
          ( | 
          double  | 
          min[2],  | 
         
        
           | 
           | 
          double  | 
          max[2]  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | void PointSet::getCentroid  | 
          ( | 
          double &  | 
          px,  | 
        
        
           | 
           | 
          double &  | 
          py,  | 
        
        
           | 
           | 
          bool  | 
          forceInside = false  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
 
  
  
      
        
          | int pal::PointSet::getGeosType  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
Returns NULL if this isn't a hole. Otherwise returns pointer to parent pointset. 
Definition at line 135 of file pointset.h.
 
 
  
  
      
        
          | int pal::PointSet::getNumPoints  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | void PointSet::getPointByDistance  | 
          ( | 
          double *  | 
          d,  | 
        
        
           | 
           | 
          double *  | 
          ad,  | 
        
        
           | 
           | 
          double  | 
          dl,  | 
        
        
           | 
           | 
          double *  | 
          px,  | 
        
        
           | 
           | 
          double *  | 
          py  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Gets a point a set distance along a line geometry. 
- Parameters
 - 
  
    | d | array of distances between points  | 
    | ad | cumulative total distance from pt0 to each point (ad0 = pt0->pt0)  | 
    | dl | distance to traverse along line  | 
    | px | final x coord on line  | 
    | py | final y coord on line  | 
  
   
Definition at line 779 of file pointset.cpp.
 
 
  
  
      
        
          | void PointSet::invalidateGeos  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
      
        
          | bool PointSet::isClosed  | 
          ( | 
           | ) | 
           const | 
        
      
 
Returns true if pointset is closed. 
Definition at line 849 of file pointset.cpp.
 
 
      
        
          | double PointSet::length  | 
          ( | 
           | ) | 
           const | 
        
      
 
Returns length of line geometry. 
Definition at line 826 of file pointset.cpp.
 
 
      
        
          | double PointSet::minDistanceToPoint  | 
          ( | 
          double  | 
          px,  | 
        
        
           | 
           | 
          double  | 
          py,  | 
        
        
           | 
           | 
          double *  | 
          rx = nullptr,  | 
        
        
           | 
           | 
          double *  | 
          ry = nullptr  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
Returns the squared minimum distance between the point set geometry and the point (px,py) Optionally, the nearest point is stored 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)  | 
  
   
- Returns
 - minimum distance 
 
Definition at line 693 of file pointset.cpp.
 
 
  
  
      
        
          | const GEOSPreparedGeometry * PointSet::preparedGeom  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | void PointSet::splitPolygons  | 
          ( | 
          QLinkedList< PointSet * > &  | 
          shapes_toProcess,  | 
         
        
           | 
           | 
          QLinkedList< PointSet * > &  | 
          shapes_final,  | 
         
        
           | 
           | 
          double  | 
          xrm,  | 
         
        
           | 
           | 
          double  | 
          yrm  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Split a concave shape into several convex shapes. 
Definition at line 268 of file pointset.cpp.
 
 
  
  
      
        
          | int* pal::PointSet::cHull = nullptr | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | int pal::PointSet::cHullSize | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | PointSet* pal::PointSet::holeOf = nullptr | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | GEOSGeometry* pal::PointSet::mGeos = nullptr | 
         
       
   | 
  
mutableprotected   | 
  
 
 
  
  
      
        
          | bool pal::PointSet::mOwnsGeom = false | 
         
       
   | 
  
mutableprotected   | 
  
 
 
  
  
      
        
          | int pal::PointSet::nbPoints | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | PointSet* pal::PointSet::parent = nullptr | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | double* pal::PointSet::x = nullptr | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | double pal::PointSet::xmax = std::numeric_limits<double>::lowest() | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | double pal::PointSet::xmin = std::numeric_limits<double>::max() | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | double* pal::PointSet::y = nullptr | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | double pal::PointSet::ymax = std::numeric_limits<double>::lowest() | 
         
       
   | 
  
protected   | 
  
 
 
  
  
      
        
          | double pal::PointSet::ymin = std::numeric_limits<double>::max() | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following files: