20 #ifndef _STELTOAST_HPP_ 21 #define _STELTOAST_HPP_ 30 #include "StelTexture.hpp" 32 #include "VecMath.hpp" 33 #include "StelToastGrid.hpp" 51 bool operator==(
const Coord& b)
const 53 return level == b.level && x == b.x && y == b.y;
55 bool operator!=(
const Coord& b)
const 63 Coord getCoord()
const {
Coord c = { level, x, y };
return c; }
104 QList<ToastTile*> subTiles;
108 QVector<Vec3d> vertexArray;
109 QVector<Vec2f> textureArray;
110 QVector<unsigned short> indexArray;
120 return qHash(key.level << 28 |
136 QString getTilePath(
int level,
int x,
int y)
const;
139 int getMaxLevel()
const {
return maxLevel;}
140 int getTilesSize()
const {
return 256;}
144 ToastTile* getCachedTile(
int level,
int x,
int y);
154 typedef QCache<ToastTile::Coord, ToastTile> ToastCache;
155 ToastCache toastCache;
158 #endif // _STELTOAST_HPP_ const ToastSurvey * getSurvey() const
Return the survey the tile belongs to.
const ToastGrid * getGrid() const
Return the toast grid used by the tile.
Triple struct for a coordinate of a ToastTile.
Define the StelTextureSP type.
A SphericalCap is defined by a direction and an aperture.
Provides functions for performing openGL drawing operations.
Represents a full Toast survey.
Convenience class that can be used to compute the TOAST grid points.
bool isCovered(const SphericalCap &viewportShape) const
return whether the tile is covered by its children tiles This is used to avoid drawing tiles that wil...
QSharedPointer< StelTexture > StelTextureSP
Use shared pointer to simplify memory managment.
Represents a tile in a TOAST image.
Define all SphericalGeometry primitives as well as the SphericalRegionP type.
bool isVisible(const SphericalCap &viewportShape, int maxVisibleLevel) const
Return whether the tile should be drawn.