Go to the documentation of this file.
10 #include <boost/shared_ptr.hpp>
25 using Ptr = boost::shared_ptr<TiledBitmapViewData>;
80 void setWaiting(
double progress = 0.0)
override;
void resetNeededTiles()
Definition: tiledbitmapviewdata.cc:65
void setFinished() override
Definition: tiledbitmapviewdata.cc:163
void setIdle() override
Definition: tiledbitmapviewdata.cc:157
void setNeededTiles(Layer::Ptr const &l, int imin, int imax, int jmin, int jmax, int zoom, LayerOperations::Ptr layerOperations)
Definition: tiledbitmapviewdata.cc:32
ViewInterface::WeakPtr viewInterface
Definition: tiledbitmapviewdata.hh:28
boost::shared_ptr< OpenPresentationInterface > Ptr
Definition: scroominterface.hh:56
std::list< Stuff > StuffList
Definition: stuff.hh:20
void load(GtkFileFilterInfo const &info)
Definition: loader.cc:238
Definition: tiledbitmappresentation.cc:56
void async_on_ui_thread(T f)
Definition: gtk-helpers.hh:42
std::vector< std::pair< std::string, double > > PipetteColor
Definition: pipettelayeroperations.hh:22
boost::shared_ptr< Layer > Ptr
Definition: tiledbitmaplayer.hh:247
TiledBitmapInterface::Ptr tbi
Definition: tiledbitmappresentation.cc:70
boost::mutex mut
Definition: tiledbitmapviewdata.hh:61
ColormapHelperBase::Ptr colormapHelper
Definition: tiledbitmappresentation.cc:73
PipetteLayerOperations::Ptr pipetteLayerOperation
Definition: tiledbitmappresentation.cc:74
TiledBitmapPresentation(std::string &&name_, BitmapMetaData &&bmd_, TiledBitmapInterface::Ptr &&tbi_, std::map< std::string, std::string > &&properties_, ColormapHelperBase::Ptr &&colormapHelper_, PipetteLayerOperations::Ptr &&pipetteLayerOperation_)
Definition: tiledbitmappresentation.cc:144
static Ptr create(int bitmapWidth, int bitmapHeight, LayerSpec const &ls)
Definition: tiled-bitmap.cc:70
PipetteLayerOperations::PipetteColor dividePipetteColors(PipetteLayerOperations::PipetteColor elements, const int divisor)
Definition: tiledbitmappresentation.cc:47
LayerSpecResult LayerSpecForBitmap(const BitmapMetaData &bitmapMetaData)
Definition: layerspecforbitmap.cc:228
boost::shared_ptr< uint8_t > Ptr
Definition: blockallocator.hh:23
void clearVolatileStuff()
Definition: tiledbitmapviewdata.cc:128
boost::shared_ptr< ConstTile > Ptr
Definition: tile.hh:47
ProgressInterface::Ptr progressInterface
Definition: tiledbitmapviewdata.hh:29
Scroom::Utils::StuffList volatileStuff
Definition: tiledbitmapviewdata.hh:56
OpenPresentationInterface::Ptr ToOpenPresentationInterface(OpenTiledBitmapInterface::Ptr openTiledBitmapInterface)
Definition: tiledbitmappresentation.cc:424
boost::shared_ptr< TiledBitmapViewData > Ptr
Definition: tiledbitmapviewdata.hh:25
boost::shared_ptr< ProgressInterface > Ptr
Definition: progressinterface.hh:20
Definition: pipetteviewinterface.hh:16
Rectangle intersection(const Rectangle &other) const
Definition: rectangle.hh:95
boost::shared_ptr< ViewInterface > Ptr
Definition: viewinterface.hh:193
void add(Scroom::Utils::Stuff s)
Definition: tiledbitmappresentation.cc:132
std::vector< LayerOperations::Ptr > LayerSpec
Definition: tiledbitmapinterface.hh:190
Definition: progressinterface.hh:17
#define require(expr)
Definition: assertions.hh:28
boost::shared_ptr< TileViewState > Ptr
Definition: tileviewstate.hh:27
Metadata::Metadata to_metadata(const BitmapMetaData &bmd)
Definition: layerspecforbitmap.cc:37
Layer::Ptr layer
Definition: tiledbitmapviewdata.hh:33
const std::string PIPETTE_PROPERTY_NAME
Definition: pipetteviewinterface.hh:14
void sync_on_ui_thread(T f)
Definition: gtk-helpers.hh:59
boost::shared_ptr< TiledBitmapPresentation > Ptr
Definition: tiledbitmappresentation.cc:63
void setWaiting(double progress=0.0) override
Definition: tiledbitmapviewdata.cc:159
std::function< Scroom::Utils::Stuff(const ProgressInterface::Ptr &)> ReloadFunction
Definition: opentiledbitmapinterface.hh:39
std::set< ViewInterface::WeakPtr > Views
Definition: tiledbitmappresentation.cc:66
boost::shared_ptr< OpenTiledBitmapInterface > Ptr
Definition: opentiledbitmapinterface.hh:58
std::map< std::string, std::string > properties
Definition: tiledbitmappresentation.cc:71
Definition: scroominterface.hh:53
static Ptr create(const ViewInterface::WeakPtr &viewInterface)
Definition: tiledbitmapviewdata.cc:20
Definition: colormappable.hh:113
boost::shared_ptr< PresentationInterface > Ptr
Definition: presentationinterface.hh:74
boost::weak_ptr< ViewInterface > WeakPtr
Definition: viewinterface.hh:194
boost::shared_ptr< Colormap > Ptr
Definition: colormappable.hh:31
bool redrawPending
Definition: tiledbitmapviewdata.hh:58
const Colormap::Ptr colormap
Definition: colormaphelpers_test.cc:54
Definition: opentiledbitmapinterface.hh:21
Definition: tiledbitmappresentation.cc:351
OpenTiledBitmapInterface::Ptr openTiledBitmapInterface
Definition: tiledbitmappresentation.cc:357
int imin
Definition: tiledbitmapviewdata.hh:34
Definition: utilities.hh:30
boost::shared_ptr< ColormapHelperBase > Ptr
Definition: colormappable.hh:160
OpenTiledBitmapAsPresentation(OpenTiledBitmapInterface::Ptr openTiledBitmapInterface_)
Definition: tiledbitmappresentation.cc:371
static void invalidate_view(const ViewInterface::WeakPtr &vi)
Definition: tiledbitmapviewdata.cc:113
boost::shared_ptr< void > Stuff
Definition: stuff.hh:18
int imax
Definition: tiledbitmapviewdata.hh:35
Definition: presentationinterface.hh:113
static Views views
Definition: callbacks.cc:56
Scroom::Utils::StuffList stuff
Definition: tiledbitmapviewdata.hh:48
std::string name
Definition: tiledbitmappresentation.cc:68
LayerOperations::Ptr layerOperations
Definition: tiledbitmapviewdata.hh:39
void drawOutOfBoundsWithoutBackground(cairo_t *cr, Scroom::Utils::Rectangle< double > const &requestedPresentationArea, Scroom::Utils::Rectangle< double > const &actualPresentationArea, double pixelSize)
Definition: cairo-helpers.cc:93
static Ptr create(OpenTiledBitmapInterface::Ptr openTiledBitmapInterface_)
Definition: tiledbitmappresentation.cc:360
double pixelSizeFromZoom(int zoom)
Definition: cairo-helpers.cc:112
Views views
Definition: tiledbitmappresentation.cc:72
boost::shared_ptr< Colormappable > Ptr
Definition: colormappable.hh:116
Scroom::TiledBitmap::BitmapMetaData bmd
Definition: tiledbitmappresentation.cc:69
void storeVolatileStuff(const Scroom::Utils::Stuff &stuff)
Definition: tiledbitmapviewdata.cc:122
boost::shared_ptr< CompressedTile > Ptr
Definition: tiledbitmaplayer.hh:108
#define TILESIZE
Definition: tiledbitmaplayer.hh:28
void tileLoaded(ConstTile::Ptr tile) override
Definition: tiledbitmapviewdata.cc:142
boost::shared_ptr< LayerOperations > Ptr
Definition: tiledbitmapinterface.hh:53
TiledBitmapViewData(const ViewInterface::WeakPtr &viewInterface)
Definition: tiledbitmapviewdata.cc:25
boost::shared_ptr< TiledBitmapInterface > Ptr
Definition: tiledbitmapinterface.hh:239
int jmin
Definition: tiledbitmapviewdata.hh:36
boost::optional< std::tuple< Scroom::TiledBitmap::BitmapMetaData, TIFFPtr > > open(const std::string &fileName)
Definition: tiffsource.cc:119
Definition: tiledbitmapviewdata.hh:19
void setWorking(double progress) override
Definition: tiledbitmapviewdata.cc:161
Definition: bookkeeping.hh:37
Segment< double > roundOutward(Segment< double > s)
Definition: linearsegment.hh:240
int zoom
Definition: tiledbitmapviewdata.hh:38
Scroom::Bookkeeping::Token token
Definition: tiledbitmapviewdata.hh:30
Scroom::Utils::StuffList stuff
Definition: tiledbitmappresentation.cc:75
void create(NewPresentationInterface *interface)
Definition: loader.cc:175
static TiledBitmapPresentation::Ptr create(std::string name_, BitmapMetaData bmd_, TiledBitmapInterface::Ptr tbi_, std::map< std::string, std::string > properties_, ColormapHelperBase::Ptr colormapHelper_, PipetteLayerOperations::Ptr pipetteLayerOperation_)
Definition: tiledbitmappresentation.cc:78
std::list< GtkFileFilter * > getFilters() override
Definition: tiledbitmappresentation.cc:366
Definition: tiledbitmaplayer.hh:80
int jmax
Definition: tiledbitmapviewdata.hh:37
boost::shared_ptr< PipetteLayerOperations > Ptr
Definition: pipettelayeroperations.hh:21
PipetteLayerOperations::PipetteColor sumPipetteColors(const PipetteLayerOperations::PipetteColor &lhs, const PipetteLayerOperations::PipetteColor &rhs)
Definition: tiledbitmappresentation.cc:29