|
| int | getBpp () override |
| |
| void | initializeCairo (cairo_t *) override |
| |
| void | draw (cairo_t *, const ConstTile::Ptr &, Scroom::Utils::Rectangle< double >, Scroom::Utils::Rectangle< double >, int, Scroom::Utils::Stuff) override |
| |
| void | drawState (cairo_t *, TileState, Scroom::Utils::Rectangle< double >) override |
| |
| void | reduce (Tile::Ptr, const ConstTile::Ptr, int, int) override |
| |
| virtual Scroom::Utils::Stuff | cache (const ConstTile::Ptr &) |
| |
| virtual Scroom::Utils::Stuff | cacheZoom (const ConstTile::Ptr &, int, Scroom::Utils::Stuff &) |
| |
◆ create()
| static Ptr DummyLayerOperations::create |
( |
| ) |
|
|
inlinestatic |
Definition tiledbitmap-tests.cc:16
std::shared_ptr< LayerOperations > Ptr
Definition tiledbitmapinterface.hh:51
◆ draw()
Draw the given tileArea into the given viewArea at the requested zoom level
- Parameters
-
| cr | The canvas on which to draw |
| tile | The tile to take data from |
| tileArea | Area of the tile that needs to be drawn |
| viewArea | Area of the canvas that the tile needs to be drawn in |
| zoom | The requested zoom level. One pixel of your presentation should have size 2**zoom when drawn. zoom will be negative for all but the first layer. |
| cache | Depending on whether the cacheZoom() function finished already, this may either be an empty reference, or a reference to the value returned by cacheZoom() |
Implements LayerOperations.
◆ drawState()
Draw the given state into the given viewArea
The associated tile is likely not loaded or not initialized or in whatever other TileState that doesn't allow its contents to be drawn.
Something needs to be drawn in the given viewArea anyway. Implementors might want to just draw an empty rectangle, maybe color-coded to reflect the state of the tile.
Implements LayerOperations.
◆ getBpp()
| int DummyLayerOperations::getBpp |
( |
| ) |
|
|
inlineoverridevirtual |
Return the number of bits per pixel that the layer will use.
This number will be used to compute the amount of memory required to store one tile
Implements LayerOperations.
◆ initializeCairo()
| void DummyLayerOperations::initializeCairo |
( |
cairo_t * |
cr | ) |
|
|
inlineoverridevirtual |
◆ reduce()
Reduce the source tile by a factor of 8
The target tile will contain data for 8*8 source tiles. Offsets x and y indicate which of those 64 source tiles is currently being processed
- Parameters
-
| target | Tile that will contain the reduced bitmap |
| source | Tile that is to be reduced |
| x | x-offset (0..7) of the source tile in the target tile |
| y | y-offset (0..7) of the source tile in the target tile |
- Note
- The
target tile belongs to a different layer, and hence possibly has a different bpp than the current one, depending on the LayerSpec given to createTiledBitmap()
Implements LayerOperations.
The documentation for this class was generated from the following file: