|
AGXDynamics
2.31.1.0
|
#include <VideoCapture.h>
Inheritance diagram for agxQt::VideoCapture:Public Member Functions | |
| VideoCapture (QtAgxWrapper *wrapper) | |
| Default constructor. More... | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| void | finalizeVideo () |
| Finalizes the current video process by completing the video file and closing down the video capture process. More... | |
| agx::String | getCompleteFileName () const |
| Get the filename, including the postfix, of the video file that should be generated. More... | |
| agx::String | getFileNameWithoutPostFix () const |
| Get the filename, without the postfix, of the video file that should be generated. More... | |
| agx::UInt | getNumGeneratedImages () |
| Returns the number of generated video frames. More... | |
| agx::Real | getQuality () |
| Get the quality of the video which is a normalized value between 0.0-1.0. More... | |
| agx::Real | getRealTimeFactor () const |
| Get the real time factor of the video, which is the ratio between the video FPS and image capture FPS example: videoFPS(60Hz) / imageFPS(30Hz) More... | |
| int | getReferenceCount () const |
| agx::Real | getVideoFPS () const |
| Get the desired video frame rate of the capture. More... | |
| bool | hasActiveVideo () |
| Returns true if there is an active video capture process, otherwise false. More... | |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | setCompleteFileName (const std::string &filename) |
| Set the complete filename of the video file that should be generated, including postfix. More... | |
| void | setEnableSyncWithSimulation (bool enable) |
| Set to true/false if the video capture should synchronize with simulation time stepping. More... | |
| void | setQuality (agx::Real quality) |
| Set the quality of the video which is a normalized value between 0.0-1.0. More... | |
| 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 example: videoFPS(60Hz) / imageFPS(30Hz) More... | |
| void | setSimulation (agxSDK::Simulation *simulation) |
| Set the simulation that the video capture should synchronize with. More... | |
| void | setVideoFPS (agx::Real fps) |
| Set the desired video frame rate of the capture. More... | |
| void | setVideoResolution (const agx::Vec2u &resolution) |
| Set the resolution of the video that is to be generated. More... | |
| void | startCapture () |
| Starts or resumes the video capture. More... | |
| void | stopCapture () |
| Pauses the video capture, if active. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Static Public Member Functions | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| virtual | ~VideoCapture () |
| Protected destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| agx::UInt | m_imageNumber |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| QtAgxWrapper * | m_qtagxWrapper |
| agx::Real | m_quality |
| agx::Real | m_realTimeFactor |
| AtomicValue | m_refCount |
| agxOSG::RenderToTextureRef | m_renderToTexture |
| agx::ref_ptr< agxOSG::VideoFFMPEGPipeCapture > | m_videoCapture |
Definition at line 41 of file agxQt/VideoCapture.h.
| agxQt::VideoCapture::VideoCapture | ( | QtAgxWrapper * | wrapper | ) |
Default constructor.
|
protectedvirtual |
Protected destructor.
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
protectedinherited |
| void agxQt::VideoCapture::finalizeVideo | ( | ) |
Finalizes the current video process by completing the video file and closing down the video capture process.
Will call stopCapture() internally.
| agx::String agxQt::VideoCapture::getCompleteFileName | ( | ) | const |
Get the filename, including the postfix, of the video file that should be generated.
|
staticprotectedinherited |
| agx::String agxQt::VideoCapture::getFileNameWithoutPostFix | ( | ) | const |
Get the filename, without the postfix, of the video file that should be generated.
| agx::UInt agxQt::VideoCapture::getNumGeneratedImages | ( | ) |
Returns the number of generated video frames.
| agx::Real agxQt::VideoCapture::getQuality | ( | ) |
Get the quality of the video which is a normalized value between 0.0-1.0.
This is typically converted into a CRF value if h264 is used in video generation.
| agx::Real agxQt::VideoCapture::getRealTimeFactor | ( | ) | const |
Get the real time factor of the video, which is the ratio between the video FPS and image capture FPS example: videoFPS(60Hz) / imageFPS(30Hz)
|
inherited |
| agx::Real agxQt::VideoCapture::getVideoFPS | ( | ) | const |
Get the desired video frame rate of the capture.
| bool agxQt::VideoCapture::hasActiveVideo | ( | ) |
Returns true if there is an active video capture process, otherwise false.
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
| void agxQt::VideoCapture::setCompleteFileName | ( | const std::string & | filename | ) |
Set the complete filename of the video file that should be generated, including postfix.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| void agxQt::VideoCapture::setEnableSyncWithSimulation | ( | bool | enable | ) |
Set to true/false if the video capture should synchronize with simulation time stepping.
Set the quality of the video which is a normalized value between 0.0-1.0.
This is typically converted into a CRF value if h264 is used in video generation.
Set the real time factor of the video, which is the ratio between the video FPS and image capture FPS example: videoFPS(60Hz) / imageFPS(30Hz)
| void agxQt::VideoCapture::setSimulation | ( | agxSDK::Simulation * | simulation | ) |
Set the simulation that the video capture should synchronize with.
Set the desired video frame rate of the capture.
| void agxQt::VideoCapture::setVideoResolution | ( | const agx::Vec2u & | resolution | ) |
Set the resolution of the video that is to be generated.
| void agxQt::VideoCapture::startCapture | ( | ) |
Starts or resumes the video capture.
Referenced by agxQt::QtAgxWrapper::getSceneDescription().
| void agxQt::VideoCapture::stopCapture | ( | ) |
Pauses the video capture, if active.
Referenced by agxQt::QtAgxWrapper::getSceneDescription().
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
staticinherited |
|
protected |
Definition at line 150 of file agxQt/VideoCapture.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
protected |
Definition at line 148 of file agxQt/VideoCapture.h.
|
protected |
Definition at line 153 of file agxQt/VideoCapture.h.
|
protected |
Definition at line 152 of file agxQt/VideoCapture.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protected |
Definition at line 151 of file agxQt/VideoCapture.h.
|
protected |
Definition at line 149 of file agxQt/VideoCapture.h.