396 {
398 BitmapMetaData bmd = std::move(std::get<0>(
t));
399 Layer::Ptr const bottomLayer = std::move(std::get<1>(
t));
401
403 LayerSpec layerSpec = std::move(std::get<0>(lsr));
405
407 if(bottomLayer && !layerSpec.empty())
408 {
411
412 std::map<std::string, std::string> properties;
413 if(bmd.colormapHelper)
414 {
415 properties = bmd.colormapHelper->getProperties();
416 }
417 if(pipetteLayerOperation)
418 {
420 }
422
423 auto tiledBitmapPresentation =
425 tiledBitmapPresentation->add(
load(tiledBitmap->progressInterface()));
426
427 if(bmd.aspectRatio)
428 {
430 }
431 else
432 {
433 result = tiledBitmapPresentation;
434 }
435 }
437 }
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:72
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:81
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:183