|
Grok 20.3.2
|
Stores state of rectangular window of tiles slated for decompression Each tile's slated or completely parsed state is stored. More...
#include <TileWindow.h>
Public Member Functions | |
| TileWindow () | |
| Constructs new TileWindow. | |
| virtual | ~TileWindow ()=default |
| Destroys TileWindow. | |
| void | init (Rect16 allTiles) |
| Initializes TileWindow. | |
| void | slate (Rect16 tiles) |
| Slates tiles inside window. | |
| void | slate (uint16_t tile_index) |
| Slates tile at tile index. | |
| bool | isSlated (uint16_t tile_index) |
| Checks if tile at given tile index is slated. | |
| std::set< uint16_t > & | getSlatedTiles (void) |
| Rect16 | getSlatedTileRect (void) |
Private Member Functions | |
| void | slate (Point16 tile) |
| Slates tile at window grid point. | |
| uint16_t | index (Point16 tile) |
| Gets tile index from tile grid coordinates. | |
Private Attributes | |
| std::set< uint16_t > | tilesSlatedForDecompression_ |
| tiles slated for decompression | |
| Rect16 | allTiles_ |
| rectangular grid of all slated tiles | |
| Rect16 | slatedTiles_ |
| tiles slated for decompression, in Rect16 format | |
Stores state of rectangular window of tiles slated for decompression Each tile's slated or completely parsed state is stored.
| grk::TileWindow::TileWindow | ( | ) |
Constructs new TileWindow.
|
virtualdefault |
Destroys TileWindow.
| Rect16 grk::TileWindow::getSlatedTileRect | ( | void | ) |
References slatedTiles_.
| std::set< uint16_t > & grk::TileWindow::getSlatedTiles | ( | void | ) |
References tilesSlatedForDecompression_.
|
private |
Gets tile index from tile grid coordinates.
| tile | tile grid coordinates |
References allTiles_, grk::Point< T >::x, and grk::Point< T >::y.
| void grk::TileWindow::init | ( | Rect16 | allTiles | ) |
Initializes TileWindow.
| allTiles | total number of tiles in window |
References allTiles_, grk::Rect< T >::empty(), and slate().
| bool grk::TileWindow::isSlated | ( | uint16_t | tile_index | ) |
Checks if tile at given tile index is slated.
| tile_index | tile index |
References tilesSlatedForDecompression_.
Referenced by grk::TLMMarker::seekNextSlated().
|
private |
Slates tile at window grid point.
| tile | tile grid point |
References slate(), grk::Point< T >::x, and grk::Point< T >::y.
| void grk::TileWindow::slate | ( | Rect16 | tiles | ) |
Slates tiles inside window.
| tiles | tile grid |
References allTiles_, grk::Rect< T >::empty(), slatedTiles_, tilesSlatedForDecompression_, grk::Rect< T >::x0, grk::Rect< T >::x1, grk::Rect< T >::y0, and grk::Rect< T >::y1.
| void grk::TileWindow::slate | ( | uint16_t | tile_index | ) |
|
private |
|
private |
tiles slated for decompression, in Rect16 format
Referenced by getSlatedTileRect(), and slate().
|
private |
tiles slated for decompression
Referenced by getSlatedTiles(), isSlated(), and slate().