40 m_cache(tiles, widget),
41 m_currentLayer(tiles->LayerCount() - 1),
47 double top, left, bottom, right;
55 if (scale_y > scale_x)
66 while (
min_scale_ * std::pow(2.0, layer + 1) < scale) layer++;
109 glEnable(GL_TEXTURE_2D);
111 glColor4f(1.0
f, 1.0
f, 1.0
f, 1.0
f);
133 for (
int r = 0; r < baseLayer->
RowCount(); r++)
149 if (m_endColumn < layer->ColumnCount() && m_endRow < layer->RowCount())
168 glDisable(GL_TEXTURE_2D);
swri_transform_util::GeoReference & GeoReference()
void SetCurrentLayer(int layer)
TileView(TileSet *tiles, QGLWidget *widget)
void Precache(const tf::Point &position)
void SetView(double x, double y, double radius, double scale)
TileSetLayer * GetLayer(int layer)
Tile * GetTile(int column, int row)
void GetTileIndex(const tf::Point &position, int &row, int &column) const
bool TextureLoaded() const