23 #ifndef _GLPREVIEWFRAME_H
24 #define _GLPREVIEWFRAME_H
33 class wxScrolledWindow;
35 class wxStaticBoxSizer;
47 #include <wx/infobar.h>
86 #include <wx/string.h>
88 #include <wx/aui/aui.h>
89 #include <wx/clrpicker.h>
101 wxToggleButton* identify_button_in,
106 void OnEnter(wxMouseEvent & e);
107 void OnLeave(wxMouseEvent & e);
123 void OnEnter(wxMouseEvent & e);
124 void OnLeave(wxMouseEvent & e);
140 long style = wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | wxFRAME_FLOAT_ON_PARENT | wxCLIP_CHILDREN
195 unsigned char green,
unsigned char blue);
290 void KeyUp(wxKeyEvent & e);
330 void OnAlign( wxCommandEvent & e );
331 void OnCreate( wxCommandEvent & e );
511 #endif // _GLPREVIEWFRAME_H
HuginBase::UIntSet GetDragGroupImages()
wxTextCtrl * m_rangeCompressionTextCtrl
PlaneOverviewCameraTool * plane_overview_camera_tool
SelectAllMode m_selectAllMode
void OnRangeCompressionDecrease(wxSpinEvent &e)
wxSpinButton * m_exposureSpinBut
declaration of helper for work with different GuiLevels
std::vector< wxToggleButton * > m_ToggleButtons
void OnRemoveCP(wxCommandEvent &e)
handler to remove cp
PreviewCropTool * crop_tool
void OnControlPoint(wxCommandEvent &e)
PreviewDifferenceTool * panosphere_difference_tool
void OnCreate(wxCommandEvent &e)
PreviewIdentifyTool * identify_tool
void SetStatusMessage(wxString message)
The OpenGL preview frame.
void OnIdentify(wxCommandEvent &e)
wxChoice * m_DragModeChoice
wxColour GetPreviewBackgroundColor()
void OnShowAll(wxCommandEvent &e)
void StorePositionAndSize()
store position and size of window in wxConfig
void AddUserDefinedAssistant(int id, const wxString &desc, const wxString &help)
adds the given user defined assistant to SplitButton menu
PreviewDragTool * drag_tool
GLwxAuiFloatingFrame * CreateFloatingFrame(wxWindow *parent, const wxAuiPaneInfo &p)
std::vector< ImageToogleButtonEventHandler * > toogle_button_event_handlers
PanosphereOverviewCameraTool * panosphere_overview_camera_tool
void OnColorPicker(wxCommandEvent &e)
event handler when starting color picker
void ClearDragGroupImages(bool update_check_box=true)
GLPreview * getGLPreview()
void ToggleImageInDragGroup(unsigned int image_nr, bool update_check_box=true)
void OnVFOVChanged(wxCommandEvent &e)
wxPanel * m_overviewCommandPanel
void OnOverviewToggle(wxCommandEvent &e)
wxTextCtrl * m_ROIRightTxt
SplitButton * m_createButton
void OnDecreaseExposure(wxSpinEvent &e)
wxBitmapButton * m_defaultExposureBut
void OnSwitchPreviewGrid(wxCommandEvent &e)
event handler for switch on/off grid on preview
void OnShowMainFrame(wxCommandEvent &e)
event handler to show main frame
wxColour m_preview_background_color
PreviewLayoutLinesTool * m_plane_layoutLinesTool
std::vector< wxCheckBox * > m_GroupToggleButtons
void AddImageToDragGroup(unsigned int image_nr, bool update_check_box=true)
PreviewIdentifyTool * plane_overview_identify_tool
void OnSelectDarkestMenu(wxCommandEvent &e)
PreviewPanoMaskTool * pano_mask_tool
int non_layout_blend_mode
wxNotebook * m_tool_notebook
void InitPreviews()
init previews
PreviewControlPointTool * preview_control_point_tool
std::vector< wxPanel * > m_ToggleButtonPanel
void UpdateRoiDisplay(const HuginBase::PanoramaOptions opts)
update display of ROI
void OnPhotometric(wxCommandEvent &e)
wxTextCtrl * m_ROILeftTxt
PreviewDifferenceTool * plane_difference_tool
void CleanButtonColours()
void RemoveImageFromDragGroup(unsigned int image_nr, bool update_check_box=true)
wxChoice * m_GuideChoiceCrop
PanosphereOverviewOutlinesTool * overview_outlines_tool
PanosphereSphereTool * panosphere_sphere_tool
void FillBlendChoice()
fills the blend wxChoice with all valid blend modes and restore the last used one ...
void OnActivate(wxActivateEvent &evt)
wxChoice * m_GuideChoiceDrag
wxStaticBoxSizer * m_ToggleButtonSizer
void OnSetCropAspect(wxCommandEvent &e)
event handler to set fixed aspect ratio of crop
void OnAutocropOutside(wxCommandEvent &e)
std::set< unsigned int > UIntSet
GLwxAuiFloatingFrame(wxWindow *parent, GLwxAuiManager *owner_mgr, const wxAuiPaneInfo &pane, wxWindowID id=wxID_ANY, long style=wxRESIZE_BORDER|wxSYSTEM_MENU|wxCAPTION|wxFRAME_FLOAT_ON_PARENT|wxCLIP_CHILDREN)
void OnDefaultExposure(wxCommandEvent &e)
bool individualDragging()
void OnOverviewModeChoice(wxCommandEvent &e)
void OnProjParameterChanged(wxCommandEvent &e)
void LoadOpenGLLayout()
loads the layout of the OpenGL windows and restores it
wxChoice * m_ProjectionChoice
wxSpinButton * m_rangeCompressionSpinBut
void OnHFOVChanged(wxCommandEvent &e)
void OnExposureChanged(wxCommandEvent &e)
wxMenu * m_filemenuSimple
wxBoxSizer * m_ButtonSizer
virtual ~GLPreviewFrame()
dtor.
PreviewLayoutLinesTool * m_panosphere_layoutLinesTool
void OnStackAutocrop(wxCommandEvent &e)
GLwxAuiManager * m_mgr
The dock manager.
void MakePreviewTools(PreviewToolHelper *helper)
void SetMode(int newMode)
GLOverview * getGLOverview()
virtual void panoramaImagesChanged(HuginBase::Panorama &pano, const HuginBase::UIntSet &changed)
notifies about changes to images
void OnFullScreen(wxCommandEvent &e)
event handler for full screen
void OnSelectMedianMenu(wxCommandEvent &e)
std::vector< wxSlider * > m_projParamSlider
wxScrolledWindow * m_ButtonPanel
void OnLayoutScaleChange(wxCommandEvent &e)
event handler for change scale of layout mode
void SetDragGroupImages(HuginBase::UIntSet imageDragGroup_in, bool update_check_box=true)
void AddUserDefinedSequence(int id, const wxString &desc, const wxString &help)
adds the given user defined output sequence to SplitButton menu
void SetGuiLevel(GuiLevel newLevel)
sets the gui level
SplitButton * m_selectAllButton
void redrawPreview()
Display an updated version of the preview images.
PreviewIdentifyTool * panosphere_overview_identify_tool
void OnSelectKeepSelection(wxCommandEvent &e)
wxMenu * m_filemenuAdvanced
The renderer handles drawing the opengl scene.
PlaneOverviewOutlinesTool * plane_overview_outlines_tool
std::vector< wxTextCtrl * > m_projParamTextCtrl
wxInfoBar * m_infoBar
Bar for context sensitive projection information.
void OnToolModeChanging(wxNotebookEvent &e)
event handler for blocking changing mode when panorama contains no images
wxToggleButton * m_editCP_togglebutton
SplitButton * m_loadImagesButton
PreviewControlPointTool * plane_control_point_tool
wxPanel * m_projection_panel
void OnRangeCompressionChanged(wxCommandEvent &e)
void SetShowProjectionHints(bool new_value)
set status if projection hints should be shown or not
void UpdateIdentifyTools(std::set< unsigned int > new_image_set)
PanosphereOverviewToolHelper * panosphere_overview_helper
void MakePanosphereOverviewTools(PanosphereOverviewToolHelper *helper)
GLPreviewFrame * getPreviewFrame()
std::vector< ImageGroupButtonEventHandler * > toggle_group_button_event_handlers
wxToggleButton * m_identify_togglebutton
GLwxAuiManager * getAuiManager()
void OnProjectionChoice(wxCommandEvent &e)
PreviewControlPointTool * panosphere_control_point_tool
PanosphereOverviewProjectionGridTool * overview_projection_grid
void EnableGroupCheckboxes(bool isShown)
changes the visibility of the group check boxes
void OnSelectMode(wxNotebookEvent &e)
event handler for selection of new mode
void DragChoiceLayout(int index)
void OnSelectBrightestMenu(wxCommandEvent &e)
void MakePlaneOverviewTools(PlaneOverviewToolHelper *helper)
OverviewDragTool * overview_drag_tool
GLOverview * m_GLOverview
bool m_selectKeepSelection
GLPreviewFrame(wxFrame *frame, HuginBase::Panorama &pano)
ctor.
void OnCenterHorizontally(wxCommandEvent &e)
void OnROIChanged(wxCommandEvent &e)
event handler for changed roi
wxChoice * m_BlendModeChoice
wxBoxSizer * m_projParamSizer
void OnLoadImages(wxCommandEvent &e)
void ShowProjectionWarnings()
Tell the user anything suspicious about the projection choice.
void OnUserExit(wxCommandEvent &e)
user wants to quit program
void OnGuideChanged(wxCommandEvent &e)
event handler when user selects different guide
GLwxAuiManager(GLPreviewFrame *frame, GLPreview *preview, GLOverview *overview)
void OnShowNone(wxCommandEvent &e)
void OnChangeProjectionParam(wxScrollEvent &e)
A MeshManager handles the graphics system representation of a remapping, by creating OpenGL display l...
void OnSelectAllMenu(wxCommandEvent &e)
handle all options of select all context menu
void OnSelectResetSelection(wxCommandEvent &e)
this handler class will receive change events from the Panorama.
void OnResetCrop(wxCommandEvent &e)
event handler to reset crop area
PreviewToolHelper * preview_helper
wxTextCtrl * m_ROIBottomTxt
subclass for a floating frame of the dock manager
SplitButton * m_alignButton
void OnIncreaseExposure(wxSpinEvent &e)
GLOverview * getOverview()
void OnTrackChangeProjectionParam(wxScrollEvent &e)
bool UpdateOverviewMode(int newMode)
updates the mode of the overview window
wxToggleButton * m_colorpicker_togglebutton
void OnRangeCompressionIncrease(wxSpinEvent &e)
bool m_showProjectionHints
void OnCreateCP(wxCommandEvent &e)
handler for creating cp in pano space
void OnPreviewBackgroundColorChanged(wxColourPickerEvent &e)
event handler when user changes background color
void OnDragChoice(wxCommandEvent &e)
PreviewColorPickerTool * color_picker_tool
void updateBlendMode()
Update tools and GUI elements according to blend mode choice.
bool HasNonZeroTranslationPlaneParameters()
check, if panorama has non-zero translation plane parameters
void OnEditCPTool(wxCommandEvent &e)
event handler when starting edit cp tool
PlaneOverviewToolHelper * plane_overview_helper
PreviewEditCPTool * edit_cp_tool
void OnBlendChoice(wxCommandEvent &e)
wxTextCtrl * m_exposureTextCtrl
void OnShowEvent(wxShowEvent &e)
void OnAutocrop(wxCommandEvent &e)
std::vector< wxStaticText * > m_projParamNamesLabel
PreviewProjectionGridTool * preview_projection_grid
customized subclass of the dock manager, created just for the purpose to create a workaround for the ...
void KeyDown(wxKeyEvent &e)
HuginBase::Panorama & m_pano
PreviewGuideTool * preview_guide_tool
void ResetTranslationPlaneParameters()
resets all translation plane parameters to zero
virtual void panoramaChanged(HuginBase::Panorama &pano)
Notification about a Panorama change.
wxChoice * m_GuideChoiceProj
PreviewCameraTool * camera_tool
void OnStraighten(wxCommandEvent &e)
PreviewLayoutLinesTool * m_preview_layoutLinesTool
void UpdateGlobalWhiteBalance(double redFactor, double blueFactor)
updates the global white balance
void SetImageButtonColour(unsigned int image_nr, unsigned char red, unsigned char green, unsigned char blue)
void ResetPreviewZoom()
reset zoom level for preview window
void OnClose(wxCloseEvent &e)
HuginBase::UIntSet imageDragGroup
void OnNumTransform(wxCommandEvent &e)
void OnAlign(wxCommandEvent &e)
wxChoice * m_OverviewModeChoice
PreviewDifferenceTool * difference_tool
void OnHideProjectionHints(wxCommandEvent &e)
event handler when user hides the infobar
A wxWidget to display the fast preview.
void OnProjParameterReset(wxCommandEvent &e)
event handler for reset projection parameters
void TurnOffTools(std::set< Tool * > tools)
void LoadImages(int preferredLensType)
void KeyUp(wxKeyEvent &e)
void OnFitPano(wxCommandEvent &e)