#include <l1394_camera.h>
Inheritance diagram for L1394::Camera:
Public Member Functions | |
virtual DeviceType | getDeviceType () const |
This abstract method must be implemented by all devices. | |
Camera constructor | |
These functions creates the Camera objects | |
Camera (Node *parent_node) | |
virtual | ~Camera () |
destructor | |
Camera Interface | |
This functions describe the interface of any camera. There are combinations to create an illegal command. These commands are ignored. | |
virtual const CameraRegister * | brightness ()=0 |
Access 'Brightness' feature register. | |
virtual const CameraRegister * | autoExposure ()=0 |
Access 'Auto-Exposure' feature register. | |
virtual const CameraRegister * | sharpness ()=0 |
Access 'Sharpness' feature register. | |
virtual const CameraRegister * | whiteBalance ()=0 |
Access 'White-Balance' feature register (change both RED and BLUE). | |
virtual const CameraRegister * | whiteBalance (int)=0 |
Access 'White-Balance' feature register 1 = RED ,BLUE = 0. | |
virtual const CameraRegister * | hue ()=0 |
Access 'Hue' feature register. | |
virtual const CameraRegister * | saturation ()=0 |
Access 'Saturation' feature register. | |
virtual const CameraRegister * | gamma ()=0 |
Access 'Gamma' feature register. | |
virtual const CameraRegister * | shutter ()=0 |
Access 'Shutter' feature register. | |
virtual const CameraRegister * | gain ()=0 |
Access 'Gain' feature register. | |
virtual const CameraRegister * | iris ()=0 |
Access 'Iris' feature register. | |
virtual const CameraRegister * | focus ()=0 |
Access 'Focus' feature register. | |
virtual const CameraRegister * | temperature ()=0 |
Access 'Temperature' feature register. | |
virtual const CameraRegister * | trigger ()=0 |
Access 'Trigger' feature register. | |
virtual const CameraRegister * | zoom ()=0 |
Access 'Zoom' feature register. | |
virtual const CameraRegister * | pan ()=0 |
Access 'Pan' feature register. | |
virtual const CameraRegister * | tilt ()=0 |
Access 'Tilt' feature register. | |
virtual const CameraRegister * | filter ()=0 |
Access 'Filter' feature register. |
This class is base class for all cameras and defines functions for the most common features.
To access a feature, you must call the corresponding function. Normally this method returns a pointer to a so called L1394 Register object. The Register object provides functions to define how to execute the feature. Class CameraRegister defines the functions of the L1394 Register objects for cameras.
Here is a little example to show the idea.
Session* session = GetSession(); Camera* camera = session->findCamera(); if (camera == NULL) { cout << "No camera found" << endl; exit(0); } if (camera->zoom()->hasFeature()) //if the camera support zoom camera->zoom()->setValue(camera->zoom()->getMinValue()); //set zoom value to the minimum value. else cout << " Feature not supported " << endl;
Definition at line 59 of file l1394_camera.h.
|
Definition at line 21 of file l1394_camera.cpp. |
|
destructor
Definition at line 70 of file l1394_camera.h. |
|
Access 'Auto-Exposure' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'Brightness' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'Filter' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'Focus' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'Gain' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'Gamma' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. Referenced by setParameter(). |
|
This abstract method must be implemented by all devices. This method is normaly for internal use. You can use it for save down_casting. The following types are defined: return int : type of the device. Implements L1394::Device. Definition at line 73 of file l1394_camera.h. References L1394::_Camera. |
|
Access 'Hue' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. Referenced by setParameter(). |
|
Access 'Iris' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'Pan' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'Saturation' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. Referenced by setParameter(). |
|
Access 'Sharpness' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'Shutter' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'Temperature' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'Tilt' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'Trigger' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'White-Balance' feature register 1 = RED ,BLUE = 0.
Implemented in L1394::AvcCamera, and L1394::DccCamera. |
|
Access 'White-Balance' feature register (change both RED and BLUE).
Implemented in L1394::AvcCamera, and L1394::DccCamera. Referenced by setParameter(). |
|
Access 'Zoom' feature register.
Implemented in L1394::AvcCamera, and L1394::DccCamera. Referenced by setParameter(). |