iVS3D v2.0.9
Loading...
Searching...
No Matches
OutputWidget Class Reference

The OutputWidget class is responsible for controlling the Widget on the bottom right holding export details and the export progress bar It uses different Signals&Slots to communicate with the Exportcontroller, aswell as controlling and parsing the data in its ui elements. Holds two different Widgets ExportWidget m_exportW and ProgressWidget m_progressW to easily switch between showing export settings and export progress bar. More...

#include <outputwidget.h>

Inheritance diagram for OutputWidget:

Public Slots

void slot_displayProgress (int progress, QString currentOperation)
 [slot] slot_displayProgress gets invoked by the ExportThread giving new progress information
 
void slot_displayMessage (QString message)
 [slot] slot_displayMessage gets invoked by the ExportThread giving a new information/message
 
void slot_displayWarning (QString warning)
 [slot] slot_displayWarning appends a warning to the warning list
 
void slot_clearWarnings ()
 [slot] slot_clearWarnings clears all currently shown warnings
 

Signals

void sig_pathChanged (QString path)
 sig_pathChanged gets emitted once the export path has been altered
 
void sig_export ()
 sig_export signal for the ExportController to start the export (without cropping)
 
void sig_reconstruct ()
 sig_reconstruct signal for the ExportController to start the reconstruction software (and create projectfiles and batchfiles)
 
void sig_abort ()
 sig_abort signal for the ExportController to abort the export (triggered by user)
 
void sig_addAuto ()
 sig_addAuto signal to add the current output to the automatic execution (triggered by user)
 
void sig_resChanged (QString resolution)
 [signal] sig_resChanged(...) is emitted if the resolution in the combo box is changed
 
void sig_altitudeChanged (double altitude)
 [signal] sig_altitudeChanged() is emitted when the altitude is changed by the user.
 

Public Member Functions

 OutputWidget (QWidget *parent=nullptr, QString title="Output")
 OutputWidget constructor, initializes member variables aswell as connecting its Signals&Slots and configuring its ui elements.
 
void setOutputPath (QString path)
 setOutputPath sets the path text in the output folder text field
 
void enableExport (bool enabled)
 enableExport enables / disables the export button
 
void enableExportPathChange (bool enabled)
 enableExportPathChange enables / disables modification of the export path
 
void enableReconstruct (bool enabled)
 enableReconstruct enables / disables the reconstruct button
 
void showProgress ()
 showProgress switches from showing export settings to export progress bar
 
void showExportOptions ()
 showExportOptions switches from showing export progress bar to export settings
 
void setAltitudeVisible (bool visible)
 setAltitudeVisible will show or hide the altitude selector
 
void setAltitude (double altitude)
 setAltitude sets the value of the altitude selector
 

Private Attributes

ExportWidgetm_exportW
 m_exportW Widget holding the ui elements for export settings
 
ProgressWidgetm_progressW
 m_progressW holding the ui elements for the export progress bar
 

Detailed Description

The OutputWidget class is responsible for controlling the Widget on the bottom right holding export details and the export progress bar It uses different Signals&Slots to communicate with the Exportcontroller, aswell as controlling and parsing the data in its ui elements. Holds two different Widgets ExportWidget m_exportW and ProgressWidget m_progressW to easily switch between showing export settings and export progress bar.

Author
Lennart Ruck
Date
2021/02/08

Constructor & Destructor Documentation

◆ OutputWidget()

OutputWidget::OutputWidget ( QWidget *  parent = nullptr,
QString  title = "Output" 
)
explicit

OutputWidget constructor, initializes member variables aswell as connecting its Signals&Slots and configuring its ui elements.

Parameters
parent(ui-)class which holds this OutputWidget
titlename of the Widget on the MainWindow

Member Function Documentation

◆ enableExport()

void OutputWidget::enableExport ( bool  enabled)

enableExport enables / disables the export button

Parameters
enabledtrue = enable button, false = disable button

◆ enableExportPathChange()

void OutputWidget::enableExportPathChange ( bool  enabled)

enableExportPathChange enables / disables modification of the export path

Parameters
enabledtrue = modify path, false = fixed path

◆ enableReconstruct()

void OutputWidget::enableReconstruct ( bool  enabled)

enableReconstruct enables / disables the reconstruct button

Parameters
enabledtrue = enable button, false = disable button

◆ setAltitude()

void OutputWidget::setAltitude ( double  altitude)

setAltitude sets the value of the altitude selector

Parameters
altitude

◆ setAltitudeVisible()

void OutputWidget::setAltitudeVisible ( bool  visible)

setAltitudeVisible will show or hide the altitude selector

Parameters
visibletrue shows the selector, false will hide it

◆ setOutputPath()

void OutputWidget::setOutputPath ( QString  path)

setOutputPath sets the path text in the output folder text field

Parameters
pathString to display

◆ sig_pathChanged

void OutputWidget::sig_pathChanged ( QString  path)
signal

sig_pathChanged gets emitted once the export path has been altered

Parameters
pathString holding the latest export path

◆ sig_resChanged

void OutputWidget::sig_resChanged ( QString  resolution)
signal

[signal] sig_resChanged(...) is emitted if the resolution in the combo box is changed

Parameters
resolutionThe selected resolution as a string

◆ slot_displayMessage

void OutputWidget::slot_displayMessage ( QString  message)
slot

[slot] slot_displayMessage gets invoked by the ExportThread giving a new information/message

Parameters
messageQString holds the message

◆ slot_displayProgress

void OutputWidget::slot_displayProgress ( int  progress,
QString  currentOperation 
)
slot

[slot] slot_displayProgress gets invoked by the ExportThread giving new progress information

Parameters
progress[0-100] progress percentage
currentOperationQString describing the current operation

◆ slot_displayWarning

void OutputWidget::slot_displayWarning ( QString  warning)
slot

[slot] slot_displayWarning appends a warning to the warning list

Parameters
warningWarning text

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