utils.h File Reference

#include <hugin_shared.h>
#include <string.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <cassert>
#include <vigra/imageinfo.hxx>
#include <lcms2.h>
#include <hugin_utils/platform.h>

Include dependency graph for utils.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hugin_utils

Defines

#define DEBUG_HEADER   hugin_utils::GetCurrentTimeString() <<" (" << __FILE__ << ":" << __LINE__ << ") " << __func__ << "(): "
#define DEBUG_TRACE(msg)
#define DEBUG_DEBUG(msg)
#define DEBUG_INFO(msg)
#define DEBUG_NOTICE(msg)
#define DEBUG_WARN(msg)   { std::cerr << "WARN: " << DEBUG_HEADER << msg << std::endl; }
#define DEBUG_ERROR(msg)   { std::cerr << "ERROR: " << DEBUG_HEADER << msg << std::endl; }
#define DEBUG_FATAL(msg)   { std::cerr << "FATAL: " << DEBUG_HEADER << "(): " << msg << std::endl; }
#define DEBUG_ASSERT(cond)   assert(cond)
#define UTILS_THROW(class, msg)   { std::stringstream o; o << msg; throw(class(o.str().c_str())); };

Functions

std::string hugin_utils::GetCurrentTimeString ()
 current time as a string
std::string hugin_utils::doubleToString (double d, int fractionaldigits=-1)
 convert a double to a string, suitable for display within a GUI.
template<typename STR>
bool hugin_utils::stringToDouble (const STR &str_, double &dest)
 convert a string to a double, ignore localisation.
bool hugin_utils::stringToInt (const std::string &s, int &val)
 convert string to integer value, returns true, if sucessful
bool hugin_utils::stringToUInt (const std::string &s, unsigned int &val)
 convert string to unsigned integer value, returns true, if sucessful
std::string hugin_utils::getPathPrefix (const std::string &filename)
 Get the path to a filename.
std::string hugin_utils::getExtension (const std::string &basename)
 Get extension of a filename.
std::string hugin_utils::stripPath (const std::string &filename)
 remove the path of a filename (mainly useful for gui display of filenames)
std::string hugin_utils::stripExtension (const std::string &basename)
 remove extension of a filename
std::string hugin_utils::StrTrim (const std::string &str)
 remove trailing and leading white spaces and tabs
std::vector< std::stringhugin_utils::SplitString (const std::string &s, const std::string &sep)
 split string s at given sep, returns vector of strings
void hugin_utils::ReplaceAll (std::string &s, const std::string &oldChar, char newChar)
 replace all characters oldChar in s with newChar
template<class str>
str hugin_utils::QuoteStringInternal (const str &arg, const str &quotechar, const str &replacements)
void hugin_utils::ControlPointErrorColour (const double cperr, double &r, double &g, double &b)
bool hugin_utils::FileExists (const std::string &filename)
 checks if file exists
std::string hugin_utils::GetAbsoluteFilename (const std::string &filename)
 returns the full absolute filename
std::string hugin_utils::GetDataDir ()
 returns the full path to the data directory
std::string hugin_utils::GetUserAppDataDir ()
 returns the directory for user specific Hugin settings, e.g.
bool hugin_utils::initGPU (int *argcp, char **argv)
 Try to initalise GLUT and GLEW, and create an OpenGL context for GPU stitching.
bool hugin_utils::wrapupGPU ()
 cleanup GPU settings
std::string hugin_utils::GetHuginVersion ()
 return a string with version numbers
std::string hugin_utils::GetICCDesc (const vigra::ImageImportInfo::ICCProfile &iccProfile)
 returns description of given icc profile
std::string hugin_utils::GetICCDesc (const cmsHPROFILE &profile)


Detailed Description

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$Id$

This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with this software. If not, see <http://www.gnu.org/licenses/>.

Definition in file utils.h.


Define Documentation

#define DEBUG_ASSERT ( cond   )     assert(cond)

