PanoPanel Class Reference

Define the pano edit panel. More...

#include <PanoPanel.h>

Inheritance diagram for PanoPanel:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PanoPanel ()
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel"))
void Init (HuginBase::Panorama *pano)
virtual ~PanoPanel (void)
virtual void panoramaChanged (HuginBase::Panorama &pano)
 this is called whenever the panorama has changed.
virtual void panoramaImagesChanged (HuginBase::Panorama &pano, const HuginBase::UIntSet &imgNr)
 notifies about changes to images
void DoStitch ()
 stitching using hugin_stitch_project
void DoSendToBatch ()
 stitching with PTBatcherGUI
void DoUserDefinedStitch ()
 stitching with user defined file
void SetGuiLevel (GuiLevel newGuiLevel)

Private Types

 NONA = 0
 PTSTITCHER
 PROFILE_CUSTOM = 0
 PROFILE_JPEG = 0
 PROFILE_DRAFT_JPEG
 PROFILE_TIFF
 PROFILE_LAYER_TIFF
 PROFILE_LAYER_PSD
enum  StitchingEngine { NONA = 0, PTSTITCHER }
 the supported stitching engines More...
enum  StitchingPresets {
  PROFILE_CUSTOM = 0, PROFILE_JPEG = 0, PROFILE_DRAFT_JPEG, PROFILE_TIFF,
  PROFILE_LAYER_TIFF, PROFILE_LAYER_PSD
}
 the supported defaults More...

Private Member Functions

bool StackCheck (HuginBase::Panorama &pano)
void UpdateDisplay (const HuginBase::PanoramaOptions &opt, const bool hasStacks)
void SetStitcher (HuginBase::PanoramaOptions::Remapper stitcher)
void QuickModeChanged (wxCommandEvent &e)
void ApplyQuickMode (int preset)
void HFOVChanged (wxCommandEvent &e)
void HFOVChangedSpin (wxSpinEvent &e)
void VFOVChanged (wxCommandEvent &e)
void VFOVChangedSpin (wxSpinEvent &e)
void ProjectionChanged (wxCommandEvent &e)
void OnOutputFilesChanged (wxCommandEvent &e)
void RemapperChanged (wxCommandEvent &e)
void OnRemapperOptions (wxCommandEvent &e)
void FusionChanged (wxCommandEvent &e)
void OnFusionOptions (wxCommandEvent &e)
void HDRMergeChanged (wxCommandEvent &e)
void OnHDRMergeOptions (wxCommandEvent &e)
void BlenderChanged (wxCommandEvent &e)
void OnBlenderOptions (wxCommandEvent &e)
void FileFormatChanged (wxCommandEvent &e)
void HDRFileFormatChanged (wxCommandEvent &e)
void OnJPEGQualityText (wxCommandEvent &e)
void OnNormalTIFFCompression (wxCommandEvent &e)
void OnHDRTIFFCompression (wxCommandEvent &e)
void OnHDRFileFormatOpts (wxCommandEvent &e)
void WidthChanged (wxCommandEvent &e)
void HeightChanged (wxCommandEvent &e)
void ROIChanged (wxCommandEvent &e)
void DoCalcFOV (wxCommandEvent &e)
void OnDoStitch (wxCommandEvent &e)
void DoCalcOptimalWidth (wxCommandEvent &e)
 set the highest sensible width
void DoCalcOptimalROI (wxCommandEvent &e)
 set the largest rectangle for crop ROI
void EnableControls (bool enable)
 enable/disable control influenced by quick mode
bool CheckGoodSize ()
 Check the canvas size isn't overly huge, or the user knows what they are doing.
bool CheckHasImages ()
 check if the output contains images at all
bool CheckFreeSpace (const wxString &folder)
 check if there is enough free disk space

Private Attributes

