Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
huginApp Class Reference

The application class for hugin. More...

#include <huginApp.h>

Inheritance diagram for huginApp:
Inheritance graph

Public Member Functions

 huginApp ()
 ctor.
 
virtual ~huginApp ()
 dtor.
 
bool OnInit () override
 pseudo constructor.
 
int OnExit () override
 just for testing purposes
 
wxLocale & GetLocale ()
 return currently active locale
 
wxString GetWorkDir ()
 
const wxString & GetXRCPath ()
 return the current xrc path
 
const wxString & GetDataPath ()
 return the current data path
 
const wxString & GetUtilsBinDir ()
 
const cmsHPROFILE GetMonitorProfile () const
 returns the monitor profile, if no monitor profile was found the sRGB profile is used instead
 
bool HasMonitorProfile () const
 return true if we found a suitable monitor profile and could loading it
 
const wxString & GetMonitorProfileName () const
 return filename of monitor profile
 
- Public Member Functions inherited from ImageCacheApp
bool OnInit () wxOVERRIDE
 
void relayImageLoaded (ImageReadyEvent &event)
 Relay image loaded event when the UI thread is ready to process it.
 

Static Public Member Functions

static huginApp * Get ()
 hack.. kind of a pseudo singleton...
 
static MainFrame * getMainFrame ()
 
- Static Public Member Functions inherited from ImageCacheApp
static void imageLoadedAsync (HuginBase::ImageCache::RequestPtr request, HuginBase::ImageCache::EntryPtr entry)
 Queue up an image loaded event when an image has just loaded.
 

Private Attributes

wxLocale locale
 locale for internationalisation
 
wxString m_workDir
 temporary working directory
 
MainFrame * frame
 
HuginBase::Panorama pano
 
wxString m_xrcPrefix
 
wxString m_DataDir
 
wxString m_utilsBinDir
 
wxString m_monitorProfileName
 
cmsHPROFILE m_monitorProfile
 

Static Private Attributes

static huginApp * m_this = 0
 

Detailed Description

The application class for hugin.

it contains the main frame.

Definition at line 42 of file huginApp.h.

Constructor & Destructor Documentation

◆ huginApp()

huginApp::huginApp ( )

ctor.

Definition at line 147 of file huginApp.cpp.

References DEBUG_TRACE, m_monitorProfile, m_this, and threshold().

◆ ~huginApp()

huginApp::~huginApp ( )
virtual

dtor.

Definition at line 157 of file huginApp.cpp.

References HuginBase::LensDB::LensDB::Clean(), DEBUG_TRACE, m_monitorProfile, and threshold().

Member Function Documentation

◆ Get()

huginApp * huginApp::Get ( )
static

◆ GetDataPath()

const wxString & huginApp::GetDataPath ( )
inline

return the current data path

Definition at line 83 of file huginApp.h.

References m_DataDir.

Referenced by MainFrame::GetSVMModel().

◆ GetLocale()

wxLocale & huginApp::GetLocale ( )
inline

return currently active locale

Definition at line 66 of file huginApp.h.

References locale.

◆ getMainFrame()

MainFrame * huginApp::getMainFrame ( )
static

Definition at line 650 of file huginApp.cpp.

References frame, and m_this.

Referenced by TextureManager::TextureInfo::DefineLevels().

◆ GetMonitorProfile()

const cmsHPROFILE huginApp::GetMonitorProfile ( ) const
inline

returns the monitor profile, if no monitor profile was found the sRGB profile is used instead

Definition at line 94 of file huginApp.h.

References m_monitorProfile.

◆ GetMonitorProfileName()

const wxString & huginApp::GetMonitorProfileName ( ) const
inline

return filename of monitor profile

Definition at line 104 of file huginApp.h.

References m_monitorProfileName.

◆ GetUtilsBinDir()

const wxString & huginApp::GetUtilsBinDir ( )
inline

Definition at line 88 of file huginApp.h.

References m_utilsBinDir.

Referenced by DCRawImport::GetCmdQueueForImport().

◆ GetWorkDir()

wxString huginApp::GetWorkDir ( )
inline

Definition at line 71 of file huginApp.h.

References m_workDir.

◆ GetXRCPath()

const wxString & huginApp::GetXRCPath ( )
inline

return the current xrc path

Definition at line 77 of file huginApp.h.

References m_xrcPrefix.

Referenced by AboutDialog::AboutDialog(), CPImageCtrl::Create(), PreviewPanel::Create(), MainFrame::GetXRCPath(), and MainFrame::MainFrame().

◆ HasMonitorProfile()

bool huginApp::HasMonitorProfile ( ) const
inline

return true if we found a suitable monitor profile and could loading it

Definition at line 99 of file huginApp.h.

References m_monitorProfileName.

Referenced by BrowsePTOFilesDialog::GeneratePreview(), CPImageCtrl::rescaleImage(), MaskImageCtrl::rescaleImage(), and PreviewPanel::updatePreview().

◆ OnExit()

int huginApp::OnExit ( )
override

just for testing purposes

Definition at line 632 of file huginApp.cpp.

References DEBUG_TRACE, and threshold().

◆ OnInit()

bool huginApp::OnInit ( )
override

Member Data Documentation

◆ frame

MainFrame* huginApp::frame
private

Definition at line 125 of file huginApp.h.

Referenced by getMainFrame(), and OnInit().

◆ locale

wxLocale huginApp::locale
private

locale for internationalisation

Definition at line 120 of file huginApp.h.

Referenced by GetLocale(), and OnInit().

◆ m_DataDir

wxString huginApp::m_DataDir
private

Definition at line 136 of file huginApp.h.

Referenced by GetDataPath(), and OnInit().

◆ m_monitorProfile

cmsHPROFILE huginApp::m_monitorProfile
private

Definition at line 141 of file huginApp.h.

Referenced by GetMonitorProfile(), huginApp(), OnInit(), and ~huginApp().

◆ m_monitorProfileName

wxString huginApp::m_monitorProfileName
private

Definition at line 140 of file huginApp.h.

Referenced by GetMonitorProfileName(), HasMonitorProfile(), and OnInit().

◆ m_this

huginApp * huginApp::m_this = 0
staticprivate

Definition at line 128 of file huginApp.h.

Referenced by Get(), getMainFrame(), and huginApp().

◆ m_utilsBinDir

wxString huginApp::m_utilsBinDir
private

Definition at line 138 of file huginApp.h.

Referenced by GetUtilsBinDir(), and OnInit().

◆ m_workDir

wxString huginApp::m_workDir
private

temporary working directory

Definition at line 123 of file huginApp.h.

Referenced by GetWorkDir(), and OnInit().

◆ m_xrcPrefix

wxString huginApp::m_xrcPrefix
private

Definition at line 134 of file huginApp.h.

Referenced by GetXRCPath(), and OnInit().

◆ pano

HuginBase::Panorama huginApp::pano
private

Definition at line 131 of file huginApp.h.

Referenced by OnInit().


The documentation for this class was generated from the following files: