43 m_cache(tiles, widget),
44 m_currentLayer(tiles->LayerCount() - 1),
50 double top, left, bottom, right;
60 double width_m, height_m;
68 width_m = std::fabs(right - left);
69 height_m = std::fabs(top - bottom);
76 if (scale_y > scale_x)
87 while (
min_scale_ * std::pow(2.0, layer + 1) < scale) layer++;
132 glEnable(GL_TEXTURE_2D);
134 glColor4f(1.0
f, 1.0
f, 1.0
f, 1.0
f);
154 for (
int r = 0; r < baseLayer->
RowCount(); r++)
172 if (m_endColumn < layer->ColumnCount() && m_endRow < layer->RowCount())
192 glDisable(GL_TEXTURE_2D);
multires_image::TileSet * m_tiles
swri_transform_util::GeoReference & GeoReference()
void SetCurrentLayer(int layer)
void SetView(double x, double y, double radius, double scale)
void Precache(const tf::Point &position)
MultiresView(multires_image::TileSet *tiles, QGLWidget *widget)
multires_image::TileCache m_cache
TileSetLayer * GetLayer(int layer)
Tile * GetTile(int column, int row)
void GetTileIndex(const tf::Point &position, int &row, int &column) const
bool TextureLoaded() const