Visual Servoing Platform  version 3.4.0
vpPylonFactory Class Reference

#include <vpPylonFactory.h>

Public Types

enum  DeviceClass { BASLER_GIGE, BASLER_USB }
 

Public Member Functions

vpPylonGrabbercreatePylonGrabber (DeviceClass dev_class)
 

Static Public Member Functions

static vpPylonFactoryinstance ()
 

Detailed Description

Factory singleton class to create vpPylonGrabber subclass instances.

Use vpPylonFactory::instance() to get the singleton instance. This class can also help to initialize and terminate pylon runtime system.

Example code.

Examples:
testPylonGrabber.cpp, and tutorial-grabber-basler-pylon.cpp.

Definition at line 68 of file vpPylonFactory.h.

Member Enumeration Documentation

Device class of cameras.

Enumerator
BASLER_GIGE 

Basler GigE camera.

BASLER_USB 

Basler USB camera.

Definition at line 75 of file vpPylonFactory.h.

Member Function Documentation

vpPylonGrabber * vpPylonFactory::createPylonGrabber ( DeviceClass  dev_class)

Create an object of vpPylonGrabber.

Parameters
dev_classThe device class. See vpPylonFactory::DeviceClass for valid values.
Returns
The pointer towards the vpPylonGrabber object. It's the caller's responsibility to destroy the object. NULL pointer will be returned if requested object can't be properly created.
Examples:
testPylonGrabber.cpp, and tutorial-grabber-basler-pylon.cpp.

Definition at line 70 of file vpPylonFactory.cpp.

References BASLER_GIGE, and BASLER_USB.

vpPylonFactory & vpPylonFactory::instance ( )
static

Get the vpPylonFactory singleton.

Examples:
testPylonGrabber.cpp, and tutorial-grabber-basler-pylon.cpp.

Definition at line 54 of file vpPylonFactory.cpp.