HuginBase::Panoramapano
GuiLevel m_guiLevel
bool updatesDisabled
HuginBase::PanoramaOptions m_oldOpt
double m_oldVFOV
bool m_keepViewOnResize
bool m_hasStacks
wxChoice * m_ProjectionChoice
wxTextCtrl * m_HFOVText
wxTextCtrl * m_VFOVText
wxTextCtrl * m_WidthTxt
wxTextCtrl * m_HeightTxt
wxTextCtrl * m_ROILeftTxt
wxTextCtrl * m_ROIRightTxt
wxTextCtrl * m_ROITopTxt
wxTextCtrl * m_ROIBottomTxt
wxChoice * m_RemapperChoice
wxChoice * m_FusionChoice
wxChoice * m_HDRMergeChoice
wxChoice * m_BlenderChoice
wxButton * m_StitchButton
wxButton * m_CalcHFOVButton
wxButton * m_CalcOptWidthButton
wxButton * m_CalcOptROIButton
wxChoice * m_FileFormatChoice
wxStaticText * m_FileFormatOptionsLabel
wxTextCtrl * m_FileFormatJPEGQualityText
wxChoice * m_FileFormatTIFFCompChoice
wxChoice * m_HDRFileFormatChoice
wxStaticText * m_HDRFileFormatLabelTIFFCompression
wxChoice * m_FileFormatHDRTIFFCompChoice
wxScrolledWindow * m_pano_ctrls

Detailed Description

Define the pano edit panel.

Definition at line 44 of file PanoPanel.h.


Member Enumeration Documentation

enum PanoPanel::StitchingEngine [private]

the supported stitching engines

Enumerator:
NONA 
PTSTITCHER 

Definition at line 92 of file PanoPanel.h.

enum PanoPanel::StitchingPresets [private]

the supported defaults

Enumerator:
PROFILE_CUSTOM 
PROFILE_JPEG 
PROFILE_DRAFT_JPEG 
PROFILE_TIFF 
PROFILE_LAYER_TIFF 
PROFILE_LAYER_PSD 

Definition at line 95 of file PanoPanel.h.


Constructor & Destructor Documentation

PanoPanel::HFOVChanged PanoPanel::DoCalcFOV PanoPanel::HeightChanged PanoPanel::ROIChanged PanoPanel::ROIChanged PanoPanel::DoCalcOptimalROI PanoPanel::OnOutputFilesChanged PanoPanel::OnOutputFilesChanged PanoPanel::OnOutputFilesChanged PanoPanel::OnOutputFilesChanged PanoPanel::OnOutputFilesChanged PanoPanel::RemapperChanged PanoPanel::FusionChanged PanoPanel::HDRMergeChanged PanoPanel::BlenderChanged PanoPanel::FileFormatChanged PanoPanel::OnJPEGQualityText PanoPanel::OnHDRTIFFCompression PanoPanel::PanoPanel (  ) 

Definition at line 116 of file PanoPanel.cpp.

PanoPanel::~PanoPanel ( void   )  [virtual]

Definition at line 273 of file PanoPanel.cpp.

References DEBUG_TRACE, m_FileFormatJPEGQualityText, m_HeightTxt, m_HFOVText, m_RemapperChoice, m_ROIBottomTxt, m_ROILeftTxt, m_ROIRightTxt, m_ROITopTxt, m_VFOVText, m_WidthTxt, pano, and HuginBase::Panorama::removeObserver().


Member Function Documentation

void PanoPanel::ApplyQuickMode ( int  preset  )  [private]

void PanoPanel::BlenderChanged ( wxCommandEvent &  e  )  [private]

Definition at line 824 of file PanoPanel.cpp.

References CommandHistory::addCommand(), HuginBase::PanoramaOptions::blendMode, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), GetSelectedValue(), m_BlenderChoice, and pano.

bool PanoPanel::CheckFreeSpace ( const wxString &  folder  )  [private]

check if there is enough free disk space

Definition at line 1673 of file PanoPanel.cpp.

References MainFrame::Get(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::getROI(), pano, and MainFrame::ShowStitcherTab().

Referenced by DoSendToBatch(), DoStitch(), and DoUserDefinedStitch().

bool PanoPanel::CheckGoodSize (  )  [private]

Check the canvas size isn't overly huge, or the user knows what they are doing.

The canvas size can become too big if, for example, the field of view is more than 180 degrees, then you select rectilinear proection, then press "Calculate optimal size", or stitch a wide stereographic image using the assistant tab. If the canvas size is unreasonable, this function will display a warning. The user has the option to continue.

Returns:
true if the canvas size is reasonable, or the user presses "continue anyway" on the warning, false if the stitch should be aborted

Todo:
(Possibly) make a dialog manually with properly labelled buttons.

Definition at line 1560 of file PanoPanel.cpp.

References MainFrame::Get(), HuginBase::Panorama::getOptions(), pano, and MainFrame::ShowStitcherTab().

Referenced by DoSendToBatch(), DoStitch(), and DoUserDefinedStitch().

bool PanoPanel::CheckHasImages (  )  [private]

check if the output contains images at all

Definition at line 1657 of file PanoPanel.cpp.

References HuginBase::Panorama::getActiveImages(), HuginBase::getImagesinROI(), and pano.

Referenced by DoSendToBatch(), DoStitch(), and DoUserDefinedStitch().

bool PanoPanel::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("panel") 
)

