AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
VideoCaptureSettingsWidget.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#ifndef AGXQT_VIDEOCAPTURESETTINGSWIDGET_H
18#define AGXQT_VIDEOCAPTURESETTINGSWIDGET_H
19
20#include <agxQt/export.h>
21#include <agxQt/VideoCapture.h>
22#include <agx/Referenced.h>
23#include <agxIO/FileSystem.h>
24#include <agx/Logger.h>
25
26#include <agx/PushDisableWarnings.h> // Disabling warnings. Include agx/PopDisableWarnings.h below!
27#include <QWidget>
28#include <QProcess>
29#include <osgViewer/ViewerEventHandlers>
30#include <osgViewer/Renderer>
31#include <agxQt/ui_VideoCaptureSettingsWidget.h>
32#include <agx/PopDisableWarnings.h> // End of disabled warnings.
33
34#define DEFAULT_VIDEO_FPS 30
35#define DEFAULT_CAPTURE_FPS 30
36
37#define QUALITY_INTERVAL 20
38#define DEFAULT_QUALITY_TICK 17
39
40namespace agxQt
41{
43 {
44 Q_OBJECT
45
46 public:
47 explicit VideoCaptureSettingsWidget(QWidget *parent = 0);
49
51 void setData(
53 agx::Real simulationTimestep);
54
56 std::string getVideoOutputName();
57
60
63
67
69
70signals:
73
74 protected:
77
78 protected slots:
79 // Tab - Video slots
86
88 // Variables
90 private:
91 agx::Real m_videoFPS;
92 agx::Real m_videoQuality;
93 QString m_videoOutputPath;
94 agx::Real m_realTimeFactor;
95 agx::Real m_timeStep;
96 agxQt::VideoCapture* m_videoCapture;
97 Ui::VideoCaptureSettingsWidget* m_ui;
98 };
99}
100
101#endif // QT_VIDEOSETTINGS_WIDGET
#define AGXQT_EXPORT
agx::Real getRealTimeFactor() const
Get real time factor.
void setData(agxQt::VideoCapture *vc, agx::Real simulationTimestep)
Set initial data to the inputs in the widget.
VideoCaptureSettingsWidget(QWidget *parent=0)
std::string getVideoOutputName()
Get output name for the video.
agx::Real getVideoQuality()
Returns the quality value from the video [0-1].
agx::Real getVideoFPS() const
Get FPS from input.
void setVideoQuality(agx::Real quality)
Contains classes/utility functions for connecting AGX to QT with OSG.
double Real
Definition Real.h:42