39 #include "analysiscontroller.h"
40 #include "userinterface.h"
54 CalculationInProgress,
74 std::vector<UserInterface*> interfaces;
75 std::vector<SourceID> activeSources;
76 std::map<SourceID, SourceSettings> allSourceSettings;
77 std::vector<cavapa::CalibrationPoint> calibPoints;
79 static QString dateFormat;
80 State state = State::Start;
93 void cancelCalculation();
99 inline QDir getResultsDirectory()
const;
111 std::string getUserName();
123 bool loadMetadataVideos();
130 bool loadSavedVideos();
142 void removeAllSources();
163 template<
typename... T>
164 bool stateIsAnyOf(T... states)
184 void calculationCancelRequested();
189 void calculationCompleted();
195 void calculationContinueRequested();
201 void calculationPauseRequested();
207 void calculationStartRequested();
213 void calculationStopRequested();
219 void calibrationPointsReady(
220 const std::vector<cavapa::CalibrationPoint>& points);
240 void graphPositionSelected(
FrameTime time);
245 void interfaceClosed();
252 void locationChanged(
int x,
int y);
260 void markersReady(
const std::vector<GraphMarker>& markers);
267 void metadataOpened(
const std::string& path);
274 void metadataReady(
const Metadata& metadata);
280 void newMeasurementRequested();
287 void openMeasurementRequested(
const std::string& path);
293 void redoMeasurementRequested();
298 void refreshRequested();
307 void showMessage(
const std::string& message,
316 void sizeChanged(
int width,
int height,
bool fullscreen);
323 void sourceAddRequested(
const std::string& path);
329 void sourcePauseRequested(
SourceID source);
335 void sourcePlayRequested(
SourceID source);
342 void sourceRemoveRequested(
SourceID source);
358 void sourceSettingsChanged(
SourceID source,
366 void sourceStepForward(
SourceID source);
373 void sourceStepBackward(
SourceID source);
390 void updated(
const std::vector<FrameCapture>& frames,
431 #endif // CONTROLLER_H
void aboutToQuitApp()
Warns the object for application termination.
Definition: controller.cpp:83
void finished()
Emitted when all the interfaces have been closed.
State
The State enum lists the possible application main states when performing a measurement.
Definition: controller.h:50
Structure for holding frame statistics on activity.
Definition: common.h:285
Controller()
Constructs the Controller object.
Definition: controller.cpp:55
unsigned int SourceID
Used to indicate unique source ID-numbers.
Definition: common.h:229
void addInterface(UserInterface *cInterface)
Adds a new interface to the controller.
Definition: controller.cpp:89
The Controller class handles the messages between UserInterface and AnalysisController.
Definition: controller.h:68
Base class of the CAVAPA calculations.
Definition: analysiscontroller.h:70
void startInterfaces()
Starts all the user interfaces.
Definition: controller.cpp:1172
Represents the settings for a video source.
Definition: sourcesettings.h:46
void run()
Launches all the registered interfaces.
Definition: controller.cpp:1204
Represents the general settings of the application.
Definition: generalsettings.h:43
std::uint64_t FrameTime
Used to store milliseconds interval in frame times.
Definition: common.h:138
The structure holds CSV export options.
Definition: common.h:183
ErrorLevel
Error level indicator.
Definition: common.h:77
The UserInterface class defines the methods and signals that a user interface needs to have...
Definition: userinterface.h:52