Fawkes API
Fawkes Development Version
|
Camera control factory. More...
#include <>>
Static Public Member Functions | |
static CameraControl * | instance (const char *as) |
Get camera control instance. More... | |
static CameraControl * | instance (Camera *camera) |
Get camera control instance. More... | |
static CameraControl * | instance (const CameraArgumentParser *cap) |
Get camera control instance with parameters from given camera argument parser. More... | |
static CameraControl * | instance (const std::type_info &typeinf, Camera *camera) |
Get camera control instance. More... | |
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.
|
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:
as | camera argument string |
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 125 of file factory.cpp.
|
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.
camera | camera to cast |
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 148 of file factory.cpp.
|
static |
Get camera control instance with parameters from given camera argument parser.
This is a convenience method and works like instace(const char *as).
cap | camera argument parser |
UnknownCameraControlTypeException | thrown if camera type is not known or was not available at build time. |
Definition at line 76 of file factory.cpp.
References firevision::CameraArgumentParser::cam_type().
|
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.
typeinf | type info for the intended type of the camera control |
camera | camera to cast |
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 172 of file factory.cpp.