Definition at line 122 of file PanoPanel.cpp.

References DEBUG_ASSERT, DEBUG_TRACE, FillBlenderList(), m_BlenderChoice, m_CalcHFOVButton, m_CalcOptROIButton, m_CalcOptWidthButton, m_FileFormatChoice, m_FileFormatHDRTIFFCompChoice, m_FileFormatJPEGQualityText, m_FileFormatOptionsLabel, m_FileFormatTIFFCompChoice, m_FusionChoice, m_hasStacks, m_HDRFileFormatChoice, m_HDRFileFormatLabelTIFFCompression, m_HDRMergeChoice, m_HeightTxt, m_HFOVText, m_keepViewOnResize, m_pano_ctrls, m_ProjectionChoice, m_RemapperChoice, m_ROIBottomTxt, m_ROILeftTxt, m_ROIRightTxt, m_ROITopTxt, m_StitchButton, m_VFOVText, and m_WidthTxt.

void PanoPanel::DoCalcFOV ( wxCommandEvent &  e  )  [private]

Definition at line 917 of file PanoPanel.cpp.

References CommandHistory::addCommand(), DEBUG_INFO, DEBUG_TRACE, HuginBase::Panorama::getActiveImages(), HuginBase::PanoramaOptions::getHeight(), HuginBase::PanoramaOptions::getHFOV(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HuginBase::CalculateFitPanorama::getResultHeight(), HuginBase::CalculateFitPanorama::getResultHorizontalFOV(), HuginBase::PanoramaOptions::getVFOV(), HuginBase::PanoramaOptions::getWidth(), pano, hugin_utils::roundi(), HuginBase::PanoramaAlgorithm::run(), HuginBase::PanoramaOptions::setHeight(), and HuginBase::PanoramaOptions::setHFOV().

void PanoPanel::DoCalcOptimalROI ( wxCommandEvent &  e  )  [private]

set the largest rectangle for crop ROI

Definition at line 956 of file PanoPanel.cpp.

References CommandHistory::addCommand(), DEBUG_INFO, HuginBase::Panorama::getActiveImages(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HuginBase::CalculateOptimalROI::getResultOptimalROI(), HuginBase::PanoramaAlgorithm::hasRunSuccessfully(), pano, HuginBase::PanoramaAlgorithm::run(), and HuginBase::PanoramaOptions::setROI().

void PanoPanel::DoCalcOptimalWidth ( wxCommandEvent &  e  )  [private]

set the highest sensible width

Definition at line 939 of file PanoPanel.cpp.

References CommandHistory::addCommand(), HuginBase::CalculateOptimalScale::calcOptimalScale(), DEBUG_INFO, HuginBase::Panorama::getActiveImages(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::getWidth(), pano, hugin_utils::roundi(), and HuginBase::PanoramaOptions::setWidth().

void PanoPanel::DoSendToBatch (  ) 

stitching with PTBatcherGUI

Definition at line 1113 of file PanoPanel.cpp.

References CheckFreeSpace(), CheckGoodSize(), CheckHasImages(), containsInvalidCharacters(), hugin_utils::FileExists(), MainFrame::Get(), getDefaultOutputName(), HuginBase::Panorama::getNrOfImages(), MainFrame::getProjectName(), HUGIN_PROCESSOR_OVERWRITE, HUGIN_PROCESSOR_START, HUGIN_PROCESSOR_VERBOSE, HuginBase::Panorama::isDirty(), MainFrame::OnSaveProject(), pano, makefile::prefix(), HuginBase::LensDB::SaveLensDataFromPano(), ShowFilenameWarning(), hugin_utils::wxQuoteFilename(), and hugin_utils::wxQuoteString().

Referenced by OnDoStitch().

void PanoPanel::DoStitch (  ) 

stitching using hugin_stitch_project

Definition at line 986 of file PanoPanel.cpp.

References CheckFreeSpace(), CheckGoodSize(), CheckHasImages(), containsInvalidCharacters(), DEBUG_DEBUG, DEBUG_ERROR, fill_set(), MainFrame::Get(), getDefaultOutputName(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), HUGIN_CONV_FILENAME, HUGIN_PROCESSOR_OVERWRITE, pano, makefile::prefix(), HuginBase::Panorama::printPanoramaScript(), HuginBase::LensDB::SaveLensDataFromPano(), ShowFilenameWarning(), and hugin_utils::wxQuoteFilename().

Referenced by OnDoStitch().

void PanoPanel::DoUserDefinedStitch (  ) 

stitching with user defined file

Definition at line 1238 of file PanoPanel.cpp.

References CheckFreeSpace(), CheckGoodSize(), CheckHasImages(), containsInvalidCharacters(), DEBUG_DEBUG, DEBUG_ERROR, fill_set(), MainFrame::Get(), getDefaultOutputName(), HuginBase::Panorama::getNrOfImages(), HuginBase::Panorama::getOptimizeVector(), HuginBase::Panorama::getOptions(), HUGIN_CONV_FILENAME, HUGIN_PROCESSOR_OVERWRITE, pano, makefile::prefix(), HuginBase::Panorama::printPanoramaScript(), ShowFilenameWarning(), and hugin_utils::wxQuoteFilename().

Referenced by MainFrame::OnUserDefinedStitch().

void PanoPanel::EnableControls ( bool  enable  )  [private]

enable/disable control influenced by quick mode

Definition at line 768 of file PanoPanel.cpp.

References m_BlenderChoice, m_RemapperChoice, and m_WidthTxt.

void PanoPanel::FileFormatChanged ( wxCommandEvent &  e  )  [private]

Definition at line 1414 of file PanoPanel.cpp.

References CommandHistory::addCommand(), DEBUG_DEBUG, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), m_FileFormatChoice, HuginBase::PanoramaOptions::outputImageType, and pano.

void PanoPanel::FusionChanged ( wxCommandEvent &  e  )  [private]

Definition at line 861 of file PanoPanel.cpp.

References DEBUG_DEBUG, and m_FusionChoice.

void PanoPanel::HDRFileFormatChanged ( wxCommandEvent &  e  )  [private]

Definition at line 1442 of file PanoPanel.cpp.

References CommandHistory::addCommand(), DEBUG_DEBUG, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), m_HDRFileFormatChoice, HuginBase::PanoramaOptions::outputImageTypeHDR, and pano.

void PanoPanel::HDRMergeChanged ( wxCommandEvent &  e  )  [private]

Definition at line 891 of file PanoPanel.cpp.

References DEBUG_DEBUG, and m_HDRMergeChoice.

void PanoPanel::HeightChanged ( wxCommandEvent &  e  )  [private]

Definition at line 709 of file PanoPanel.cpp.

References CommandHistory::addCommand(), DEBUG_INFO, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), m_HeightTxt, pano, HuginBase::PanoramaOptions::setHeight(), and updatesDisabled.

