394 {
396 BitmapMetaData bmd = std::move(std::get<0>(
t));
397 Layer::Ptr const bottomLayer = std::move(std::get<1>(
t));
399
401 LayerSpec layerSpec = std::move(std::get<0>(lsr));
403
405 if(bottomLayer && !layerSpec.empty())
406 {
409
410 std::map<std::string, std::string> properties;
411 if(bmd.colormapHelper)
412 {
413 properties = bmd.colormapHelper->getProperties();
414 }
415 if(pipetteLayerOperation)
416 {
418 }
420
421 auto tiledBitmapPresentation =
423 tiledBitmapPresentation->add(
load(tiledBitmap->progressInterface()));
424
425 if(bmd.aspectRatio)
426 {
428 }
429 else
430 {
431 result = tiledBitmapPresentation;
432 }
433 }
435 }
std::shared_ptr< ColormapHelperBase > Ptr
Definition colormappable.hh:158
std::shared_ptr< Layer > Ptr
Definition tiledbitmaplayer.hh:250
std::shared_ptr< PipetteLayerOperations > Ptr
Definition pipettelayeroperations.hh:24
std::shared_ptr< PresentationInterface > Ptr
Definition presentationinterface.hh:73
static Ptr create(int bitmapWidth, int bitmapHeight, LayerSpec const &ls)
Definition tiled-bitmap.cc:73
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:80
void load(GtkFileFilterInfo const &info)
Definition loader.cc:235
LayerSpecResult LayerSpecForBitmap(const BitmapMetaData &bitmapMetaData)
Definition layerspecforbitmap.cc:227
std::function< Scroom::Utils::Stuff(const ProgressInterface::Ptr &)> ReloadFunction
Definition opentiledbitmapinterface.hh:40
const std::string PIPETTE_PROPERTY_NAME
Definition pipetteviewinterface.hh:14
SampleIterator< const uint8_t > result
Definition sampleiterator-tests.cc:94
std::vector< LayerOperations::Ptr > LayerSpec
Definition tiledbitmapinterface.hh:184