AGX Dynamics 2.42.1.1
Loading...
Searching...
No Matches
agxOSG::ImageCaptureBase Class Referenceabstract

#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.
 
DrawCallbackgetDrawCallback ()
 
bool getEnableSyncWithSimulation () const
 
agx::Real getFps ()
 Return the specified desired frame rate for capture.
 
ImageCaptureBasegetImageCapture ()
 
int getImageNum () const
 
agx::Vec2u getImageResolution () const
 
agxSDK::SimulationgetSimulation ()
 
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.
 
Referencedoperator= (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 DeleteHandlergetDeleteHandler ()
 
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
 

Detailed Description

Definition at line 39 of file ImageCapture.h.

Constructor & Destructor Documentation

◆ ImageCaptureBase()

agxOSG::ImageCaptureBase::ImageCaptureBase ( agxSDK::Simulation sim = nullptr)

◆ ~ImageCaptureBase()

virtual agxOSG::ImageCaptureBase::~ImageCaptureBase ( )
protectedvirtual

Member Function Documentation

◆ apply()

virtual void agxOSG::ImageCaptureBase::apply ( osg::RenderInfo &  renderInfo)
virtual

◆ DrawCallback()

agxOSG::ImageCaptureBase::DrawCallback ( ImageCaptureBase capture)

◆ getCaptureStarted()

bool agxOSG::ImageCaptureBase::getCaptureStarted ( ) const

Return whether the capturing is enabled or not.

◆ getDrawCallback()

DrawCallback * agxOSG::ImageCaptureBase::getDrawCallback ( )

◆ getEnableSyncWithSimulation()

bool agxOSG::ImageCaptureBase::getEnableSyncWithSimulation ( ) const

◆ getFps()

agx::Real agxOSG::ImageCaptureBase::getFps ( )

Return the specified desired frame rate for capture.

◆ getImageCapture()

ImageCaptureBase * agxOSG::ImageCaptureBase::getImageCapture ( )

◆ getImageNum()

int agxOSG::ImageCaptureBase::getImageNum ( ) const

◆ getImageResolution()

agx::Vec2u agxOSG::ImageCaptureBase::getImageResolution ( ) const

◆ getSimulation()

agxSDK::Simulation * agxOSG::ImageCaptureBase::getSimulation ( )

◆ operator()()

virtual void agxOSG::ImageCaptureBase::operator() ( osg::RenderInfo &  renderInfo) const
virtual

◆ resetTime()

void agxOSG::ImageCaptureBase::resetTime ( )

◆ setCaptureStarted()

void agxOSG::ImageCaptureBase::setCaptureStarted ( bool  f)
protected

◆ setEnableSyncWithSimulation()

void agxOSG::ImageCaptureBase::setEnableSyncWithSimulation ( bool  enableSync)

◆ setFps()

void agxOSG::ImageCaptureBase::setFps ( agx::Real  fps)

Set the desired frame rate (rate of capture).

◆ setImageCapture()

void agxOSG::ImageCaptureBase::setImageCapture ( ImageCaptureBase ic)

◆ setImageResolution()

void agxOSG::ImageCaptureBase::setImageResolution ( agx::UInt  width,
agx::UInt  height 
)

◆ setMaxImages()

void agxOSG::ImageCaptureBase::setMaxImages ( int  i)

Set a limit of the maximum number of images that should be captured Set -1 for no limit.

◆ setSimulation()

void agxOSG::ImageCaptureBase::setSimulation ( agxSDK::Simulation simulation)

◆ shutdown()

void agxOSG::ImageCaptureBase::shutdown ( )
protected

◆ startCapture()

virtual void agxOSG::ImageCaptureBase::startCapture ( int  startImageNumber = 0)
virtual

Enable/disable capturing.

◆ stopCapture()

virtual bool agxOSG::ImageCaptureBase::stopCapture ( )
virtual

Return false if stopping an already stopped capture process.

◆ writeImage()

virtual void agxOSG::ImageCaptureBase::writeImage ( osg::Image *  image,
agx::Index  index 
)
pure virtual

Implemented in agxOSG::ImageCapture.


The documentation for this class was generated from the following file: