|
Scroom 0.14-48-ga0fee447
|
#include <tiled-bitmap.hh>


Public Types | |
| using | Ptr = std::shared_ptr< TiledBitmap > |
| using | WeakPtr = std::weak_ptr< TiledBitmap > |
| using | ViewDataMap = Scroom::Utils::WeakKeyMap< ViewInterface::WeakPtr, TiledBitmapViewData::Ptr > |
Public Types inherited from TiledBitmapInterface | |
| using | Ptr = std::shared_ptr< TiledBitmapInterface > |
Public Types inherited from Viewable | |
| using | Ptr = std::shared_ptr< Viewable > |
| using | WeakPtr = std::weak_ptr< Viewable > |
Public Types inherited from TileInitialisationObserver | |
| using | Ptr = std::shared_ptr< TileInitialisationObserver > |
| using | WeakPtr = std::weak_ptr< TileInitialisationObserver > |
Public Member Functions | |
| ~TiledBitmap () override | |
| TiledBitmap (const TiledBitmap &)=delete | |
| TiledBitmap (TiledBitmap &&)=delete | |
| TiledBitmap | operator= (const TiledBitmap &)=delete |
| TiledBitmap | operator= (TiledBitmap &&)=delete |
| void | setSource (SourcePresentation::Ptr sp) override |
| Layer::Ptr | getBottomLayer () override |
| void | open (ViewInterface::WeakPtr viewInterface) override |
| void | close (ViewInterface::WeakPtr vi) override |
| void | redraw (ViewInterface::Ptr const &vi, cairo_t *cr, Scroom::Utils::Rectangle< double > const &presentationArea, int zoom) override |
| void | clearCaches (ViewInterface::Ptr vi) override |
| void | tileCreated (const CompressedTile::Ptr &tile) override |
| void | tileFinished (const CompressedTile::Ptr &tile) override |
| TileInitialisationObserver. | |
| ProgressInterface::Ptr | progressInterface () |
Public Member Functions inherited from Scroom::Utils::Base | |
| Base ()=default | |
| Base (const Base &)=delete | |
| Base (Base &&)=delete | |
| Base & | operator= (const Base &)=delete |
| Base & | operator= (Base &&)=delete |
| virtual | ~Base ()=default |
| template<typename R > | |
| std::shared_ptr< R > | shared_from_this () |
| template<typename R > | |
| std::shared_ptr< R const > | shared_from_this () const |
Static Public Member Functions | |
| static Ptr | create (int bitmapWidth, int bitmapHeight, LayerSpec const &ls) |
| static Ptr | create (const Layer::Ptr &bottom, const LayerSpec &ls) |
Private Member Functions | |
| TiledBitmap (int bitmapWidth, int bitmapHeight, LayerSpec ls) | |
| void | initialize () |
| void | initialize (const Layer::Ptr &bottom) |
| void | connect (Layer::Ptr const &layer, Layer::Ptr const &prevLayer, const LayerOperations::Ptr &prevLo) |
Static Private Member Functions | |
| static void | drawTile (cairo_t *cr, const CompressedTile::Ptr &tile, const Scroom::Utils::Rectangle< double > &viewArea) |
Private Attributes | |
| int | bitmapWidth |
| int | bitmapHeight |
| LayerSpec | ls |
| std::vector< Layer::Ptr > | layers |
| std::list< LayerCoordinator::Ptr > | coordinators |
| boost::mutex | viewDataMutex |
| ViewDataMap | viewData |
| int | tileCount {0} |
| boost::mutex | tileFinishedMutex |
| int | tileFinishedCount {0} |
| Scroom::Utils::ProgressInterfaceBroadcaster::Ptr | progressBroadcaster |
| Scroom::Utils::StuffList | registrations |
| Scroom::Logger | logger |
| using TiledBitmap::Ptr = std::shared_ptr<TiledBitmap> |
| using TiledBitmap::ViewDataMap = Scroom::Utils::WeakKeyMap<ViewInterface::WeakPtr, TiledBitmapViewData::Ptr> |
| using TiledBitmap::WeakPtr = std::weak_ptr<TiledBitmap> |
|
override |
|
delete |
|
delete |
|
private |
|
overridevirtual |
Clear all bitmap caches related to the view.
You'd typically do this if the bitmap has somehow changed appearance, for example when switching to a new Colormap.
| vi | The ViewInterface for which to clear the caches |
Implements TiledBitmapInterface.
|
overridevirtual |
Gets called just before the View is destroyed
Implements Viewable.
|
private |
Referenced by initialize().


|
static |
|
static |
Referenced by createTiledBitmap(), and anonymous_namespace{tiledbitmappresentation.cc}::OpenTiledBitmapAsPresentation::open().

|
staticprivate |
Referenced by redraw().


|
overridevirtual |
Retrieve the bottom layer of the TiledBitmap.
This allows you to fill the layer with data yourself, instead of relying on setSource()
Implements TiledBitmapInterface.
|
private |
Referenced by initialize().


|
private |

|
overridevirtual |
Gets called just after the View is created
Implements Viewable.

|
delete |
|
delete |
|
inline |
|
overridevirtual |
Redraw a portion of the bitmap.
This is typically called from PresentationInterface::redraw()
Implements TiledBitmapInterface.

|
overridevirtual |
Provide bitmap data to the TiledBitmap
Bitmap data will be loaded and pre-scaled in a fashion that least loads cpu and memory.
| sp | source of the bitmap data |
Implements TiledBitmapInterface.

|
overridevirtual |
The tile has been created.
This event will be sent as soon as the observer is registered (because obvously the tile has already been created beforehand).
Reimplemented from TileInitialisationObserver.
|
overridevirtual |
This event will be sent when the tile is completely filled with data. This would be a good time to update progress bars and start prescaling.
Reimplemented from TileInitialisationObserver.

|
private |
Referenced by create(), initialize(), and initialize().
|
private |
Referenced by create(), initialize(), and initialize().
|
private |
Referenced by connect(), and ~TiledBitmap().
|
private |
Referenced by close(), getBottomLayer(), initialize(), open(), redraw(), setSource(), and ~TiledBitmap().
|
private |
Referenced by tileFinished(), and ~TiledBitmap().
|
private |
Referenced by create(), create(), initialize(), initialize(), and redraw().
|
private |
Referenced by open(), progressInterface(), setSource(), and tileFinished().
|
private |
Referenced by initialize(), and setSource().
|
private |
Referenced by tileCreated(), and tileFinished().
|
private |
Referenced by tileFinished().
|
private |
Referenced by tileFinished().
|
private |
Referenced by clearCaches(), close(), open(), and redraw().
|
private |
Referenced by clearCaches(), close(), and open().