Definition at line 80 of file utils.h.

Referenced by PreviewIdentifyTool::AfterDrawImagesEvent(), vigra_ext::applyRect(), AutoPanoSift::automatch(), PreviewIdentifyTool::BeforeDrawImageEvent(), TextureManager::BindTexture(), HuginBase::MaskPolygon::clipPolygon(), MeshManager::MeshInfo::CompileList(), CPListFrame::CPListFrame(), PanoPanel::Create(), OptimizePhotometricPanel::Create(), OptimizePanel::Create(), MaskEditorPanel::Create(), ImagesPanel::Create(), CPEditorPanel::Create(), vigra_ext::createTiffDirectory(), TextureManager::DrawImage(), GreatCircles::drawLineFromSpherical(), EVT_BUTTON(), CPEditorPanel::FineTuneSelectedPoint(), MainFrame::Get(), huginApp::Get(), HuginBase::ConstStandardImageVariableGroups::getLens(), HuginBase::ConstImageVariableGroup::getPartNumber(), HuginBase::PTScriptParsing::getPTDoubleParam(), TextureManager::GetTextureName(), GLPreviewFrame::GLPreviewFrame(), PreviewIdentifyTool::HighlightColour(), ImagesTreeCtrl::Init(), ImagesList::Init(), vigra_ext::ROIImage< RemapImage, AlphaImage >::lowerRight(), MainFrame::MainFrame(), vigra_ext::ROIImage< RemapImage, AlphaImage >::maskLowerRight(), vigra_ext::ROIImage< RemapImage, AlphaImage >::maskUpperLeft(), CPEditorPanel::NewPointChange(), PreviewFrame::OnShowAll(), PreviewFrame::OnShowNone(), GLPreviewFrame::OnShowNone(), HuginBase::Nona::TiffMultiLayerRemapper< ImageType, AlphaImageType >::prepareOutputFile(), PreviewFrame::PreviewFrame(), HuginBase::PTScriptParsing::readVar(), PreviewIdentifyTool::ShowImageNumber(), HuginBase::ImageCache::softFlush(), HuginBase::Nona::MultiImageRemapper< vigra::FRGBImage, AlphaImageType >::stitch(), HuginBase::Nona::stitchPanorama(), PreviewIdentifyTool::StopUpdating(), TextureManager::TextureInfo::TextureInfo(), HuginBase::PanoCommand< std::string >::undo(), PanoCommand::undo(), PreviewIdentifyTool::UpdateWithNewImageSet(), and vigra_ext::ROIImage< RemapImage, AlphaImage >::upperLeft().

#define DEBUG_DEBUG ( msg   ) 

Definition at line 68 of file utils.h.

