|
AGX Dynamics
2.37.2.0
|
#include <ImageCapture.h>
Inheritance diagram for agxOSG::ImageCapture:Public Member Functions | |
| ImageCapture (agxSDK::Simulation *sim=nullptr) | |
| std::string | getDirectoryPath () const |
| std::string | getPostfix () const |
| std::string | getPrefix () const |
| void | setDirectoryPath (const std::string &path) |
| void | setPostfix (const std::string &postfix) |
| Sets the postfix. More... | |
| void | setPrefix (const std::string &prefix) |
| virtual void | writeImage (osg::Image *image, agx::Index index) |
Public Member Functions inherited from agxOSG::ImageCaptureBase | |
| 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. More... | |
| 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 |
| 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). 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 | 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... | |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| 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 |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. 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 | 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... | |
Protected Member Functions | |
| virtual | ~ImageCapture () |
Protected Member Functions inherited from agxOSG::ImageCaptureBase | |
| virtual | ~ImageCaptureBase () |
| void | setCaptureStarted (bool f) |
| void | shutdown () |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| 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. More... | |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Definition at line 129 of file ImageCapture.h.
| agxOSG::ImageCapture::ImageCapture | ( | agxSDK::Simulation * | sim = nullptr | ) |
|
protectedvirtual |
|
inline |
Definition at line 161 of file ImageCapture.h.
|
inline |
Definition at line 136 of file ImageCapture.h.
|
inline |
Definition at line 151 of file ImageCapture.h.
|
inline |
Definition at line 166 of file ImageCapture.h.
|
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.
|
virtual |
Implements agxOSG::ImageCaptureBase.