void PanoPanel::HFOVChanged ( wxCommandEvent &  e  )  [private]

Definition at line 608 of file PanoPanel.cpp.

References CommandHistory::addCommand(), DEBUG_INFO, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::PanoramaOptions::getMaxHFOV(), HuginBase::Panorama::getOptions(), m_HFOVText, pano, HuginBase::PanoramaOptions::setHFOV(), str2double(), and updatesDisabled.

void PanoPanel::HFOVChangedSpin ( wxSpinEvent &  e  )  [private]

void PanoPanel::Init ( HuginBase::Panorama pano  ) 

Definition at line 265 of file PanoPanel.cpp.

References HuginBase::Panorama::addObserver(), pano, and panoramaChanged().

void PanoPanel::OnBlenderOptions ( wxCommandEvent &  e  )  [private]

Definition at line 834 of file PanoPanel.cpp.

References CommandHistory::addCommand(), HuginBase::PanoramaOptions::blendMode, HuginBase::PanoramaOptions::ENBLEND_BLEND, HuginBase::PanoramaOptions::enblendOptions, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HUGIN_ENBLEND_ARGS, and pano.

void PanoPanel::OnDoStitch ( wxCommandEvent &  e  )  [private]

Definition at line 1382 of file PanoPanel.cpp.

References DoSendToBatch(), DoStitch(), and HUGIN_PROCESSOR_GUI.

