#include <tiledbitmapviewdata.hh>
◆ Ptr
◆ TiledBitmapViewData()
◆ clearVolatileStuff()
| void TiledBitmapViewData::clearVolatileStuff |
( |
| ) |
|
130 std::list<boost::shared_ptr<void>> oldVolatileStuff;
132 boost::unique_lock<boost::mutex>
const lock(
mut);
138 oldVolatileStuff.clear();
◆ create()
◆ resetNeededTiles()
| void TiledBitmapViewData::resetNeededTiles |
( |
| ) |
|
67 boost::unique_lock<boost::mutex> lock(
mut);
71 std::list<boost::shared_ptr<void>> oldStuff;
73 std::list<boost::shared_ptr<void>> oldVolatileStuff;
82 std::list<boost::shared_ptr<void>> newStuff;
94 tileViewState->setViewData(shared_from_this<TiledBitmapViewData>());
96 newStuff.emplace_back(tileViewState);
97 newStuff.emplace_back(tileViewState->registerObserver(shared_from_this<TiledBitmapViewData>()));
106 oldVolatileStuff.clear();
110 stuff.splice(
stuff.end(), newStuff, newStuff.begin(), newStuff.end());
Referenced by clearVolatileStuff(), and setNeededTiles().
◆ setFinished()
| void TiledBitmapViewData::setFinished |
( |
| ) |
|
|
overridevirtual |
◆ setIdle()
| void TiledBitmapViewData::setIdle |
( |
| ) |
|
|
overridevirtual |
◆ setNeededTiles()
| void TiledBitmapViewData::setNeededTiles |
( |
Layer::Ptr const & |
l, |
|
|
int |
imin, |
|
|
int |
imax, |
|
|
int |
jmin, |
|
|
int |
jmax, |
|
|
int |
zoom, |
|
|
LayerOperations::Ptr |
layerOperations |
|
) |
| |
40 boost::unique_lock<boost::mutex> lock(
mut);
42 if(
layer == l && imin <= imin_ && imax >= imax_ && jmin <= jmin_ && jmax >= jmax_ &&
zoom == zoom_)
◆ setWaiting()
| void TiledBitmapViewData::setWaiting |
( |
double |
progress = 0.0 | ) |
|
|
overridevirtual |
◆ setWorking()
| void TiledBitmapViewData::setWorking |
( |
double |
progress | ) |
|
|
overridevirtual |
◆ storeVolatileStuff()
124 boost::unique_lock<boost::mutex>
const lock(
mut);
◆ tileLoaded()
◆ imax
| int TiledBitmapViewData::imax {0} |
|
private |
◆ imin
| int TiledBitmapViewData::imin {0} |
|
private |
◆ jmax
| int TiledBitmapViewData::jmax {0} |
|
private |
◆ jmin
| int TiledBitmapViewData::jmin {0} |
|
private |
◆ layer
◆ layerOperations
◆ mut
| boost::mutex TiledBitmapViewData::mut |
|
private |
◆ progressInterface
◆ redrawPending
| bool TiledBitmapViewData::redrawPending {false} |
|
private |
◆ stuff
References to things we want to keep around.
This includes
- observer registrations
- tiles that have been loaded
Referenced by resetNeededTiles(), and tileLoaded().
◆ token
◆ viewInterface
◆ volatileStuff
◆ zoom
| int TiledBitmapViewData::zoom {0} |
|
private |
The documentation for this class was generated from the following files:
void resetNeededTiles()
Definition: tiledbitmapviewdata.cc:65
ViewInterface::WeakPtr viewInterface
Definition: tiledbitmapviewdata.hh:28
void async_on_ui_thread(T f)
Definition: gtk-helpers.hh:42
boost::mutex mut
Definition: tiledbitmapviewdata.hh:61
ProgressInterface::Ptr progressInterface
Definition: tiledbitmapviewdata.hh:29
Scroom::Utils::StuffList volatileStuff
Definition: tiledbitmapviewdata.hh:56
boost::shared_ptr< TiledBitmapViewData > Ptr
Definition: tiledbitmapviewdata.hh:25
boost::shared_ptr< TileViewState > Ptr
Definition: tileviewstate.hh:27
Layer::Ptr layer
Definition: tiledbitmapviewdata.hh:33
bool redrawPending
Definition: tiledbitmapviewdata.hh:58
int imin
Definition: tiledbitmapviewdata.hh:34
static void invalidate_view(const ViewInterface::WeakPtr &vi)
Definition: tiledbitmapviewdata.cc:113
int imax
Definition: tiledbitmapviewdata.hh:35
Scroom::Utils::StuffList stuff
Definition: tiledbitmapviewdata.hh:48
LayerOperations::Ptr layerOperations
Definition: tiledbitmapviewdata.hh:39
boost::shared_ptr< CompressedTile > Ptr
Definition: tiledbitmaplayer.hh:108
TiledBitmapViewData(const ViewInterface::WeakPtr &viewInterface)
Definition: tiledbitmapviewdata.cc:25
int jmin
Definition: tiledbitmapviewdata.hh:36
int zoom
Definition: tiledbitmapviewdata.hh:38
int jmax
Definition: tiledbitmapviewdata.hh:37