Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

L1394::Camera Class Reference
[L1394_Device]

This class defines the interface for cameras. More...

#include <l1394_camera.h>

Inheritance diagram for L1394::Camera:

L1394::Device L1394::AvcCamera L1394::DccCamera List of all members.

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 CameraRegisterbrightness ()=0
 Access 'Brightness' feature register.
virtual const CameraRegisterautoExposure ()=0
 Access 'Auto-Exposure' feature register.
virtual const CameraRegistersharpness ()=0
 Access 'Sharpness' feature register.
virtual const CameraRegisterwhiteBalance ()=0
 Access 'White-Balance' feature register (change both RED and BLUE).
virtual const CameraRegisterwhiteBalance (int)=0
 Access 'White-Balance' feature register 1 = RED ,BLUE = 0.
virtual const CameraRegisterhue ()=0
 Access 'Hue' feature register.
virtual const CameraRegistersaturation ()=0
 Access 'Saturation' feature register.
virtual const CameraRegistergamma ()=0
 Access 'Gamma' feature register.
virtual const CameraRegistershutter ()=0
 Access 'Shutter' feature register.
virtual const CameraRegistergain ()=0
 Access 'Gain' feature register.
virtual const CameraRegisteriris ()=0
 Access 'Iris' feature register.
virtual const CameraRegisterfocus ()=0
 Access 'Focus' feature register.
virtual const CameraRegistertemperature ()=0
 Access 'Temperature' feature register.
virtual const CameraRegistertrigger ()=0
 Access 'Trigger' feature register.
virtual const CameraRegisterzoom ()=0
 Access 'Zoom' feature register.
virtual const CameraRegisterpan ()=0
 Access 'Pan' feature register.
virtual const CameraRegistertilt ()=0
 Access 'Tilt' feature register.
virtual const CameraRegisterfilter ()=0
 Access 'Filter' feature register.

Detailed Description

This class defines the interface for cameras.

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;
For more information see the tutorial.

Author:
Michael Repplinger

Definition at line 59 of file l1394_camera.h.


Constructor & Destructor Documentation

L1394::Camera::Camera Node parent_node  ) 
 

Definition at line 21 of file l1394_camera.cpp.

L1394::Camera::~Camera  )  [inline, virtual]
 

destructor

Definition at line 70 of file l1394_camera.h.


Member Function Documentation

virtual const CameraRegister* L1394::Camera::autoExposure  )  [pure virtual]
 

Access 'Auto-Exposure' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::brightness  )  [pure virtual]
 

Access 'Brightness' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::filter  )  [pure virtual]
 

Access 'Filter' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::focus  )  [pure virtual]
 

Access 'Focus' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::gain  )  [pure virtual]
 

Access 'Gain' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::gamma  )  [pure virtual]
 

Access 'Gamma' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

Referenced by setParameter().

virtual DeviceType L1394::Camera::getDeviceType  )  const [inline, virtual]
 

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.

virtual const CameraRegister* L1394::Camera::hue  )  [pure virtual]
 

Access 'Hue' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

Referenced by setParameter().

virtual const CameraRegister* L1394::Camera::iris  )  [pure virtual]
 

Access 'Iris' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::pan  )  [pure virtual]
 

Access 'Pan' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::saturation  )  [pure virtual]
 

Access 'Saturation' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

Referenced by setParameter().

virtual const CameraRegister* L1394::Camera::sharpness  )  [pure virtual]
 

Access 'Sharpness' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::shutter  )  [pure virtual]
 

Access 'Shutter' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::temperature  )  [pure virtual]
 

Access 'Temperature' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::tilt  )  [pure virtual]
 

Access 'Tilt' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::trigger  )  [pure virtual]
 

Access 'Trigger' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::whiteBalance int   )  [pure virtual]
 

Access 'White-Balance' feature register 1 = RED ,BLUE = 0.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

virtual const CameraRegister* L1394::Camera::whiteBalance  )  [pure virtual]
 

Access 'White-Balance' feature register (change both RED and BLUE).

Implemented in L1394::AvcCamera, and L1394::DccCamera.

Referenced by setParameter().

virtual const CameraRegister* L1394::Camera::zoom  )  [pure virtual]
 

Access 'Zoom' feature register.

Implemented in L1394::AvcCamera, and L1394::DccCamera.

Referenced by setParameter().


The documentation for this class was generated from the following files:
Generated on Wed Aug 24 00:36:43 2005 for L1394 by doxygen 1.4.2
L1394 library (NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/