Referenced by PanosphereOverviewProjectionGridTool::AfterDrawImagesBackEvent(), PreviewProjectionGridTool::AfterDrawImagesEvent(), PanosphereOverviewProjectionGridTool::AfterDrawImagesFrontEvent(), HuginBase::PTOptEstimator::agree(), AutoPanoSift::automatch(), vigra_ext::blend(), MaskImageCtrl::calcAutoScaleFactor(), CPImageCtrl::calcAutoScaleFactor(), HuginBase::StraightenPanorama::calcStraighteningRotation(), MeshManager::CheckUpdate(), AutoCtrlPointCreator::Cleanup(), MeshManager::MeshInfo::CompileList(), correctImage(), PreviewPanel::Create(), ImagesList::Create(), GLwxAuiManager::CreateFloatingFrame(), ImagesList::CreateItem(), PanosphereOverviewProjectionGridTool::createMesh(), TextureManager::TextureInfo::CreateTexture(), CPListCtrl::DeleteSelected(), HuginBase::AutoOptimise::OptimiseVisitor::discover_vertex(), PanoPanel::DoStitch(), VisualizationState::DoUpdates(), ViewState::DoUpdates(), PanoPanel::DoUserDefinedStitch(), PreviewPanel::DrawPreview(), HuginBase::estimateImageAlpha(), CPEditorPanel::EstimatePoint(), vigra_ext::extractRandomPoints(), PanoPanel::FileFormatChanged(), HuginBase::RANSACOptimizer::findInliers(), vigra_ext::findInterestPointsPartial(), FineTuneInterestPoints(), CPEditorPanel::FineTuneSelectedPoint(), VisualizationState::FinishedDraw(), PanoPanel::FusionChanged(), HuginBase::Exiv2Helper::getCropFactor(), HuginBase::PTScriptParsing::getPTDoubleParam(), HuginBase::SmallRemappedImageCache::getRemapped(), HuginBase::ImageCache::getSmallImage(), LocalizedFileTipProvider::GetTip(), HuginBase::PanoramaOptions::getVFOV(), PanoPanel::HDRFileFormatChanged(), PanoPanel::HDRMergeChanged(), HuginBase::Nona::SpaceTransform::InitRadialCorrect(), HuginBase::SmallRemappedImageCache::invalidate(), MyExecPanel::KillProcess(), HuginBase::PTOptEstimator::leastSquaresEstimate(), HuginBase::ImageCache::loadImageSafely(), LoadLensParametersChoose(), MainFrame::LoadProjectFile(), vigra_ext::ROIImage< RemapImage, AlphaImage >::lowerRight(), main(), vigra_ext::ROIImage< RemapImage, AlphaImage >::maskLowerRight(), vigra_ext::ROIImage< RemapImage, AlphaImage >::maskUpperLeft(), CPImageCtrl::mouseMoveEvent(), PreviewPanel::mousePressLMBEvent(), CPImageCtrl::mousePressLMBEvent(), CPImageCtrl::mousePressMMBEvent(), PreviewPanel::mousePressRMBEvent(), CPImageCtrl::mouseReleaseLMBEvent(), CPImageCtrl::mouseReleaseMMBEvent(), CPImageCtrl::mouseReleaseRMBEvent(), vigra_ext::multithreadOperation(), GLwxAuiFloatingFrame::OnActivate(), PreviewFrame::OnChangeDisplayedImgs(), PreviewFrame::OnChangeFOV(), GLPreviewFrame::OnChangeFOV(), PreviewFrame::OnClose(), OptimizePhotometricPanel::OnClose(), OptimizePanel::OnClose(), GLPreviewFrame::OnClose(), CPListFrame::OnClose(), CPEditorPanel::OnCPEvent(), HFOVDialog::OnCropFactorChanged(), CPImageCtrl::OnDraw(), MainFrame::OnFineTuneAll(), HFOVDialog::OnFocalLengthChanged(), HFOVDialog::OnHFOVChanged(), huginApp::OnInit(), PanoPanel::OnJPEGQualityText(), CPImageCtrl::OnKey(), CPEditorPanel::OnKey(), CPImageCtrl::OnKeyDown(), TextKillFocusHandler::OnKillFocus(), MaskImageCtrl::OnLeftMouseDown(), MaskImageCtrl::OnLeftMouseUp(), GLwxAuiFloatingFrame::OnMoveFinished(), PreviewFrame::OnNumTransform(), MyExecDialog::OnProcessTerminate(), PreviewFrame::OnProjectionChoice(), GLPreviewFrame::OnProjectionChoice(), MainFrame::OnSaveProject(), ImagesPanel::OnSelectionChanged(), GLPreviewFrame::OnShowEvent(), MyPipedProcess::OnTerminate(), TextKillFocusHandler::OnTextChange(), HFOVDialog::OnTypeChanged(), HuginBase::Nona::StackingBlender::operator()(), PT::PanoramaObserver::panoramaChanged(), ViewState::panoramaChanged(), PreviewPanel::panoramaChanged(), PreviewFrame::panoramaChanged(), GLPreviewFrame::panoramaChanged(), CPEditorPanel::panoramaChanged(), PT::PanoramaObserver::panoramaImagesChanged(), ImagesPanel::panoramaImagesChanged(), GLPreviewFrame::PauseResize(), vigra_ext::PointFineTune(), vigra_ext::PointFineTuneRotSearch(), HuginBase::Nona::TiffMultiLayerRemapper< ImageType, AlphaImageType >::prepareOutputFile(), PT::wxApplyTemplateCmd::processPanorama(), PT::wxLoadPTProjectCmd::processPanorama(), PT::wxAddCtrlPointGridCmd::processPanorama(), PanoCommand::wxApplyTemplateCmd::processPanorama(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), PanoCommand::wxAddCtrlPointGridCmd::processPanorama(), PanoPanel::ProjectionChanged(), HuginBase::PTOptEstimator::PTOptEstimator(), HuginBase::PTScriptParsing::readVar(), CommandHistory::redo(), PanoCommand::CommandHistory::redo(), VisualizationState::Redraw(), GLViewer::RedrawE(), reduceFilesToHDR(), GLViewer::RefreshWrapper(), HuginBase::Nona::remapImage(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), PanoPanel::RemapperChanged(), HuginBase::Panorama::removeDuplicateCtrlPoints(), CPImageCtrl::rescaleImage(), GLViewer::Resized(), HuginBase::RotatePanorama::rotatePano(), HuginBase::Nona::TiffMultiLayerRemapper< ImageType, AlphaImageType >::saveRemapped(), CPEditorPanel::SelectGlobalPoint(), CPEditorPanel::SelectLocalPoint(), CPImageCtrl::selectPoint(), HuginBase::PTools::setDestImage(), HuginBase::PanoramaOptions::setHeight(), HuginBase::Panorama::setMementoToCopyOf(), CPImageCtrl::setNewPoint(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::setPanoImage(), MaskImageCtrl::setScale(), CPImageCtrl::setScale(), GLOverview::setUp(), GLPreview::setUp(), HuginBase::PanoramaOptions::setVFOV(), HuginBase::PanoramaOptions::setWidth(), MainFrame::ShowCtrlPoint(), CPImageCtrl::showPosition(), CPImageCtrl::showSearchArea(), HuginBase::SmartOptimise::smartOptimize(), HuginBase::ImageCache::softFlush(), HuginBase::ImageCache::spawnAsyncThread(), PanoPanel::StackCheck(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::stitchPanorama(), RunStitchPanel::StitchProject(), hugin_utils::stringToDouble(), vigra_ext::subpixelMaxima(), vigra_ext::transformImage(), vigra_ext::transformImageAlpha(), vigra_ext::transformImageAlphaGPU(), vigra_ext::transformImageGPU(), hugin_utils::traverseEdges(), CommandHistory::undo(), PanoCommand::CommandHistory::undo(), VertexCoordRemapper::UpdateAndResetIndex(), CPEditorPanel::UpdateDisplay(), PreferencesDialog::UpdateDisplayData(), PreviewPanel::updatePreview(), vigra_ext::ROIImage< RemapImage, AlphaImage >::upperLeft(), MainFrame::~MainFrame(), and TextureManager::TextureInfo::~TextureInfo().

#define DEBUG_ERROR ( msg   )     { std::cerr << "ERROR: " << DEBUG_HEADER << msg << std::endl; }

Definition at line 76 of file utils.h.

Referenced by AutoPanoSift::automatch(), ProjectionGridTool::createTexture(), TextureManager::TextureInfo::DefineLevels(), PanoPanel::DoStitch(), PanoPanel::DoUserDefinedStitch(), HuginBase::PanoramaOptions::getFormatFromName(), HuginBase::ConstStandardImageVariableGroups::getLens(), TextureManager::GetMaxTextureSizePower(), HuginBase::ImageCache::loadImageSafely(), MainFrame::LoadProjectFile(), HuginBase::ImageCache::loadSafely(), main(), CPImageCtrl::mousePressLMBEvent(), PreviewFrame::OnChangeDisplayedImgs(), CPEditorPanel::OnCPEvent(), huginApp::OnInit(), MaskEditorPanel::OnZoom(), CPEditorPanel::OnZoom(), vigra_ext::PointFineTuneRotSearch(), PT::wxLoadPTProjectCmd::processPanorama(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), PT::LoadPTProjectCmd::processPanorama(), PanoCommand::LoadPTProjectCmd::processPanorama(), AutoCtrlPointCreator::readUpdatedControlPoints(), CommandHistory::redo(), PanoCommand::CommandHistory::redo(), HuginBase::Panorama::removeDuplicateCtrlPoints(), CPEditorPanel::SelectGlobalPoint(), TextureManager::TextureInfo::SetMaxLevel(), TextureManager::TextureInfo::SetParameters(), GLViewer::SetUpContext(), HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::stitchPanoIntern(), HuginBase::Nona::stitchPanorama(), vigra_ext::subpixelMaxima(), CommandHistory::undo(), PanoCommand::CommandHistory::undo(), and PreviewPanel::updatePreview().

#define DEBUG_FATAL ( msg   )     { std::cerr << "FATAL: " << DEBUG_HEADER << "(): " << msg << std::endl; }

Definition at line 78 of file utils.h.

Referenced by CommandHistory::addCommand(), PanoCommand::CommandHistory::addCommand(), MainFrame::Get(), huginApp::Get(), HuginBase::ImageCache::loadImageSafely(), CPEditorPanel::OnCPEvent(), and HuginBase::PTools::setFullImage().

#define DEBUG_HEADER   hugin_utils::GetCurrentTimeString() <<" (" << __FILE__ << ":" << __LINE__ << ") " << __func__ << "(): "

Definition at line 53 of file utils.h.

#define DEBUG_INFO ( msg   ) 

Definition at line 69 of file utils.h.

Referenced by TextureManager::CheckUpdate(), MeshManager::CheckUpdate(), TextureManager::CleanTextures(), MeshManager::MeshInfo::CompileList(), ProjectionGridTool::createTexture(), TextureManager::TextureInfo::DefineLevels(), MainFrame::DisplayHelp(), PanoPanel::DoCalcFOV(), PanoPanel::DoCalcOptimalROI(), PanoPanel::DoCalcOptimalWidth(), EVT_NOTEBOOK_PAGE_CHANGED(), PanoOperation::AddImagesSeriesOperation::GetInternalCommand(), TextureManager::GetMaxTextureSizePower(), HuginBase::ImageCache::getSmallImage(), PanoPanel::HeightChanged(), PanoPanel::HFOVChanged(), HuginBase::ImageVariable< Type >::linkWith(), LensCalFrame::OnAddImage(), GLPreviewFrame::OnAutocrop(), BatchFrame::OnButtonHelp(), GLPreviewFrame::OnCropFactorChanged(), GLPreviewFrame::OnExposureChanged(), PreviewFrame::OnFitPano(), GLPreviewFrame::OnFitPano(), GLPreviewFrame::OnFocalLengthChanged(), GLPreviewFrame::OnHFOVChanged(), GLPreviewFrame::OnProjParameterChanged(), ImagesPanel::OnSize(), GLPreviewFrame::OnStackAutocrop(), PreviewFrame::OnTextCtrlChanged(), GLPreviewFrame::OnVFOVChanged(), PT::PanoramaObserver::panoramaChanged(), PT::PanoramaObserver::panoramaImagesChanged(), PT::wxApplyTemplateCmd::processPanorama(), PT::wxLoadPTProjectCmd::processPanorama(), PT::wxAddImagesCmd::processPanorama(), PanoCommand::wxApplyTemplateCmd::processPanorama(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), PanoCommand::wxAddImagesCmd::processPanorama(), GLViewer::Redraw(), HuginBase::RandomPointSampler::sampleRandomPanoPoints(), TextureManager::TextureInfo::SetParameters(), GLViewer::SetUpContext(), PreferencesDialog::UpdateConfigData(), PreviewPanel::updatePreview(), AppBase::MultiProgressDisplayAdaptor::updateProgressDisplay(), PanoPanel::VFOVChanged(), and PanoPanel::WidthChanged().

#define DEBUG_NOTICE ( msg   ) 

Definition at line 70 of file utils.h.

Referenced by HuginBase::PanoramaOptions::setHFOV(), and vigra_ext::subpixelMaxima().

#define DEBUG_TRACE ( msg   ) 

Definition at line 67 of file utils.h.

Referenced by MyExecPanel::AddToOutput(), RunStitchPanel::CancelStitch(), CPEditorPanel::changeState(), CPImageCtrl::clearNewPoint(), CPEditorPanel::CPEditorPanel(), CPListFrame::CPListFrame(), PreviewPanel::Create(), PanoPanel::Create(), OptimizePhotometricPanel::Create(), OptimizePanel::Create(), MaskEditorPanel::Create(), ImagesTreeCtrl::Create(), ImagesPanel::Create(), ImagesListMask::Create(), ImagesList::Create(), CPEditorPanel::Create(), CPEditorPanel::CreateNewPoint(), CPImageCtrl::deselect(), MainFrame::DisplayHelp(), PanoPanel::DoCalcFOV(), PreviewPanel::DrawPreview(), HuginBase::ImageCache::Entry::Entry(), EVT_NOTEBOOK_PAGE_CHANGED(), CPImageCtrl::generateMagBitmap(), PanoOperation::CelesteOperation::GetInternalCommand(), PanoOperation::AddImagesSeriesOperation::GetInternalCommand(), GLPreviewFrame::GLPreviewFrame(), huginApp::huginApp(), OptimizePanel::Init(), LensCalFrame::LensCalFrame(), MainFrame::LoadProjectFile(), MainFrame::MainFrame(), CPEditorPanel::NewPointChange(), MainFrame::OnAddImages(), BatchFrame::OnButtonHelp(), CPEditorPanel::OnCelesteButton(), PreviewFrame::OnChangeFOV(), GLPreviewFrame::OnChangeFOV(), PreviewFrame::OnClose(), OptimizePhotometricPanel::OnClose(), OptimizePanel::OnClose(), GLPreviewFrame::OnClose(), CPEditorPanel::OnCPEvent(), CPEditorPanel::OnCPListSelect(), CPEditorPanel::OnDeleteButton(), MainFrame::OnDoStitch(), PanoDropTarget::OnDropFiles(), FileDropTarget::OnDropFiles(), stitchApp::OnExit(), MainFrame::OnExit(), huginApp::OnExit(), MainFrame::OnFineTuneAll(), PreviewFrame::OnFitPano(), GLPreviewFrame::OnFitPano(), huginApp::OnInit(), LensCalApp::OnInit(), ImagesList::OnItemDeselected(), ImagesList::OnItemSelected(), CPImageCtrl::OnKey(), CPImageCtrl::OnKeyDown(), TextKillFocusHandler::OnKillFocus(), CPEditorPanel::OnLeftChoiceChange(), MainFrame::OnLoadProject(), CPImageCtrl::OnMouseEnter(), CPImageCtrl::OnMouseLeave(), MainFrame::OnOptimize(), OptimizePhotometricPanel::OnOptimizeButton(), OptimizePanel::OnOptimizeButton(), GLPreviewFrame::OnOverviewToggle(), RunStitchFrame::OnProcessTerminate(), RunStitchPanel::OnProcessTerminate(), MyExecPanel::OnProcessTerminated(), MainFrame::OnRedo(), PreviewPanel::OnResize(), PreferencesDialog::OnRestoreDefaults(), CPEditorPanel::OnRightChoiceChange(), MainFrame::OnSaveProject(), MainFrame::OnSaveProjectAs(), MainFrame::OnSavePTStitcherAs(), MainFrame::OnShowCPFrame(), GLPreviewFrame::OnShowEvent(), MainFrame::OnShowPrefs(), MaskImageCtrl::OnSize(), MainFrame::OnSize(), CPImageCtrl::OnSize(), TextKillFocusHandler::OnTextChange(), TextKillFocusHandler::OnTextEnter(), CPEditorPanel::OnTextPointChange(), MainFrame::OnTogglePreviewFrame(), GLPreviewFrame::OnTrackChangeFOV(), MainFrame::OnUndo(), OptimizePanel::OptimizePanel(), PanoPanel::panoramaChanged(), CPEditorPanel::panoramaChanged(), PreviewPanel::panoramaImagesChanged(), MainFrame::panoramaImagesChanged(), ImagesPanel::panoramaImagesChanged(), vigra_ext::PointFineTuneRotSearch(), PreferencesDialog::PreferencesDialog(), PreviewFrame::PreviewFrame(), PT::wxLoadPTProjectCmd::processPanorama(), PanoCommand::wxLoadPTProjectCmd::processPanorama(), vigra_ext::reduceToNextLevelOld(), RestoreFramePosition(), CPEditorPanel::SelectLocalPoint(), CPImageCtrl::selectPoint(), MaskImageCtrl::setImage(), MaskEditorPanel::setImage(), CPImageCtrl::setImage(), CPEditorPanel::setLeftImage(), CPEditorPanel::setRightImage(), PanoPanel::StackCheck(), stitchApp::stitchApp(), RunStitchPanel::StitchProject(), StoreFramePosition(), CPImageCtrl::update(), PreferencesDialog::UpdateConfigData(), MaskEditorPanel::UpdateCropDisplay(), PreviewPanel::updatePreview(), CPEditorPanel::~CPEditorPanel(), CPImageCtrl::~CPImageCtrl(), CPListFrame::~CPListFrame(), HuginBase::ImageCache::Entry::~Entry(), GLPreviewFrame::~GLPreviewFrame(), huginApp::~huginApp(), ImagesList::~ImagesList(), ImagesPanel::~ImagesPanel(), ImagesTreeCtrl::~ImagesTreeCtrl(), LensCalFrame::~LensCalFrame(), MainFrame::~MainFrame(), MaskEditorPanel::~MaskEditorPanel(), OptimizePanel::~OptimizePanel(), OptimizePhotometricPanel::~OptimizePhotometricPanel(), PanoPanel::~PanoPanel(), HuginBase::Panorama::~Panorama(), PreferencesDialog::~PreferencesDialog(), PreviewFrame::~PreviewFrame(), PreviewPanel::~PreviewPanel(), and stitchApp::~stitchApp().

#define DEBUG_WARN ( msg   )     { std::cerr << "WARN: " << DEBUG_HEADER << msg << std::endl; }

Definition at line 74 of file utils.h.

Referenced by const_map_get(), CPEditorPanel::EstimatePoint(), map_get(), PreviewFrame::OnBlendChoice(), PreviewFrame::OnOutputChoice(), PreviewFrame::OnProjectionChoice(), PT::PanoramaObserver::panoramaChanged(), PT::PanoramaObserver::panoramaImagesChanged(), HuginBase::PTScriptParsing::ImgInfo::parse(), HuginBase::Panorama::setOptions(), GLPreviewFrame::updateBlendMode(), and PreferencesDialog::UpdateDisplayData().

#define UTILS_THROW ( class,
msg   )     { std::stringstream o; o << msg; throw(class(o.str().c_str())); };

Definition at line 128 of file utils.h.

Referenced by HuginBase::Nona::stitchPanoGray_32_float(), HuginBase::Nona::stitchPanoGray_8_16(), HuginBase::Nona::stitchPanorama(), HuginBase::Nona::stitchPanoRGB_32_float(), and HuginBase::Nona::stitchPanoRGB_8_16().


Generated on 29 Aug 2015 for Hugintrunk by  doxygen 1.4.7