void PanoPanel::OnFusionOptions ( wxCommandEvent &  e  )  [private]

Definition at line 867 of file PanoPanel.cpp.

References CommandHistory::addCommand(), HuginBase::PanoramaOptions::enfuseOptions, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HUGIN_ENFUSE_ARGS, and pano.

void PanoPanel::OnHDRFileFormatOpts ( wxCommandEvent &  e  )  [private]

void PanoPanel::OnHDRMergeOptions ( wxCommandEvent &  e  )  [private]

Definition at line 897 of file PanoPanel.cpp.

References CommandHistory::addCommand(), HDRMergeOptionsDialog::GetCommandLineArgument(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::HDRMERGE_AVERAGE, HuginBase::PanoramaOptions::hdrMergeMode, HuginBase::PanoramaOptions::hdrmergeOptions, pano, and HDRMergeOptionsDialog::SetCommandLineArgument().

void PanoPanel::OnHDRTIFFCompression ( wxCommandEvent &  e  )  [private]

Definition at line 1505 of file PanoPanel.cpp.

References CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::outputImageTypeHDRCompression, and pano.

void PanoPanel::OnJPEGQualityText ( wxCommandEvent &  e  )  [private]

Definition at line 1464 of file PanoPanel.cpp.

References CommandHistory::addCommand(), DEBUG_DEBUG, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), m_FileFormatJPEGQualityText, pano, and HuginBase::PanoramaOptions::quality.

void PanoPanel::OnNormalTIFFCompression ( wxCommandEvent &  e  )  [private]

Definition at line 1478 of file PanoPanel.cpp.

References CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::outputImageTypeCompression, pano, and HuginBase::PanoramaOptions::tiffCompression.

void PanoPanel::OnOutputFilesChanged ( wxCommandEvent &  e  )  [private]

Definition at line 1528 of file PanoPanel.cpp.

References CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::outputHDRBlended, HuginBase::PanoramaOptions::outputHDRLayers, HuginBase::PanoramaOptions::outputHDRStacks, HuginBase::PanoramaOptions::outputLDRBlended, HuginBase::PanoramaOptions::outputLDRExposureBlended, HuginBase::PanoramaOptions::outputLDRExposureLayers, HuginBase::PanoramaOptions::outputLDRExposureLayersFused, HuginBase::PanoramaOptions::outputLDRExposureRemapped, HuginBase::PanoramaOptions::outputLDRLayers, HuginBase::PanoramaOptions::outputLDRStacks, and pano.

void PanoPanel::OnRemapperOptions ( wxCommandEvent &  e  )  [private]

Definition at line 797 of file PanoPanel.cpp.

References CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::interpolator, HuginBase::PanoramaOptions::NONA, pano, HuginBase::PanoramaOptions::remapper, and HuginBase::PanoramaOptions::tiff_saveROI.

void PanoPanel::panoramaChanged ( HuginBase::Panorama pano  )  [virtual]

this is called whenever the panorama has changed.

This function must now update all the gui representations of the panorama to display the new state.

Functions that change the panororama must not update the GUI directly. The GUI should always be updated to reflect the current panorama state in this function.

This avoids unnessecary close coupling between the controller and the view (even if they sometimes are in the same object). See model view controller pattern.

Todo:
react on different update signals more special

Implements HuginBase::PanoramaObserver.

Definition at line 292 of file PanoPanel.cpp.

References DEBUG_TRACE, HuginBase::Panorama::getOptions(), m_oldOpt, pano, StackCheck(), and UpdateDisplay().

Referenced by Init().

virtual void PanoPanel::panoramaImagesChanged ( HuginBase::Panorama pano,
const HuginBase::UIntSet imgNr 
) [inline, virtual]

notifies about changes to images

Images might have been added/removed. to find out how many images are still there, use Panorama::getNrOfImages.

Parameters:
pano the panorama object that changed
changed set of changed images

Implements HuginBase::PanoramaObserver.

Definition at line 73 of file PanoPanel.h.

void PanoPanel::ProjectionChanged ( wxCommandEvent &  e  )  [private]

Definition at line 591 of file PanoPanel.cpp.

References CommandHistory::addCommand(), DEBUG_DEBUG, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), m_ProjectionChoice, pano, HuginBase::PanoramaOptions::setProjection(), and updatesDisabled.

