|
Scroom
0.14
|
#include <tiledbitmapinterface.hh>


Public Types | |
| using | Ptr = boost::shared_ptr< TiledBitmapInterface > |
Public Types inherited from Viewable | |
| using | Ptr = boost::shared_ptr< Viewable > |
| using | WeakPtr = boost::weak_ptr< Viewable > |
Public Member Functions | |
| virtual void | setSource (SourcePresentation::Ptr sp)=0 |
| virtual boost::shared_ptr< Layer > | getBottomLayer ()=0 |
| virtual void | redraw (ViewInterface::Ptr const &vi, cairo_t *cr, const Scroom::Utils::Rectangle< double > &presentationArea, int zoom)=0 |
| virtual void | clearCaches (ViewInterface::Ptr vi)=0 |
Public Member Functions inherited from Viewable | |
| virtual void | open (ViewInterface::WeakPtr vi)=0 |
| virtual void | close (ViewInterface::WeakPtr vi)=0 |
Interact with your TiledBitmap
| using TiledBitmapInterface::Ptr = boost::shared_ptr<TiledBitmapInterface> |
|
pure virtual |
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 |
Implemented in TiledBitmap.
|
pure virtual |
Retrieve the bottom layer of the TiledBitmap.
This allows you to fill the layer with data yourself, instead of relying on setSource()
Implemented in TiledBitmap.
|
pure virtual |
Redraw a portion of the bitmap.
This is typically called from PresentationInterface::redraw()
Implemented in TiledBitmap.
|
pure virtual |
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 |
Implemented in TiledBitmap.