CameraControlFactory Class Reference
Camera control factory. More...
#include <cams/control/factory.h>
Static Public Member Functions | |
| static CameraControl * | instance (const char *as) |
| Get camera control instance. | |
| static CameraControl * | instance (Camera *camera) |
| Get camera control instance. | |
| static CameraControl * | instance (const CameraArgumentParser *cap) |
| Get camera control instance with parameters from given camera argument parser. | |
| static CameraControl * | instance (const std::type_info &typeinf, Camera *camera) |
| Get camera control instance. | |
Detailed Description
Camera control factory.This camera control factory provides access to all camera controls in a unified way. You just supply a camera argument string and depending on the camera ID and compile-time support of camera control types an instance of the desired camera control is returned or otherwise an exception is thrown. See instance() for a list of supported camera control types.
Definition at line 37 of file factory.h.
Member Function Documentation
| CameraControl * CameraControlFactory::instance | ( | const std::type_info & | typeinf, | |
| Camera * | camera | |||
| ) | [static] |
Get camera control instance.
Get an instance of a camera of the given type based on the given camera. It is tried to cast the camera to the appropriate camera control type. If that succeeds the camera control is returned, otherwise an exception is thrown.
- Parameters:
-
typeinf type info for the intended type of the camera control camera camera to cast
- Returns:
- camera control instance of requested type
- Exceptions:
-
UnknownCameraControlTypeException thrown, if the desired camera control could not be instantiated. This could be either to a misspelled camera ID, generally missing support or unset definition due to configuration in fvconf.mk or missing libraries and camera support compile-time autodetection.
Definition at line 167 of file factory.cpp.
| CameraControl * CameraControlFactory::instance | ( | const CameraArgumentParser * | cap | ) | [static] |
Get camera control instance with parameters from given camera argument parser.
This is a convenience method and works like instace(const char *as).
- Parameters:
-
cap camera argument parser
- Returns:
- camera instance
- Exceptions:
-
UnknownCameraControlTypeException thrown if camera type is not known or was not available at build time.
Definition at line 71 of file factory.cpp.
References CameraArgumentParser::cam_type().
| CameraControl * CameraControlFactory::instance | ( | Camera * | camera | ) | [static] |
Get camera control instance.
Get an instance of a camera control from the passed camera. It is tried to cast the camera to the appropriate camera control type. If that succeeds the camera control is returned, otherwise an exception is thrown.
- Parameters:
-
camera camera to cast
- Returns:
- camera control instance.
- Exceptions:
-
UnknownCameraControlTypeException thrown, if the desired camera control could not be instantiated. This could be either to a misspelled camera ID, generally missing support or unset definition due to configuration in fvconf.mk or missing libraries and camera support compile-time autodetection.
Definition at line 143 of file factory.cpp.
| CameraControl * CameraControlFactory::instance | ( | const char * | as | ) | [static] |
Get camera control instance.
Get an instance of a camera of the given type. The argument string determines the type of camera to open. Supported camera types:
- evid100p, SonyEviD100PControl, compiled if HAVE_EVID100P_CTRL is defined in fvconf.mk
- dpptu, DPPTUControl, compiled if HAVE_DPPTU_CTRL is defined in fvconf.mk
- Parameters:
-
as camera argument string
- Returns:
- camera control instance of requested type
- Exceptions:
-
UnknownCameraControlTypeException thrown, if the desired camera control could not be instantiated. This could be either to a misspelled camera ID, generally missing support or unset definition due to configuration in fvconf.mk or missing libraries and camera support compile-time autodetection.
Definition at line 120 of file factory.cpp.
Referenced by FvBaseThread::acquire_camctrl().
The documentation for this class was generated from the following files:
- src/firevision/cams/control/factory.h
- src/firevision/cams/control/factory.cpp