void PanoPanel::QuickModeChanged ( wxCommandEvent &  e  )  [private]

void PanoPanel::RemapperChanged ( wxCommandEvent &  e  )  [private]

Definition at line 780 of file PanoPanel.cpp.

References CommandHistory::addCommand(), DEBUG_DEBUG, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), m_RemapperChoice, HuginBase::PanoramaOptions::NONA, pano, HuginBase::PanoramaOptions::PTMENDER, and HuginBase::PanoramaOptions::remapper.

void PanoPanel::ROIChanged ( wxCommandEvent &  e  )  [private]

Definition at line 726 of file PanoPanel.cpp.

References CommandHistory::addCommand(), PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), HuginBase::PanoramaOptions::getROI(), m_ROIBottomTxt, m_ROILeftTxt, m_ROIRightTxt, m_ROITopTxt, pano, HuginBase::PanoramaOptions::setROI(), UpdateDisplay(), and updatesDisabled.

void PanoPanel::SetGuiLevel ( GuiLevel  newGuiLevel  ) 

Definition at line 1717 of file PanoPanel.cpp.

References m_guiLevel, m_oldOpt, and UpdateDisplay().

Referenced by MainFrame::SetGuiLevel().

void PanoPanel::SetStitcher ( HuginBase::PanoramaOptions::Remapper  stitcher  )  [private]

bool PanoPanel::StackCheck ( HuginBase::Panorama pano  )  [private]

Definition at line 311 of file PanoPanel.cpp.

References DEBUG_DEBUG, DEBUG_TRACE, HuginBase::Panorama::getActiveImages(), HuginBase::getHDRStacks(), HuginBase::getImagesinROI(), HuginBase::Panorama::getOptions(), m_hasStacks, HuginBase::PanoramaOptions::outputHDRBlended, HuginBase::PanoramaOptions::outputHDRLayers, HuginBase::PanoramaOptions::outputHDRStacks, HuginBase::PanoramaOptions::outputLDRBlended, HuginBase::PanoramaOptions::outputLDRExposureBlended, HuginBase::PanoramaOptions::outputLDRExposureLayers, HuginBase::PanoramaOptions::outputLDRExposureRemapped, HuginBase::PanoramaOptions::outputLDRLayers, pano, and HuginBase::Panorama::setOptions().

Referenced by panoramaChanged().

void PanoPanel::UpdateDisplay ( const HuginBase::PanoramaOptions opt,
const bool  hasStacks 
) [private]

Definition at line 361 of file PanoPanel.cpp.

References HuginBase::PanoramaOptions::blendMode, hugin_utils::doubleToString(), HuginBase::PanoramaOptions::fovCalcSupported(), HuginBase::Panorama::getActiveImages(), HuginBase::PanoramaOptions::getHeight(), HuginBase::PanoramaOptions::getHFOV(), HuginBase::PanoramaOptions::getProjection(), HuginBase::PanoramaOptions::getROI(), HuginBase::PanoramaOptions::getVFOV(), HuginBase::PanoramaOptions::getWidth(), GUI_SIMPLE, HuginBase::PanoramaOptions::INTERNAL_BLEND, m_BlenderChoice, m_CalcHFOVButton, m_CalcOptROIButton, m_CalcOptWidthButton, m_FileFormatChoice, m_FileFormatHDRTIFFCompChoice, m_FileFormatJPEGQualityText, m_FileFormatOptionsLabel, m_FileFormatTIFFCompChoice, m_FusionChoice, m_guiLevel, m_HDRFileFormatChoice, m_HDRFileFormatLabelTIFFCompression, m_HDRMergeChoice, m_HeightTxt, m_HFOVText, m_keepViewOnResize, m_pano_ctrls, m_ProjectionChoice, m_RemapperChoice, m_ROIBottomTxt, m_ROILeftTxt, m_ROIRightTxt, m_ROITopTxt, m_StitchButton, m_VFOVText, m_WidthTxt, HuginBase::PanoramaOptions::outputHDRBlended, HuginBase::PanoramaOptions::outputHDRLayers, HuginBase::PanoramaOptions::outputHDRStacks, HuginBase::PanoramaOptions::outputImageType, HuginBase::PanoramaOptions::outputImageTypeCompression, HuginBase::PanoramaOptions::outputImageTypeHDR, HuginBase::PanoramaOptions::outputImageTypeHDRCompression, HuginBase::PanoramaOptions::outputLDRBlended, HuginBase::PanoramaOptions::outputLDRExposureBlended, HuginBase::PanoramaOptions::outputLDRExposureLayers, HuginBase::PanoramaOptions::outputLDRExposureLayersFused, HuginBase::PanoramaOptions::outputLDRExposureRemapped, HuginBase::PanoramaOptions::outputLDRLayers, HuginBase::PanoramaOptions::outputLDRStacks, pano, HuginBase::PanoramaOptions::quality, and SelectListValue().

