Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
icl::io::pylon::PylonGrabberThread Class Reference

Internally spawned thread class for continuous grabbing. More...

#include <PylonGrabberThread.h>

Inheritance diagram for icl::io::pylon::PylonGrabberThread:
icl::utils::Thread icl::utils::ShallowCopyable< ThreadImpl, ThreadImplDelOp >

List of all members.

Public Member Functions

ICLIO_API PylonGrabberThread (Pylon::IStreamGrabber *grabber, PylonColorConverter *converter, PylonCameraOptions *options)
 Constructor sets all internal fields and allocates memory.
ICLIO_API ~PylonGrabberThread ()
 Destructor frees all allocated memory.
ICLIO_API void run ()
 acquires images and writes them into an internal queue
ICLIO_API void resetBuffer ()
 reinitializes buffer
ICLIO_API core::ImgBasegetCurrentImage ()
 getter for the most current image

Private Member Functions

void grab ()
 grabs a single image into m_BufferQueue.

Private Attributes

Pylon::IStreamGrabber * m_Grabber
 A pointer to the image-providing StreamGrabber.
PylonColorConverterm_Converter
 A pointer to the ColorConverter.
PylonCameraOptionsm_Options
 A pointer to the CameraOptions.
ConcGrabberBuffer m_Buffers
 A buffer holding read and write buffers.
int m_Error
 A counter for acquisition errors.
int m_Timeout
 A counter for acquisition timeouts.
int m_Acquired
 A counter for correct acquisitions.

Detailed Description

Internally spawned thread class for continuous grabbing.


Constructor & Destructor Documentation

ICLIO_API icl::io::pylon::PylonGrabberThread::PylonGrabberThread ( Pylon::IStreamGrabber *  grabber,
PylonColorConverter converter,
PylonCameraOptions options 
)

Constructor sets all internal fields and allocates memory.

Parameters:
grabberThe IStreamGrabber providing the images.
converter
options

Destructor frees all allocated memory.


Member Function Documentation

getter for the most current image

Returns:
a pointer to an internally used TsBuffer the buffer can safely be used until the next call to getCurrentImage() or resetBuffer().

grabs a single image into m_BufferQueue.

reinitializes buffer

acquires images and writes them into an internal queue

Implements icl::utils::Thread.


Member Data Documentation

A counter for correct acquisitions.

A buffer holding read and write buffers.

A pointer to the ColorConverter.

A counter for acquisition errors.

Pylon::IStreamGrabber* icl::io::pylon::PylonGrabberThread::m_Grabber [private]

A pointer to the image-providing StreamGrabber.

A pointer to the CameraOptions.

A counter for acquisition timeouts.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines