Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

CameraHandler Class Reference

#include <camerahandler.h>

List of all members.

Public Slots

void toggleCamera ()
void captureFrame ()
void switchToVideoView ()

Signals

void capturedFrame ()
void cameraStateChanged (bool isActivated)

Public Member Functions

 CameraHandler (QObject *parent=0, QStatusBar *sb=0, ModelHandler *modelHandler=0, const char *name=0)
 ~CameraHandler ()
void setCameraButton (QPushButton *cameraButton)
void setWidgetStack (QWidgetStack *frameViewStack)
void setFrameView (FrameView *frameView)
void setVideoView (VideoView *videoView)
bool setViewMode (int mode)
bool isCameraRunning ()


Detailed Description

Author:
Bjoern Erik Nilsen & Fredrik Berg Kjoelstad


Constructor & Destructor Documentation

CameraHandler::CameraHandler QObject *  parent = 0,
QStatusBar *  sb = 0,
ModelHandler modelHandler = 0,
const char *  name = 0
 

Constructor for setting up the camerahandler.

Parameters:
parent the parent widget
sb the statusbar for updates
modelHandler for adding frames when capturing.
name the name of the object

CameraHandler::~CameraHandler  ) 
 

Todo:
add cleanup code for gstreamer components


Member Function Documentation

void CameraHandler::cameraStateChanged bool  isActivated  )  [signal]
 

This signal is emitted when the state of the camera is changed.

Parameters:
isActivated true if the camera has been activated.

bool CameraHandler::isCameraRunning  ) 
 

Checks if the camera is on.

Returns:
true if the camera is on.

bool CameraHandler::setViewMode int  mode  ) 
 

Sets the viewing mode which is the type of effect used when running the camera.

Parameters:
mode the type of effect to be showed on the video. The modes are: 0: Image mixing/onion skinning 1: Image differentiating 2: Playback
Returns:
true if the change was succesfull

void CameraHandler::switchToVideoView  )  [slot]
 

Slot to recieve a message when the videoView are finished seting up the camera.


The documentation for this class was generated from the following files:
Generated on Thu May 19 01:51:21 2005 for stopmotion.kdevelop by  doxygen 1.4.2