|
AGX Dynamics 2.42.1.1
|
#include <ImageCapture.h>
Inheritance diagram for agxOSG::ImageCaptureBase:Classes | |
| class | ImageVector |
| class | WriteImageThread |
Public Member Functions | |
| ImageCaptureBase (agxSDK::Simulation *sim=nullptr) | |
| virtual void | apply (osg::RenderInfo &renderInfo) |
| DrawCallback (ImageCaptureBase *capture) | |
| bool | getCaptureStarted () const |
| Return whether the capturing is enabled or not. | |
| DrawCallback * | getDrawCallback () |
| bool | getEnableSyncWithSimulation () const |
| agx::Real | getFps () |
| Return the specified desired frame rate for capture. | |
| ImageCaptureBase * | getImageCapture () |
| int | getImageNum () const |
| agx::Vec2u | getImageResolution () const |
| agxSDK::Simulation * | getSimulation () |
| virtual void | operator() (osg::RenderInfo &renderInfo) const |
| void | resetTime () |
| void | setEnableSyncWithSimulation (bool enableSync) |
| void | setFps (agx::Real fps) |
| Set the desired frame rate (rate of capture). | |
| void | setImageCapture (ImageCaptureBase *ic) |
| void | setImageResolution (agx::UInt width, agx::UInt height) |
| void | setMaxImages (int i) |
| Set a limit of the maximum number of images that should be captured Set -1 for no limit. | |
| void | setSimulation (agxSDK::Simulation *simulation) |
| virtual void | startCapture (int startImageNumber=0) |
| Enable/disable capturing. | |
| virtual bool | stopCapture () |
| Return false if stopping an already stopped capture process. | |
| virtual void | writeImage (osg::Image *image, agx::Index index)=0 |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
Protected Member Functions | |
| virtual | ~ImageCaptureBase () |
| void | setCaptureStarted (bool f) |
| void | shutdown () |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Additional Inherited Members | |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. | |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Definition at line 39 of file ImageCapture.h.
| agxOSG::ImageCaptureBase::ImageCaptureBase | ( | agxSDK::Simulation * | sim = nullptr | ) |
|
protectedvirtual |
|
virtual |
| agxOSG::ImageCaptureBase::DrawCallback | ( | ImageCaptureBase * | capture | ) |
| bool agxOSG::ImageCaptureBase::getCaptureStarted | ( | ) | const |
Return whether the capturing is enabled or not.
| DrawCallback * agxOSG::ImageCaptureBase::getDrawCallback | ( | ) |
| bool agxOSG::ImageCaptureBase::getEnableSyncWithSimulation | ( | ) | const |
| agx::Real agxOSG::ImageCaptureBase::getFps | ( | ) |
Return the specified desired frame rate for capture.
| ImageCaptureBase * agxOSG::ImageCaptureBase::getImageCapture | ( | ) |
| int agxOSG::ImageCaptureBase::getImageNum | ( | ) | const |
| agx::Vec2u agxOSG::ImageCaptureBase::getImageResolution | ( | ) | const |
| agxSDK::Simulation * agxOSG::ImageCaptureBase::getSimulation | ( | ) |
|
virtual |
| void agxOSG::ImageCaptureBase::resetTime | ( | ) |
|
protected |
| void agxOSG::ImageCaptureBase::setEnableSyncWithSimulation | ( | bool | enableSync | ) |
| void agxOSG::ImageCaptureBase::setFps | ( | agx::Real | fps | ) |
Set the desired frame rate (rate of capture).
| void agxOSG::ImageCaptureBase::setImageCapture | ( | ImageCaptureBase * | ic | ) |
| void agxOSG::ImageCaptureBase::setMaxImages | ( | int | i | ) |
Set a limit of the maximum number of images that should be captured Set -1 for no limit.
| void agxOSG::ImageCaptureBase::setSimulation | ( | agxSDK::Simulation * | simulation | ) |
|
protected |
|
virtual |
Enable/disable capturing.
|
virtual |
Return false if stopping an already stopped capture process.
|
pure virtual |
Implemented in agxOSG::ImageCapture.