Referenced by panoramaChanged(), ROIChanged(), and SetGuiLevel().

void PanoPanel::VFOVChanged ( wxCommandEvent &  e  )  [private]

Definition at line 640 of file PanoPanel.cpp.

References CommandHistory::addCommand(), DEBUG_INFO, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::PanoramaOptions::getMaxVFOV(), HuginBase::Panorama::getOptions(), m_VFOVText, pano, HuginBase::PanoramaOptions::setVFOV(), str2double(), and updatesDisabled.

void PanoPanel::VFOVChangedSpin ( wxSpinEvent &  e  )  [private]

void PanoPanel::WidthChanged ( wxCommandEvent &  e  )  [private]

Definition at line 692 of file PanoPanel.cpp.

References CommandHistory::addCommand(), DEBUG_INFO, PanoCommand::GlobalCmdHist::getInstance(), HuginBase::Panorama::getOptions(), m_keepViewOnResize, m_WidthTxt, pano, HuginBase::PanoramaOptions::setWidth(), and updatesDisabled.


Member Data Documentation

wxChoice* PanoPanel::m_BlenderChoice [private]

Definition at line 203 of file PanoPanel.h.

Referenced by BlenderChanged(), Create(), EnableControls(), and UpdateDisplay().

wxButton* PanoPanel::m_CalcHFOVButton [private]

Definition at line 205 of file PanoPanel.h.

Referenced by Create(), and UpdateDisplay().

wxButton* PanoPanel::m_CalcOptROIButton [private]

Definition at line 207 of file PanoPanel.h.

Referenced by Create(), and UpdateDisplay().

wxButton* PanoPanel::m_CalcOptWidthButton [private]

Definition at line 206 of file PanoPanel.h.

Referenced by Create(), and UpdateDisplay().

wxChoice* PanoPanel::m_FileFormatChoice [private]

Definition at line 209 of file PanoPanel.h.

Referenced by Create(), FileFormatChanged(), and UpdateDisplay().

wxChoice* PanoPanel::m_FileFormatHDRTIFFCompChoice [private]

Definition at line 216 of file PanoPanel.h.

Referenced by Create(), and UpdateDisplay().

wxTextCtrl* PanoPanel::m_FileFormatJPEGQualityText [private]

Definition at line 211 of file PanoPanel.h.

Referenced by Create(), OnJPEGQualityText(), UpdateDisplay(), and ~PanoPanel().

wxStaticText* PanoPanel::m_FileFormatOptionsLabel [private]

Definition at line 210 of file PanoPanel.h.

Referenced by Create(), and UpdateDisplay().

wxChoice* PanoPanel::m_FileFormatTIFFCompChoice [private]

Definition at line 212 of file PanoPanel.h.

Referenced by Create(), and UpdateDisplay().

wxChoice* PanoPanel::m_FusionChoice [private]

Definition at line 201 of file PanoPanel.h.

Referenced by Create(), FusionChanged(), and UpdateDisplay().

GuiLevel PanoPanel::m_guiLevel [private]

Definition at line 177 of file PanoPanel.h.

Referenced by SetGuiLevel(), and UpdateDisplay().

bool PanoPanel::m_hasStacks [private]

Definition at line 187 of file PanoPanel.h.

Referenced by Create(), and StackCheck().

wxChoice* PanoPanel::m_HDRFileFormatChoice [private]

Definition at line 214 of file PanoPanel.h.

Referenced by Create(), HDRFileFormatChanged(), and UpdateDisplay().

wxStaticText* PanoPanel::m_HDRFileFormatLabelTIFFCompression [private]

Definition at line 215 of file PanoPanel.h.

Referenced by Create(), and UpdateDisplay().

wxChoice* PanoPanel::m_HDRMergeChoice [private]

Definition at line 202 of file PanoPanel.h.

Referenced by Create(), HDRMergeChanged(), and UpdateDisplay().

