28 #ifndef __TERRALIB_VP_INTERNAL_SUBDIVIDERTILLING_H
29 #define __TERRALIB_VP_INTERNAL_SUBDIVIDERTILLING_H
34 #include "../geometry/Envelope.h"
59 TOP, BOTTOM, LEFT, RIGHT, MIDDLE_VERTICAL, MIDDLE_HORIZONTAL
An Envelope defines a 2D rectangular region.
LineString is a curve with linear interpolation between points.
Algorithm to help controlling creating and iterating in a tile.
std::size_t getTileColumn(const te::gm::Coord2D &coord) const
Find the tile row index where the given coordinate is located.
SubdividerTilling(const te::gm::Envelope &envelope, double resolutionX, double resolutionY)
Constructor.
te::gm::LineString getSplitLine(std::size_t column, std::size_t row, SplitLinePosition position) const
Returns the split line located in the given row, column and position.
std::size_t m_numColumns
The number of columns of the tilling.
double m_resolutionX
The resolution of the tilling in the x-axis.
te::gm::Envelope getTile(std::size_t column, std::size_t row) const
Returns the tile located in the given row and column.
double m_resolutionY
The resolution of the tilling in the y-axis.
std::size_t getTileRow(const te::gm::Coord2D &coord) const
std::size_t m_numRows
The number of rows of the tilling.
~SubdividerTilling()=default
std::size_t getNumColumns() const
Returns the number of columns of the tilling.
std::size_t getNumTiles() const
Returns the number of tiles of the tilling.
static te::gm::LineString getSplitLine(const te::gm::Envelope &tile, SplitLinePosition position)
Returns the split line located in the given envelope and line position.
te::gm::Envelope getTileN(std::size_t i) const
Returns the i-th tile.
std::size_t getNumRows() const
Returns the number of rows of the tilling.
te::gm::Envelope m_envelope
The reference envelope.
An utility struct for representing 2D coordinates.
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).