Convenience class that can be used to compute the TOAST grid points.
More...
#include <StelToastGrid.hpp>
|
|
| ToastGrid (int maxLevel) |
| |
| QVector< Vec3d > | getVertexArray (int level, int x, int y, int resolution) const |
| | Get the vertex array for a given tile. More...
|
| |
| QVector< Vec2f > | getTextureArray (int level, int x, int y, int resolution) const |
| | Get the texture array for a given tile. More...
|
| |
| QVector< unsigned short > | getTrianglesIndex (int level, int x, int y, int resolution) const |
| | Get the index of the vertex from getVertexArray sorted as a list of triangles. More...
|
| |
| QVector< Vec3d > | getPolygon (int level, int x, int y) const |
| | Returns the polygon contouring a given tile. More...
|
| |
|
int | getMaxLevel () const |
| | Return the max TOAST level of this grid.
|
| |
The ToastGrid class allows to compute the vertex arrays associated with TOAST tiles. Each method refers to a tile by its level and x and y coordinates.
| QVector<Vec3d> ToastGrid::getPolygon |
( |
int |
level, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| const |
- Parameters
-
| level | the TOAST level of the tile. |
| x | the x coordinate of the tile. |
| y | the y coordinate of the tile. |
| QVector<Vec2f> ToastGrid::getTextureArray |
( |
int |
level, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
resolution |
|
) |
| const |
The position are stored in a grid
- Parameters
-
| level | the TOAST level of the tile. |
| x | the x coordinate of the tile. |
| y | the y coordinate of the tile. |
| resolution | the resolution of the returned array. TODO: UNITS? |
| QVector<unsigned short> ToastGrid::getTrianglesIndex |
( |
int |
level, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
resolution |
|
) |
| const |
- Parameters
-
| level | the TOAST level of the tile. |
| x | the x coordinate of the tile. |
| y | the y coordinate of the tile. |
| resolution | the resolution of the returned array. TODO: UNITS? |
| QVector<Vec3d> ToastGrid::getVertexArray |
( |
int |
level, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
resolution |
|
) |
| const |
The position are stored in a grid.
- Parameters
-
| level | the TOAST level of the tile. |
| x | the x coordinate of the tile. |
| y | the y coordinate of the tile. |
| resolution | the resolution of the returned array. TODO: UNITS? |