From 13e18ebba7a05892b334ce103faadb636e97bc56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 1 Jun 2023 17:22:37 +0200 Subject: [PATCH] DebugTools: more convenience CompareImage constructors. I need to pass both the importer and converter managers but don't need any thresholds. --- src/Magnum/DebugTools/CompareImage.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Magnum/DebugTools/CompareImage.h b/src/Magnum/DebugTools/CompareImage.h index e1598b4fb..36944b668 100644 --- a/src/Magnum/DebugTools/CompareImage.h +++ b/src/Magnum/DebugTools/CompareImage.h @@ -449,6 +449,15 @@ class CompareImageFile { */ explicit CompareImageFile(PluginManager::Manager& importerManager, PluginManager::Manager& converterManager, Float maxThreshold, Float meanThreshold): _c{&importerManager, &converterManager, maxThreshold, meanThreshold} {} + /** + * @brief Construct with an explicit importer and converter plugin manager instance and implicit thresholds + * @m_since_latest + * + * Equivalent to calling @ref CompareImageFile(PluginManager::Manager&, PluginManager::Manager&, Float, Float) + * with zero values. + */ + explicit CompareImageFile(PluginManager::Manager& importerManager, PluginManager::Manager& imageConverterManager): _c{&importerManager, &imageConverterManager, 0.0f, 0.0f} {} + /** * @brief Construct with implicit thresholds * @@ -512,6 +521,15 @@ class CompareImageToFile { */ explicit CompareImageToFile(PluginManager::Manager& importerManager, PluginManager::Manager& imageConverterManager, Float maxThreshold, Float meanThreshold): _c{&importerManager, &imageConverterManager, maxThreshold, meanThreshold} {} + /** + * @brief Construct with an explicit importer and converter plugin manager instance and implicit thresholds + * @m_since_latest + * + * Equivalent to calling @ref CompareImageToFile(PluginManager::Manager&, PluginManager::Manager&, Float, Float) + * with zero values. + */ + explicit CompareImageToFile(PluginManager::Manager& importerManager, PluginManager::Manager& imageConverterManager): _c{&importerManager, &imageConverterManager, 0.0f, 0.0f} {} + /** * @brief Implicit constructor *