Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria3D::QuadCoo Class Reference

#include <M3DQuadCoo.h>

Public Member Functions

 QuadCoo (Maria::TileId tileId)
 
 QuadCoo (M3DIntCoord min_int_n, M3DIntCoord min_int_e, M3DIntCoord max_int_n, M3DIntCoord max_int_e, Maria::TileId quad_id)
 Construct from explicit limits and ID.
 
void init (M3DIntCoord min_int_n, M3DIntCoord min_int_e, M3DIntCoord max_int_n, M3DIntCoord max_int_e, Maria::TileId quad_id)
 
 QuadCoo (const QuadCoo &parent, int child_dir)
 
int getTreeLevel () const
 
const Maria::TileIdgetQuadId () const
 
Maria::WebMercator::IntCoord getMinIntN () const
 
Maria::WebMercator::IntCoord getMinIntE () const
 
Maria::WebMercator::IntCoord getMaxIntN () const
 
Maria::WebMercator::IntCoord getMaxIntE () const
 
Maria::WebMercator::IntCoord getCenterIntN () const
 
Maria::WebMercator::IntCoord getCenterIntE () const
 
double getMinLatitude () const
 Get minimum latitude (in degrees) of the tile.
 
double getMinLongitude () const
 Get minimum longitude (in degrees) of the tile.
 
double getMaxLatitude () const
 Get maximum latitude (in degrees) of the tile.
 
double getMaxLongitude () const
 Get maximum longitude (in degrees) of the tile.
 
double getCenterLatitude () const
 
double getCenterLongitude () const
 
BasicGeoTypes::GeoPos getSW () const
 
BasicGeoTypes::GeoPos getNE () const
 
BasicGeoTypes::GeoRect getGeoRect () const
 
double getMinX () const
 Get minimum X coordinate in Spherical Mercator (meters).
 
double getMaxX () const
 Get minimum X coordinate in Spherical Mercator (meters).
 
double getMaxY () const
 Get minimum Y coordinate in Spherical Mercator (meters).
 
double getMinY () const
 Get minimum Y coordinate in Spherical Mercator (meters).
 
bool isInsideInt (M3DIntCoord x, M3DIntCoord y) const
 Returns true if the internal coordinate is inside the tile.
 
bool isInside (double lat, double lon) const
 Returns true if the given latitude and longitude is inside the tile.
 
bool intersectsInt (M3DIntCoord x_min, M3DIntCoord y_min, M3DIntCoord x_max, M3DIntCoord y_max) const
 Returns true if the quad intersects the given bounding box in integer coordinates.
 
STK::Vector3d calcGeocentricOrigin () const
 Calculate the 3D geocentric position of the origin of the quad node.
 

Detailed Description

SngQuadCoo - Quad tree coordinates. This class describes the geographical limits of a quad tree node. The internal coordinate system is based on 32-bits integer spherical coordinates mapping the ranges 0-360 and 0-180 degrees of longitude and latitude.

This class also enacpsulate the uniqe 64-bits ID for each quad tree node. This ID is derived from the parent node and the child direction of each node.

See also
SngQuadTile

Constructor & Destructor Documentation

◆ QuadCoo()

Maria3D::QuadCoo::QuadCoo ( const QuadCoo parent,
int  child_dir 
)
inline

Construct from parent and child direction. This constructor initializes the quad limits and ID from the parent quad, and the child direction.

Member Function Documentation

◆ getMaxIntE()

Maria::WebMercator::IntCoord Maria3D::QuadCoo::getMaxIntE ( ) const
inline

Return maximum internal East coordinate for the tile. The tile uses an integer coordinate system internally, mapping the degrees to the full range of an unsigned int, in order to have consistent and predictable comparison checks. To get the actual maximum longitude, use getMaxLongitude().

See also
getMaxLongitude()

◆ getMaxIntN()

Maria::WebMercator::IntCoord Maria3D::QuadCoo::getMaxIntN ( ) const
inline

Return maximum internal North coordinate for the tile. The tile uses an integer coordinate system internally, mapping the degrees to the full range of an unsigned int, in order to have consistent and predictable comparison checks. To get the actual maximum latitude, use getMaxLatitude().

See also
getMaxLatitude()

◆ getMinIntE()

Maria::WebMercator::IntCoord Maria3D::QuadCoo::getMinIntE ( ) const
inline

Return minimum internal East coordinate for the tile. The tile uses an integer coordinate system internally, mapping the degrees to the full range of an unsigned int, in order to have consistent and predictable comparison checks. To get the actual minimum longitude, use getMinLongitude().

See also
getMinLongitude()

◆ getMinIntN()

Maria::WebMercator::IntCoord Maria3D::QuadCoo::getMinIntN ( ) const
inline

Return minimum internal North coordinate for the tile. The tile uses an integer coordinate system internally, mapping the degrees to the full range of an unsigned int, in order to have consistent and predictable comparison checks. To get the actual minimum latitude, use getMinLatitude().

See also
getMinLatitude()

◆ getQuadId()

const Maria::TileId & Maria3D::QuadCoo::getQuadId ( ) const
inline

Get the quadtree ID. The quadtree ID is a 64-bits integer ID which is unique for each node in the quadtree.

◆ getTreeLevel()

int Maria3D::QuadCoo::getTreeLevel ( ) const
inline

Return quadtree level. The quadtree level increases with depth, so that level 0 is the root.


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