17 #ifndef AGXQT_QTSIMULATIONRECORDER_H
18 #define AGXQT_QTSIMULATIONRECORDER_H
23 #include <osgViewer/ViewerEventHandlers>
24 #include <osgViewer/Renderer>
142 void initResolutionForRenderToTexture(
const agx::Vec2u& resolution);
#define AGX_DECLARE_POINTER_TYPES(type)
Class that wraps SimulationController with an interface that enables QT Gui signals to control the si...
void stopCapture()
Pauses the video capture, if active.
agxOSG::RenderToTextureRef m_renderToTexture
agx::String getCompleteFileName() const
Get the filename, including the postfix, of the video file that should be generated.
agx::Real getRealTimeFactor() const
Get the real time factor of the video, which is the ratio between the video FPS and image capture FPS...
void setVideoResolution(const agx::Vec2u &resolution)
Set the resolution of the video that is to be generated.
agx::Real getVideoFPS() const
Get the desired video frame rate of the capture.
void startCapture()
Starts or resumes the video capture.
virtual ~VideoCapture()
Protected destructor.
void setRealTimeFactor(agx::Real factor)
Set the real time factor of the video, which is the ratio between the video FPS and image capture FPS...
agx::UInt getNumGeneratedImages()
Returns the number of generated video frames.
agx::Real m_realTimeFactor
bool hasActiveVideo()
Returns true if there is an active video capture process, otherwise false.
agx::Real getQuality()
Get the quality of the video which is a normalized value between 0.0-1.0.
void setQuality(agx::Real quality)
Set the quality of the video which is a normalized value between 0.0-1.0.
agx::String getFileNameWithoutPostFix() const
Get the filename, without the postfix, of the video file that should be generated.
void setEnableSyncWithSimulation(bool enable)
Set to true/false if the video capture should synchronize with simulation time stepping.
void finalizeVideo()
Finalizes the current video process by completing the video file and closing down the video capture p...
void setSimulation(agxSDK::Simulation *simulation)
Set the simulation that the video capture should synchronize with.
QtAgxWrapper * m_qtagxWrapper
VideoCapture(QtAgxWrapper *wrapper)
Default constructor.
void setCompleteFileName(const std::string &filename)
Set the complete filename of the video file that should be generated, including postfix.
agx::ref_ptr< agxOSG::VideoFFMPEGPipeCapture > m_videoCapture
void setVideoFPS(agx::Real fps)
Set the desired video frame rate of the capture.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Base class providing referencing counted objects.
Contains classes/utility functions for connecting AGX to QT with OSG.