The main window for the CAVAPA-GUI application. More...
#include <mainwindow.h>
Signals | |
| void | calculationCancelRequested () |
| Emitted when the user requests to cancel the calculation. More... | |
| void | calculationContinueRequested () |
| Emitted when the user requests to continue the calculation. More... | |
| void | calculationPauseRequested () |
| Emitted when the user requests to pause the calculation. More... | |
| void | calculationStartRequested () |
| Emitted when the user requests to start the calculation. More... | |
| void | calculationStopRequested () |
| Emitted when the user requests to stop the calculation. More... | |
| void | calibrationPointsReady (const std::vector< cavapa::CalibrationPoint > &points) |
| Emitted when the user has set all the calibration points. More... | |
| void | generalSettingsChanged (const GeneralSettings &settings) |
| Emitted when the user changes a general setting. More... | |
| void | graphPositionSelected (FrameTime time) |
| Emitted when the user selects a position in the activity graph. More... | |
| void | locationChanged (int x, int y) |
| Emitted when the interface is moved. More... | |
| void | markersReady (const std::vector< GraphMarker > &markers) |
| Emitted when the user has placed all the markers. More... | |
| void | metadataOpened (const std::string &path) |
| Emitted when the user requests to open a metadata file. More... | |
| void | metadataReady (const Metadata &metadata) |
| Emitted when the user has input all the metadata. More... | |
| void | newMeasurementRequested () |
| Emitted when the user wants to start a new measurement. More... | |
| void | openMeasurementRequested (const std::string &path) |
| Emitted when the user wants to open an existing measurement. More... | |
| void | redoMeasurementRequested () |
| Emitted when the user wants to redo the measurement. More... | |
| void | refreshRequested () |
| Emitted when the user requests to refresh cameras. More... | |
| void | sizeChanged (int width, int height, bool fullscreen) |
| Emitted when the size of the interface changes. More... | |
| void | sourceAddRequested (const std::string &path) |
| Emitted when the user adds a new video source. More... | |
| void | sourcePauseRequested (SourceID source) |
| Emitted when the user requests to pause a source. More... | |
| void | sourcePlayRequested (SourceID source) |
| Emitted when the user requests to play a source. More... | |
| void | sourceRemoveRequested (SourceID source) |
| Emitted when the user removes a source. More... | |
| void | sourceSeekRequested (SourceID source, FrameTime position) |
| Emitted when the user requests to seek a source to a certain position. More... | |
| void | sourceSettingsChanged (SourceID source, const SourceSettings &settings) |
| Emitted when the user changes a setting for a source. More... | |
| void | sourceStepBackward (SourceID source) |
| Emitted when the user steps a video one frame back. More... | |
| void | sourceStepForward (SourceID source) |
| Emitted when the user steps a video one frame forward. More... | |
| void | statisticsRequested (FrameTime start, FrameTime stop, int points) |
| Emitted when the user wants the frame statistics to be retrieved. More... | |
| void | interfaceClosed () |
| Emitted when the user closes the interface. More... | |
| void | exportRequested (const ExportOptions &options) |
| Emitted when the user requests to export data from the graph. More... | |
Public Member Functions | |
| MainWindow (QMainWindow *parent=0) | |
| Constructs a new MainWindow having the specified parent. More... | |
| void | addSource (SourceID source, SourceType type, FrameTime length, const std::string &description) override |
| Adds a new source to the interface. More... | |
| void | calculationCanceled () override |
| Informs the interface that the calculation was cancelled. | |
| void | calculationCompleted () override |
| Informs the interface that the calculation has completed. | |
| void | calculationContinued () override |
| Informs the interface that the calculation was continued. | |
| void | calculationPaused () override |
| Informs the interface that the calculation was paused. | |
| void | calculationStarted () override |
| Informs the interface that the calculation has started. | |
| void | calculationStopped () override |
| Informs the interface that the calculation has stopped. | |
| std::vector< std::string > | getMarkerHistory () override |
| Returns the history of the recently used markers. More... | |
| void | newMeasurement () override |
| Informs the interface that the user wants to start a new measurement. | |
| void | openMeasurement () override |
| Informs the interface that a measurement has been opened. | |
| void | removeSource (SourceID source) override |
| Removes the specified source from the interface. More... | |
| void | setCalibrationPoints (SourceID source, const std::vector< CalibrationPoint > &points) override |
| Sets the calibration points for the specified source. More... | |
| void | setCanPause (bool flag) override |
| Informs the interface whether the calculation can be paused. More... | |
| void | setCanSaveVideos (bool flag) override |
| Sets whether videos can be saved. More... | |
| void | setLocation (int x, int y) override |
| Sets the location of the interface. More... | |
| void | setMarkerHistory (const std::vector< std::string > &history) override |
| Sets the history of previously input markers. More... | |
| void | setSize (int width, int height, bool fullscreen) override |
| Sets the size of the interface. More... | |
| void | showMessage (const std::string &message, ErrorLevel errorLevel) override |
| Displays a message in the interface. More... | |
| void | sourcePaused (SourceID source) override |
| Informs the interface that a source was paused. More... | |
| void | sourcePlayStarted (SourceID source) override |
| Informs the interface that playing was started for a source. More... | |
| void | startInterface () override |
| Starts the interface. | |
| void | updateFrame (const FrameCapture &frame) override |
| Updates the frame for a source. More... | |
| void | updateCalculation (const FrameStats &statistics) override |
| Updates the calculation data. More... | |
| void | updateGeneralSettings (const GeneralSettings &settings) override |
| Updates the general settings for the interface. More... | |
| void | updateMarkers (const std::vector< GraphMarker > &markers) override |
| Updates the graph markers. More... | |
| void | updateMetadata (const Metadata &metadata) override |
| Updates the metadata to the interface. More... | |
| void | updateSourceSettings (SourceID source, const SourceSettings &settings) override |
| Updates the settings of the speficied source. More... | |
| void | updateStatistics (const std::vector< FrameStats > &stats) override |
| Updates the interface with the frame statistics from a certain period. More... | |
Protected Member Functions | |
| virtual void | changeEvent (QEvent *event) |
| Reimplemented for handling a state change event. More... | |
| virtual void | closeEvent (QCloseEvent *event) |
| Reimplemented for handling a window close event. More... | |
| virtual void | moveEvent (QMoveEvent *event) |
| Reimplemented for handling a window move event. More... | |
| virtual void | resizeEvent (QResizeEvent *event) |
| Reimplemented for handling a window resize event. More... | |
Protected Member Functions inherited from cavapa_gui::UserInterface | |
| virtual void | calculationCancelRequested ()=0 |
| Emitted when the user requests to cancel the calculation. | |
| virtual void | calculationContinueRequested ()=0 |
| Emitted when the user requests to continue the calculation. | |
| virtual void | calculationPauseRequested ()=0 |
| Emitted when the user requests to pause the calculation. | |
| virtual void | calculationStartRequested ()=0 |
| Emitted when the user requests to start the calculation. | |
| virtual void | calculationStopRequested ()=0 |
| Emitted when the user requests to stop the calculation. | |
| virtual void | calibrationPointsReady (const std::vector< CalibrationPoint > &points)=0 |
| Emitted when the user has set all the calibration points. More... | |
| virtual void | exportRequested (const ExportOptions &options)=0 |
| Emitted when the user requests to export data from the graph. More... | |
| virtual void | generalSettingsChanged (const GeneralSettings &settings)=0 |
| Emitted when the user changes a general setting. More... | |
| virtual void | graphPositionSelected (FrameTime time)=0 |
| Emitted when the user selects a position in the activity graph. More... | |
| virtual void | locationChanged (int x, int y)=0 |
| Emitted when the interface is moved. More... | |
| virtual void | markersReady (const std::vector< GraphMarker > &markers)=0 |
| Emitted when the user has placed all the markers. More... | |
| virtual void | metadataOpened (const std::string &path)=0 |
| Emitted when the user requests to open a metadata file. More... | |
| virtual void | metadataReady (const Metadata &metadata)=0 |
| Emitted when the user has input all the metadata. More... | |
| virtual void | newMeasurementRequested ()=0 |
| Emitted when the user wants to start a new measurement. | |
| virtual void | openMeasurementRequested (const std::string &path)=0 |
| Emitted when the user wants to open an existing measurement. More... | |
| virtual void | redoMeasurementRequested ()=0 |
| Emitted when the user wants to redo the measurement. | |
| virtual void | refreshRequested ()=0 |
| Emitted when the user requests to refresh cameras. | |
| virtual void | sizeChanged (int width, int height, bool fullscreen)=0 |
| Emitted when the size of the interface changes. More... | |
| virtual void | sourceAddRequested (const std::string &path)=0 |
| Emitted when the user adds a new video source. More... | |
| virtual void | sourcePauseRequested (SourceID source)=0 |
| Emitted when the user requests to pause a source. More... | |
| virtual void | sourcePlayRequested (SourceID source)=0 |
| Emitted when the user requests to play a source. More... | |
| virtual void | sourceSeekRequested (SourceID source, FrameTime position)=0 |
| Emitted when the user requests to seek a source to a certain position. More... | |
| virtual void | sourceRemoveRequested (SourceID source)=0 |
| Emitted when the user removes a source. More... | |
| virtual void | sourceSettingsChanged (SourceID source, const SourceSettings &settings)=0 |
| Emitted when the user changes a setting for a source. More... | |
| virtual void | sourceStepBackward (SourceID source)=0 |
| Emitted when the user steps a video one frame back. More... | |
| virtual void | sourceStepForward (SourceID source)=0 |
| Emitted when the user steps a video one frame forward. More... | |
| virtual void | statisticsRequested (FrameTime start, FrameTime stop, int points)=0 |
| Emitted when the user wants the frame statistics to be retrieved. More... | |
| virtual void | interfaceClosed ()=0 |
| Emitted when the user closes the interface. | |
The main window for the CAVAPA-GUI application.
|
explicit |
Constructs a new MainWindow having the specified parent.
| parent | The parent window. |
|
overridevirtual |
Adds a new source to the interface.
| source | The ID of the source. |
| type | The type of the source. |
| length | The length of the source. |
| path | The path of the source. |
Implements cavapa_gui::UserInterface.
|
signal |
Emitted when the user requests to cancel the calculation.
|
signal |
Emitted when the user requests to continue the calculation.
|
signal |
Emitted when the user requests to pause the calculation.
|
signal |
Emitted when the user requests to start the calculation.
|
signal |
Emitted when the user requests to stop the calculation.
|
signal |
Emitted when the user has set all the calibration points.
| points | The set of calibration points. |
|
protectedvirtual |
Reimplemented for handling a state change event.
| event | The event object. |
|
protectedvirtual |
Reimplemented for handling a window close event.
| event | The close event object. |
|
signal |
Emitted when the user requests to export data from the graph.
| options | The parameters for the export. |
|
signal |
Emitted when the user changes a general setting.
| settings | The new GeneralSettings object. |
|
overridevirtual |
Returns the history of the recently used markers.
Implements cavapa_gui::UserInterface.
|
signal |
Emitted when the user selects a position in the activity graph.
| time | The time of the position. |
|
signal |
Emitted when the user closes the interface.
|
signal |
Emitted when the interface is moved.
| x | The x-coordinate of the interface. |
| y | The y-coordinate of the interface. |
|
signal |
Emitted when the user has placed all the markers.
| markers | The vector containing the markers. |
|
signal |
Emitted when the user requests to open a metadata file.
| path | The path of the file that was selected. |
|
signal |
Emitted when the user has input all the metadata.
| metadata | The Metadata object representing the user input. |
|
protectedvirtual |
Reimplemented for handling a window move event.
| event | The move event object. |
|
signal |
Emitted when the user wants to start a new measurement.
|
signal |
Emitted when the user wants to open an existing measurement.
| path | The path to the measurement's XML file. |
|
signal |
Emitted when the user wants to redo the measurement.
|
signal |
Emitted when the user requests to refresh cameras.
|
overridevirtual |
Removes the specified source from the interface.
| source | The id of the source to be removed. |
Implements cavapa_gui::UserInterface.
|
protectedvirtual |
Reimplemented for handling a window resize event.
| event | The resize event object. |
|
overridevirtual |
Sets the calibration points for the specified source.
| source | The id of the source whose calibration points will be set. |
| points | The collection of calibration points. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Informs the interface whether the calculation can be paused.
| flag | True if the calculation can be paused, false otherwise. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Sets whether videos can be saved.
| flag | True if videos can be saved, false otherwise. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Sets the location of the interface.
| x | The x-coordinate of the interface. |
| y | The y-coordinate of the interface. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Sets the history of previously input markers.
| history | The collection of strings representing the history. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Sets the size of the interface.
| width | The desired width of the interface. |
| height | The desired height of the interface. |
| fullscreen | Whether the interface is in fullscreen mode or not. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Displays a message in the interface.
| message | The message to be displayed. |
| level | The severity level of the message. |
Implements cavapa_gui::UserInterface.
|
signal |
Emitted when the size of the interface changes.
| width | The new width of the interface. |
| height | The new height of the interface. |
| fullscreen | Whether the interface is in fullscreen mode or not. |
|
signal |
Emitted when the user adds a new video source.
| path | The path of the source. |
|
overridevirtual |
Informs the interface that a source was paused.
| source | The id of the source that was paused. |
Implements cavapa_gui::UserInterface.
|
signal |
Emitted when the user requests to pause a source.
| source | The id of the source to be paused. |
|
signal |
Emitted when the user requests to play a source.
| source | The id of the source to play. |
|
overridevirtual |
Informs the interface that playing was started for a source.
| source | The source that is being played. |
Implements cavapa_gui::UserInterface.
|
signal |
Emitted when the user removes a source.
| source | The source ID to be removed. |
Emitted when the user requests to seek a source to a certain position.
| source | The id of the source to be sought. |
| position | The requested position. |
|
signal |
Emitted when the user changes a setting for a source.
| source | The source ID for which a setting was changed. |
| settings | The new settings for the source. |
|
signal |
Emitted when the user steps a video one frame back.
| source | The source that was stepped. |
|
signal |
Emitted when the user steps a video one frame forward.
| source | The source that was stepped. |
|
signal |
Emitted when the user wants the frame statistics to be retrieved.
| start | The starting point of the period. |
| stop | The end point of the period. |
| points | The number of points desired to be returned. |
|
overridevirtual |
Updates the calculation data.
| statistics | The frame calculation statistics. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Updates the frame for a source.
| frame | The FrameCapture structure containing the new frame and the source ID. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Updates the general settings for the interface.
| settings | The object describing the new settings. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Updates the graph markers.
| markers | A vector containing the markers. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Updates the metadata to the interface.
| metadata | The Metadata object. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Updates the settings of the speficied source.
| source | The ID of the source whose settings should be updated. |
| settings | The new settings for the source. |
Implements cavapa_gui::UserInterface.
|
overridevirtual |
Updates the interface with the frame statistics from a certain period.
| stats | Statistical information. |
Implements cavapa_gui::UserInterface.
1.8.7