golib  0.5
goGUI::VideoCaptureControl Class Reference

Control for video capturing. More...

#include <videocapturecontrol.h>

Public Member Functions

void capture ()
 Capture a frame. More...
 
void setTarget (goAutoPtr< goSignal3DBase< void > > target)
 Set the target goSignal3DBase to hold the image data. More...
 
goAutoPtr< goSignal3DBase< void > > getTarget ()
 Get the pointer to the target image. More...
 
void contCaptureToggle ()
 Toggle continuous capture. More...
 
void swapRGBToggle ()
 
goCaller0< void > & capturedCaller ()
 This caller gets called every time capture() has successfully been called. More...
 
goVideoCapture & getVideoCapture ()
 Get the goVideoCapture object. More...
 
void setWhiteness ()
 
void setBrightness ()
 
void setColour ()
 
void setHue ()
 
void setContrast ()
 
- Public Member Functions inherited from goGUI::Control
 Control (const char *title)
 
virtual void warning (const char *text)
 
virtual void message (const char *text)
 
virtual void print (const char *text)
 

Detailed Description

Control for video capturing.

Provides its own goVideoCapture (see getVideoCapture).

Member Function Documentation

◆ capture()

void goGUI::VideoCaptureControl::capture ( )

Capture a frame.

capturedCaller() is called after the frame has been captured.

◆ capturedCaller()

goCaller0< void > & goGUI::VideoCaptureControl::capturedCaller ( )

This caller gets called every time capture() has successfully been called.

Returns
The caller.

◆ contCaptureToggle()

void goGUI::VideoCaptureControl::contCaptureToggle ( )

Toggle continuous capture.

During continuous capture, Gtk::Main::iteration() is called after each capture. Then the loop waits for a set time and repeats.

◆ getTarget()

goAutoPtr< goSignal3DBase< void > > goGUI::VideoCaptureControl::getTarget ( )

Get the pointer to the target image.

Returns
An autoptr to the target image. Note is can be Null if no target has been set.

◆ getVideoCapture()

goVideoCapture & goGUI::VideoCaptureControl::getVideoCapture ( )

Get the goVideoCapture object.

Returns
Reference to the goVideoCapture object.

◆ setTarget()

void goGUI::VideoCaptureControl::setTarget ( goAutoPtr< goSignal3DBase< void > >  target)

Set the target goSignal3DBase to hold the image data.

Parameters
targetPointer to the target. Must be 3-channel GO_UINT8 data.

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