wxTextCtrl* PanoPanel::m_HeightTxt [private]

Definition at line 195 of file PanoPanel.h.

Referenced by Create(), HeightChanged(), UpdateDisplay(), and ~PanoPanel().

wxTextCtrl* PanoPanel::m_HFOVText [private]

Definition at line 191 of file PanoPanel.h.

Referenced by Create(), HFOVChanged(), UpdateDisplay(), and ~PanoPanel().

bool PanoPanel::m_keepViewOnResize [private]

Definition at line 186 of file PanoPanel.h.

Referenced by Create(), UpdateDisplay(), and WidthChanged().

HuginBase::PanoramaOptions PanoPanel::m_oldOpt [private]

Definition at line 183 of file PanoPanel.h.

Referenced by panoramaChanged(), and SetGuiLevel().

double PanoPanel::m_oldVFOV [private]

Definition at line 184 of file PanoPanel.h.

wxScrolledWindow* PanoPanel::m_pano_ctrls [private]

Definition at line 218 of file PanoPanel.h.

Referenced by Create(), and UpdateDisplay().

wxChoice* PanoPanel::m_ProjectionChoice [private]

Definition at line 190 of file PanoPanel.h.

Referenced by Create(), ProjectionChanged(), and UpdateDisplay().

wxChoice* PanoPanel::m_RemapperChoice [private]

Definition at line 200 of file PanoPanel.h.

Referenced by Create(), EnableControls(), RemapperChanged(), UpdateDisplay(), and ~PanoPanel().

wxTextCtrl* PanoPanel::m_ROIBottomTxt [private]

Definition at line 199 of file PanoPanel.h.

Referenced by Create(), ROIChanged(), UpdateDisplay(), and ~PanoPanel().

wxTextCtrl* PanoPanel::m_ROILeftTxt [private]

Definition at line 196 of file PanoPanel.h.

Referenced by Create(), ROIChanged(), UpdateDisplay(), and ~PanoPanel().

wxTextCtrl* PanoPanel::m_ROIRightTxt [private]

Definition at line 197 of file PanoPanel.h.

Referenced by Create(), ROIChanged(), UpdateDisplay(), and ~PanoPanel().

wxTextCtrl* PanoPanel::m_ROITopTxt [private]

Definition at line 198 of file PanoPanel.h.

Referenced by Create(), ROIChanged(), UpdateDisplay(), and ~PanoPanel().

wxButton* PanoPanel::m_StitchButton [private]

Definition at line 204 of file PanoPanel.h.

Referenced by Create(), and UpdateDisplay().

wxTextCtrl* PanoPanel::m_VFOVText [private]

Definition at line 192 of file PanoPanel.h.

Referenced by Create(), UpdateDisplay(), VFOVChanged(), and ~PanoPanel().

wxTextCtrl* PanoPanel::m_WidthTxt [private]

Definition at line 194 of file PanoPanel.h.

Referenced by Create(), EnableControls(), UpdateDisplay(), WidthChanged(), and ~PanoPanel().

HuginBase::Panorama* PanoPanel::pano [private]

Definition at line 175 of file PanoPanel.h.

Referenced by BlenderChanged(), CheckFreeSpace(), CheckGoodSize(), CheckHasImages(), DoCalcFOV(), DoCalcOptimalROI(), DoCalcOptimalWidth(), DoSendToBatch(), DoStitch(), DoUserDefinedStitch(), FileFormatChanged(), HDRFileFormatChanged(), HeightChanged(), HFOVChanged(), Init(), OnBlenderOptions(), OnFusionOptions(), OnHDRMergeOptions(), OnHDRTIFFCompression(), OnJPEGQualityText(), OnNormalTIFFCompression(), OnOutputFilesChanged(), OnRemapperOptions(), panoramaChanged(), ProjectionChanged(), RemapperChanged(), ROIChanged(), StackCheck(), UpdateDisplay(), VFOVChanged(), WidthChanged(), and ~PanoPanel().

bool PanoPanel::updatesDisabled [private]

Definition at line 182 of file PanoPanel.h.

Referenced by HeightChanged(), HFOVChanged(), ProjectionChanged(), ROIChanged(), VFOVChanged(), and WidthChanged().


The documentation for this class was generated from the following files:
Generated on 3 Aug 2015 for Hugintrunk by  doxygen 1.4.7