Go to the documentation of this file.
   26 #ifndef __TERRALIB_RASTER_INTERNAL_TILEINDEXER_H 
   27 #define __TERRALIB_RASTER_INTERNAL_TILEINDEXER_H 
   30 #include "../geometry/Point.h" 
   31 #include "../geometry/Polygon.h" 
   32 #include "../geometry/LinearRing.h" 
   33 #include "../geometry/Coord2D.h" 
   58         typedef std::vector<std::pair<unsigned int, unsigned int> > 
TileSegIndex;
 
   77                           unsigned int& firstTile, 
unsigned int& lastTile) 
const;
 
  130           return m_referencePolygon;
 
  180 #endif  // __TERRALIB_RASTER_INTERNAL_TILEINDEXER_H 
  
 
te::gm::LinearRing const  * m_withinRingPtr
 
bool addRing(const unsigned int &ri)
Update the tile index with the information of the supplied ring.
 
double m_dy
Tile resolution along "y" axis.
 
te::gm::Coord2D m_withinVtx1
 
TileIndexer(const te::gm::Polygon &pol, const double &dy)
Alternative Constructor.
 
te::gm::Coord2D m_withinVtx0
 
bool within(const te::gm::Point &geometry) const
It returns true if the given geometry is within the indexed reference polygon.
 
TileSegIndex * m_withinTileIndexPtr
 
void clear()
Clear all internal resources.
 
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
 
bool getTileIndex(const te::gm::Point &p1, const te::gm::Point &p2, unsigned int &firstTile, unsigned int &lastTile) const
Gets tile index intervals in y direction for a given segment.
 
#define TERASTEREXPORT
You can use this macro in order to export/import classes and functions from this module.
 
bool getTileIndex(const double &y, unsigned int &tileIndex) const
Gets tile index for y coordinate value.
 
TileIndexer * clone() const
Returns a clone of this instance (the caller of this method must thake the ownership of the returned ...
 
std::vector< std::pair< unsigned int, unsigned int > > TileSegIndex
 
const TileIndexer & operator=(const TileIndexer &)
Copy overload.
 
std::vector< TileSegIndex * > m_tileIndex
Each tile segments index vector.
 
const te::gm::Polygon & getPolygon() const
Returns the polygon.
 
const te::gm::Polygon & m_referencePolygon
Reference polygon.
 
An utility struct for representing 2D coordinates.
 
Polygon tile indexing class for optmized geometrical relational tests.
 
TileIndexer(const TileIndexer &)
Constructor.
 
Proxy configuration file for TerraView (see terraview_config.h).
 
void init()
Init internal variables.
 
~TileIndexer()
Destructor.
 
A LinearRing is a LineString that is both closed and simple.
 
bool withinOrTouches(const te::gm::Point &geometry) const
It returns true if the given geometry is within or touches the indexed reference polygon.
 
bool getTile(const double &y, TileSegIndex **index) const
Gets tile index.
 
A point with x and y coordinate values.