|
AGXDynamics
2.31.1.0
|
#include <ImageCapture.h>
Inheritance diagram for agxOSG::ImageCapture:Public Member Functions | |
| ImageCapture (agxSDK::Simulation *sim=nullptr) | |
| virtual void | apply (osg::RenderInfo &renderInfo) |
| 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 |
| DrawCallback (ImageCaptureBase *capture) | |
| bool | getCaptureStarted () const |
| Return whether the capturing is enabled or not. More... | |
| std::string | getDirectoryPath () const |
| DrawCallback * | getDrawCallback () |
| bool | getEnableSyncWithSimulation () const |
| agx::Real | getFps () |
| Return the specified desired frame rate for capture. More... | |
| ImageCaptureBase * | getImageCapture () |
| int | getImageNum () const |
| agx::Vec2u | getImageResolution () const |
| std::string | getPostfix () const |
| std::string | getPrefix () const |
| int | getReferenceCount () const |
| agxSDK::Simulation * | getSimulation () |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| virtual void | operator() (osg::RenderInfo &renderInfo) const |
| 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 | resetTime () |
| void | setDirectoryPath (const std::string &path) |
| void | setEnableSyncWithSimulation (bool enableSync) |
| void | setFps (agx::Real fps) |
| Set the desired frame rate (rate of capture). More... | |
| 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. More... | |
| void | setPostfix (const std::string &postfix) |
| Sets the postfix. More... | |
| void | setPrefix (const std::string &prefix) |
| void | setSimulation (agxSDK::Simulation *simulation) |
| virtual void | startCapture (int startImageNumber=0) |
| Enable/disable capturing. More... | |
| virtual bool | stopCapture () |
| Return false if stopping an already stopped capture process. 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... | |
| virtual void | writeImage (osg::Image *image, agx::Index index) |
Static Public Member Functions | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| virtual | ~ImageCapture () |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| void | setCaptureStarted (bool f) |
| void | shutdown () |
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 | |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Definition at line 129 of file ImageCapture.h.
| agxOSG::ImageCapture::ImageCapture | ( | agxSDK::Simulation * | sim = nullptr | ) |
|
protectedvirtual |
|
protectedinherited |
|
virtualinherited |
|
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 |
|
inherited |
|
inherited |
Return whether the capturing is enabled or not.
|
staticprotectedinherited |
|
inline |
Definition at line 161 of file ImageCapture.h.
|
inherited |
|
inherited |
|
inherited |
Return the specified desired frame rate for capture.
|
inherited |
|
inherited |
|
inherited |
|
inline |
Definition at line 136 of file ImageCapture.h.
|
inline |
Definition at line 151 of file ImageCapture.h.
|
inherited |
|
inherited |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
virtualinherited |
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.
|
inherited |
|
protectedinherited |
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
inline |
Definition at line 166 of file ImageCapture.h.
|
inherited |
Set the desired frame rate (rate of capture).
|
inherited |
|
inherited |
Set a limit of the maximum number of images that should be captured Set -1 for no limit.
|
inline |
Sets the postfix.
Should be of form "bmp", "png" and so on. Default is "bmp".
Definition at line 146 of file ImageCapture.h.
|
inline |
Definition at line 156 of file ImageCapture.h.
|
inherited |
|
protectedinherited |
|
virtualinherited |
Enable/disable capturing.
|
virtualinherited |
Return false if stopping an already stopped capture process.
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 |
|
virtual |
Implements agxOSG::ImageCaptureBase.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.