te::gm::CellTilling Class Reference

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

#include <CellTilling.h>

Public Member Functions

 CellTilling (const te::gm::Envelope &envelope, double resolutionX, double resolutionY)
 Constructor. More...
 
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::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...
 
std::size_t getTileRow (const te::gm::Coord2D &coord) const
 
 ~CellTilling ()
 

Protected Attributes

std::unique_ptr< te::gm::Envelopem_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 48 of file CellTilling.h.

Constructor & Destructor Documentation

◆ CellTilling()

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

Constructor.

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

◆ ~CellTilling()

te::gm::CellTilling::~CellTilling ( )

Member Function Documentation

◆ getNumColumns()

std::size_t te::gm::CellTilling::getNumColumns ( ) const

Returns the number of columns of the tilling.

Returns
The number of columns of the tilling

◆ getNumRows()

std::size_t te::gm::CellTilling::getNumRows ( ) const

Returns the number of rows of the tilling.

Returns
The number of rows of the tilling

◆ getNumTiles()

std::size_t te::gm::CellTilling::getNumTiles ( ) const

Returns the number of tiles of the tilling.

Returns
The number of tiles of the tilling

◆ getTile()

te::gm::Envelope te::gm::CellTilling::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::gm::CellTilling::getTileColumn ( const te::gm::Coord2D coord) const

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

◆ getTileRow()

std::size_t te::gm::CellTilling::getTileRow ( const te::gm::Coord2D coord) const

Member Data Documentation

◆ m_envelope

std::unique_ptr<te::gm::Envelope> te::gm::CellTilling::m_envelope
protected

The reference envelope.

Definition at line 99 of file CellTilling.h.

◆ m_numColumns

std::size_t te::gm::CellTilling::m_numColumns
protected

The number of columns of the tilling.

Definition at line 102 of file CellTilling.h.

◆ m_numRows

std::size_t te::gm::CellTilling::m_numRows
protected

The number of rows of the tilling.

Definition at line 103 of file CellTilling.h.

◆ m_resolutionX

double te::gm::CellTilling::m_resolutionX
protected

The resolution of the tilling in the x-axis.

Definition at line 100 of file CellTilling.h.

◆ m_resolutionY

double te::gm::CellTilling::m_resolutionY
protected

The resolution of the tilling in the y-axis.

Definition at line 101 of file CellTilling.h.


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