Hugintrunk
0.1
|
#include <functional>
#include <algorithm>
#include <utility>
#include <string>
#include <string.h>
#include <ctype.h>
#include <stdexcept>
#include <hugin_utils/utils.h>
Go to the source code of this file.
Namespaces | |
hugin_utils | |
namespace for various utils | |
Functions | |
std::string | hugin_utils::tolower (const std::string &s) |
convert a string to lowercase More... | |
std::string | hugin_utils::toupper (const std::string &s) |
template<typename _Container > | |
bool | set_contains (const _Container &c, const typename _Container::key_type &key) |
template<typename _Container > | |
void | fill_set (_Container &c, typename _Container::key_type begin, typename _Container::key_type end) |
template<typename Map > | |
Map::mapped_type & | map_get (Map &m, const typename Map::key_type &key) |
get a map element. More... | |
template<typename Map > | |
const Map::mapped_type & | const_map_get (const Map &m, const typename Map::key_type &key) |
template<typename Map > | |
Map::mapped_type & | map_get (Map &m, const char *key) |
template<typename Map > | |
const Map::mapped_type & | const_map_get (const Map &m, const char *key) |
const Map::mapped_type& const_map_get | ( | const Map & | m, |
const typename Map::key_type & | key | ||
) |
Definition at line 110 of file stl_utils.h.
References DEBUG_WARN.
Referenced by OptimizePanel::AskApplyResult(), HuginBase::StraightenPanorama::calcStraighteningRotation(), HuginBase::Lens::getFocalLength(), HuginBase::Lens::getHFOV(), HuginBase::PTools::initCPrefs(), ImageVariableDialog::InitValues(), HFOVDialog::OnLoadLensParameters(), CPEditorPanel::panoramaImagesChanged(), SaveLensParameters(), HuginBase::PTools::setFullImage(), CPEditorPanel::setLeftImage(), CPEditorPanel::setRightImage(), and HuginBase::SmartOptimise::smartOptimize().
const Map::mapped_type& const_map_get | ( | const Map & | m, |
const char * | key | ||
) |
Definition at line 135 of file stl_utils.h.
References DEBUG_WARN.
|
inline |
Definition at line 81 of file stl_utils.h.
Referenced by DCRawImport::AddAdditionalPanoramaCommand(), AutoPanoSift::automatch(), AutoPanoSiftMultiRow::automatch(), AutoPanoSiftMultiRowStack::automatch(), HuginBase::PTools::calcCtrlPointErrors(), ImagesPanel::CPGenerate(), PanoOperation::RemoveControlPointsOperation::GetInternalCommand(), PanoOperation::ResetOperation::GetInternalCommand(), PanoOperation::AssignStacksOperation::GetInternalCommand(), HuginQueue::detail::GetQuotedFilenamesStringForVerdandi(), HuginQueue::GetStitchingCommandQueue(), HuginQueue::GetStitchingCommandQueueUserOutput(), HuginBase::Panorama::hasPossibleStacks(), Papywizard::ImportPapywizardFile(), HuginBase::Panorama::linkPossibleStacks(), main2(), DragTool::MouseButtonEvent(), OptimizePhotometricPanel::OnOptimizeButton(), OptimizePanel::OnOptimizeButton(), MaskImageCtrl::OnRightMouseDown(), iCPApp::OnRun(), MainFrame::OnSavePTStitcherAs(), GLPreviewFrame::OnShowAll(), HuginBase::PTools::optimize(), ImagesTreeCtrl::panoramaChanged(), ImagesTreeCtrl::panoramaImagesChanged(), OptimizePanel::runOptimizer(), MaskImageCtrl::selectAllMarkers(), ImagesTreeCtrl::SelectAllParameters(), SetCrop(), ImagesTreeCtrl::SetGroupMode(), HuginBase::SmartOptimise::smartOptimize(), HuginBase::SmartPhotometricOptimizer::smartOptimizePhotometric(), HuginBase::Panorama::updateMasks(), and HuginBase::Panorama::WritePTOFile().
Map::mapped_type& map_get | ( | Map & | m, |
const typename Map::key_type & | key | ||
) |
get a map element.
does not create a new element in the map, like operator[] does
Throws an error if the element does not exist
Definition at line 98 of file stl_utils.h.
References DEBUG_WARN.
Referenced by HuginBase::PTools::Transform::createInvTransform(), HuginBase::PTools::Transform::createTransform(), PanoOperation::ResetOperation::GetInternalCommand(), Papywizard::ImportPapywizardFile(), LoadLensParametersChoose(), main(), PanoDetector::matchMultiRow(), PanoDetector::matchPrealigned(), and HuginBase::Lens::setHFOV().
Map::mapped_type& map_get | ( | Map & | m, |
const char * | key | ||
) |
Definition at line 123 of file stl_utils.h.
References DEBUG_WARN.
|
inline |
Definition at line 74 of file stl_utils.h.
Referenced by AddToOptVec(), AutoPanoSift::automatch(), AutoPanoSiftPreAlign::automatch(), HuginBase::CalculateCPStatisticsError::calcCtrlPntsErrorStats(), MaskImageCtrl::DrawPolygon(), PanoDetector::FilterMatchesInPair(), PreviewEditCPTool::FindCPInRect(), HuginBase::FindStackNumberForImage(), CPEditorPanel::FineTuneSelectedPoint(), HuginBase::getEstimatedBlendingOrder(), ToolHelper::GetImagesUnderPos(), PanoOperation::RemoveControlPointsOperation::GetInternalCommand(), PanoOperation::CleanControlPointsOperation::GetInternalCommand(), HuginQueue::detail::GetQuotedFilenamesStringForVerdandi(), HuginBase::SmallRemappedImageCache::getRemapped(), HuginBase::SmallRemappedImageCache::invalidate(), HuginBase::Panorama::linkPossibleStacks(), main(), PanoDetector::match(), PanoDetector::matchMultiRow(), PanoDetector::matchPrealigned(), ImagesTreeCtrl::OnContextMenu(), ImagesTreeCtrl::OnHeaderContextMenu(), ImagesTreeCtrl::OnLeftDown(), ImagesTreeCtrl::OnLeftUp(), MaskImageCtrl::OnRightMouseUp(), CPEditorPanel::OnTextPointChange(), HuginBase::PhotometricOptimizer::OptimData::OptimData(), PreviewFrame::panoramaImagesChanged(), MaskEditorPanel::panoramaImagesChanged(), GLPreviewFrame::panoramaImagesChanged(), HuginBase::Panorama::printStitcherScript(), PanoCommand::SetActiveImagesCmd::processPanorama(), PanoCommand::UpdateCropFactorCmd::processPanorama(), AutoCtrlPointCreator::readUpdatedControlPoints(), RemoveFromOptVec(), OptimizePhotometricPanel::runOptimizer(), ImagesList::SelectImages(), MaskImageCtrl::SelectPointsInsideMouseRect(), SetGeometricControlPointsUnconnected(), MaskEditorPanel::UpdateCrop(), HuginBase::Panorama::updateCtrlPointErrors(), ImagesTreeCtrl::UpdateGroup(), CPListCtrl::UpdateInternalCPList(), PreviewLayoutLinesTool::updateLineInformation(), ImagesTreeCtrl::UpdateOptimizerVariables(), HuginBase::Panorama::updateOptimizeVector(), and HuginBase::Panorama::updateWhiteBalance().