kn::CameraController Class Reference

Abstract class for camera control. More...

#include <CameraController.hpp>

Inherited by kn::DVCam [private], and kn::V4L2Webcam.

Collaboration diagram for kn::CameraController:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~CameraController (void)
 Destructor.
virtual void openDevice (void)=0
 Activates the camera.
virtual void closeDevice (void)=0
 Disables the webcam.
virtual void start (void)=0
 Start the capture of the images.
virtual void stop (void)=0
 Stop the capture of the images.
virtual unsigned char * getImage (void)=0
 Get the last image captured.
virtual size_t width (void) const =0
 Get width of the images captured by the webcam.
virtual size_t height (void) const =0
 Get height of the images captured by the webcam.

Protected Attributes

std::string devicename
 Name of the device.
size_t camwidth
 Width of the image captured by the webcam.
size_t camheight
 Height of the image captured by the webcam.


Detailed Description

Abstract class for camera control.

Definition at line 68 of file CameraController.hpp.


Constructor & Destructor Documentation

virtual kn::CameraController::~CameraController ( void   )  [inline, virtual]

Destructor.

Definition at line 97 of file CameraController.hpp.


Member Function Documentation

virtual void kn::CameraController::closeDevice ( void   )  [pure virtual]

Disables the webcam.

Implemented in kn::DVCam, and kn::V4L2Webcam.

virtual unsigned char* kn::CameraController::getImage ( void   )  [pure virtual]

Get the last image captured.

Returns:
array of RGB24 data

Implemented in kn::DVCam, and kn::V4L2Webcam.

virtual size_t kn::CameraController::height ( void   )  const [pure virtual]

Get height of the images captured by the webcam.

Returns:
height

Implemented in kn::DVCam, and kn::V4L2Webcam.

virtual void kn::CameraController::openDevice ( void   )  [pure virtual]

Activates the camera.

Implemented in kn::DVCam, and kn::V4L2Webcam.

virtual void kn::CameraController::start ( void   )  [pure virtual]

Start the capture of the images.

Implemented in kn::DVCam, and kn::V4L2Webcam.

virtual void kn::CameraController::stop ( void   )  [pure virtual]

Stop the capture of the images.

Implemented in kn::DVCam, and kn::V4L2Webcam.

virtual size_t kn::CameraController::width ( void   )  const [pure virtual]

Get width of the images captured by the webcam.

Returns:
width

Implemented in kn::DVCam, and kn::V4L2Webcam.


Member Data Documentation

size_t kn::CameraController::camheight [protected]

Height of the image captured by the webcam.

Definition at line 86 of file CameraController.hpp.

size_t kn::CameraController::camwidth [protected]

Width of the image captured by the webcam.

Definition at line 81 of file CameraController.hpp.

std::string kn::CameraController::devicename [protected]

Name of the device.

Definition at line 76 of file CameraController.hpp.


The documentation for this class was generated from the following file:

Generated on Thu Nov 12 16:06:36 2009 for OpenKraken-controller by  doxygen 1.5.8