te::vp::SubdividerTilling Class Reference

Algorithm to help controlling creating and iterating in a tile. More...

#include <SubdividerTilling.h>

Public Types

enum  SplitLinePosition {
  SplitLinePosition::TOP, SplitLinePosition::BOTTOM, SplitLinePosition::LEFT, SplitLinePosition::RIGHT,
  SplitLinePosition::MIDDLE_VERTICAL, SplitLinePosition::MIDDLE_HORIZONTAL
}
 

Public Member Functions

std::size_t getNumColumns () const
 Returns the number of columns of the tilling. More...
 
std::size_t getNumRows () const
 Returns the number of rows of the tilling. More...
 
std::size_t getNumTiles () const
 Returns the number of tiles of the tilling. More...
 
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. More...
 
te::gm::Envelope getTile (std::size_t column, std::size_t row) const
 Returns the tile located in the given row and column. More...
 
std::size_t getTileColumn (const te::gm::Coord2D &coord) const
 Find the tile row index where the given coordinate is located. More...
 
te::gm::Envelope getTileN (std::size_t i) const
 Returns the i-th tile. More...
 
std::size_t getTileRow (const te::gm::Coord2D &coord) const
 
 SubdividerTilling (const te::gm::Envelope &envelope, double resolutionX, double resolutionY)
 Constructor. More...
 
 ~SubdividerTilling ()=default
 

Static Public Member Functions

static te::gm::LineString getSplitLine (const te::gm::Envelope &tile, SplitLinePosition position)
 Returns the split line located in the given envelope and line position. More...
 

Protected Attributes

te::gm::Envelope m_envelope
 The reference envelope. More...
 
std::size_t m_numColumns
 The number of columns of the tilling. More...
 
std::size_t m_numRows
 The number of rows of the tilling. More...
 
double m_resolutionX
 The resolution of the tilling in the x-axis. More...
 
double m_resolutionY
 The resolution of the tilling in the y-axis. More...
 

Detailed Description

Algorithm to help controlling creating and iterating in a tile.

Definition at line 53 of file SubdividerTilling.h.

Member Enumeration Documentation

◆ SplitLinePosition

Enumerator
TOP 
BOTTOM 
LEFT 
RIGHT 
MIDDLE_VERTICAL 
MIDDLE_HORIZONTAL 

Definition at line 57 of file SubdividerTilling.h.

Constructor & Destructor Documentation

◆ SubdividerTilling()

te::vp::SubdividerTilling::SubdividerTilling ( const te::gm::Envelope envelope,
double  resolutionX,
double  resolutionY 
)

Constructor.

Parameters
envelopeThe envelope to be used for tilling
resolutionThe resolution of each tile Destructor

◆ ~SubdividerTilling()

te::vp::SubdividerTilling::~SubdividerTilling ( )
default

Member Function Documentation

◆ getNumColumns()

std::size_t te::vp::SubdividerTilling::getNumColumns ( ) const

Returns the number of columns of the tilling.

Returns
The number of columns of the tilling

◆ getNumRows()

std::size_t te::vp::SubdividerTilling::getNumRows ( ) const

Returns the number of rows of the tilling.

Returns
The number of rows of the tilling

◆ getNumTiles()

std::size_t te::vp::SubdividerTilling::getNumTiles ( ) const

Returns the number of tiles of the tilling.

Returns
The number of tiles of the tilling

◆ getSplitLine() [1/2]

static te::gm::LineString te::vp::SubdividerTilling::getSplitLine ( const te::gm::Envelope tile,
SplitLinePosition  position 
)
static

Returns the split line located in the given envelope and line position.

Returns
The split line located in the given envelope and position

◆ getSplitLine() [2/2]

te::gm::LineString te::vp::SubdividerTilling::getSplitLine ( std::size_t  column,
std::size_t  row,
SplitLinePosition  position 
) const

Returns the split line located in the given row, column and position.

Returns
The split line located in the given row, column and position

◆ getTile()

te::gm::Envelope te::vp::SubdividerTilling::getTile ( std::size_t  column,
std::size_t  row 
) const

Returns the tile located in the given row and column.

Returns
The tile located in the given row and column Find the tile column index where the given coordinate is located

◆ getTileColumn()

std::size_t te::vp::SubdividerTilling::getTileColumn ( const te::gm::Coord2D coord) const

Find the tile row index where the given coordinate is located.

◆ getTileN()

te::gm::Envelope te::vp::SubdividerTilling::getTileN ( std::size_t  i) const

Returns the i-th tile.

Returns
The i-th tile

◆ getTileRow()

std::size_t te::vp::SubdividerTilling::getTileRow ( const te::gm::Coord2D coord) const

Member Data Documentation

◆ m_envelope

te::gm::Envelope te::vp::SubdividerTilling::m_envelope
protected

The reference envelope.

Definition at line 130 of file SubdividerTilling.h.

◆ m_numColumns

std::size_t te::vp::SubdividerTilling::m_numColumns
protected

The number of columns of the tilling.

Definition at line 133 of file SubdividerTilling.h.

◆ m_numRows

std::size_t te::vp::SubdividerTilling::m_numRows
protected

The number of rows of the tilling.

Definition at line 134 of file SubdividerTilling.h.

◆ m_resolutionX

double te::vp::SubdividerTilling::m_resolutionX
protected

The resolution of the tilling in the x-axis.

Definition at line 131 of file SubdividerTilling.h.

◆ m_resolutionY

double te::vp::SubdividerTilling::m_resolutionY
protected

The resolution of the tilling in the y-axis.

Definition at line 132 of file SubdividerTilling.h.


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