BitmapToolkit Scol plugin
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ICameraInput Class Referenceabstract

Interface for camera management. Concrete classes are written for Windows, Android and OpenCV native camera wrapper. More...

#include <ICameraInput.h>

Inheritance diagram for ICameraInput:
CameraInputAndroid CameraInputAndroid CameraInputOpenCV CameraInputWindows

Public Member Functions

 ICameraInput (int index)
 
virtual ~ICameraInput ()
 
virtual bool Initialize ()=0
 
virtual void Close ()=0
 
virtual bool IsOpened ()=0
 
virtual cv::Mat UpdateImage ()=0
 
virtual int GetWidth ()=0
 
virtual int GetHeight ()=0
 
virtual void SetSize (int width, int height)=0
 
virtual bool TakeSnapshot (std::string path)
 
virtual void RenderToScreen ()
 
virtual bool SetFocusPoint (int x, int y)
 
virtual void SetTorchState (bool state)
 
bool GetMirrorMode ()
 
void SetMirrorMode (bool mode)
 

Static Public Member Functions

static std::vector< std::string > GetDevicesList ()
 
static void SetCameraInputsState (bool state)
 

Protected Attributes

int mIndex
 
bool mMirrorMode
 
cv::Size mBufferSize
 

Static Protected Attributes

static std::list< ICameraInput * > cameraInputsList
 

Detailed Description

Interface for camera management. Concrete classes are written for Windows, Android and OpenCV native camera wrapper.

Definition at line 39 of file ICameraInput.h.

Constructor & Destructor Documentation

◆ ICameraInput()

ICameraInput::ICameraInput ( int  index)

Definition at line 37 of file ICameraInput.cpp.

◆ ~ICameraInput()

ICameraInput::~ICameraInput ( )
virtual

Definition at line 44 of file ICameraInput.cpp.

Member Function Documentation

◆ Close()

virtual void ICameraInput::Close ( )
pure virtual

◆ GetDevicesList()

std::vector< std::string > ICameraInput::GetDevicesList ( )
static

Definition at line 59 of file ICameraInput.cpp.

◆ GetHeight()

virtual int ICameraInput::GetHeight ( )
pure virtual

◆ GetMirrorMode()

bool ICameraInput::GetMirrorMode ( )

Definition at line 49 of file ICameraInput.cpp.

◆ GetWidth()

virtual int ICameraInput::GetWidth ( )
pure virtual

◆ Initialize()

virtual bool ICameraInput::Initialize ( )
pure virtual

◆ IsOpened()

virtual bool ICameraInput::IsOpened ( )
pure virtual

◆ RenderToScreen()

void ICameraInput::RenderToScreen ( )
virtual

Reimplemented in CameraInputAndroid, and CameraInputAndroid.

Definition at line 231 of file ICameraInput.cpp.

◆ SetCameraInputsState()

void ICameraInput::SetCameraInputsState ( bool  state)
static

Definition at line 196 of file ICameraInput.cpp.

◆ SetFocusPoint()

bool ICameraInput::SetFocusPoint ( int  x,
int  y 
)
virtual

Reimplemented in CameraInputAndroid, and CameraInputAndroid.

Definition at line 219 of file ICameraInput.cpp.

◆ SetMirrorMode()

void ICameraInput::SetMirrorMode ( bool  mode)

Definition at line 54 of file ICameraInput.cpp.

◆ SetSize()

virtual void ICameraInput::SetSize ( int  width,
int  height 
)
pure virtual

◆ SetTorchState()

void ICameraInput::SetTorchState ( bool  state)
virtual

Reimplemented in CameraInputAndroid, and CameraInputAndroid.

Definition at line 224 of file ICameraInput.cpp.

◆ TakeSnapshot()

bool ICameraInput::TakeSnapshot ( std::string  path)
virtual

Reimplemented in CameraInputAndroid, CameraInputAndroid, CameraInputOpenCV, and CameraInputWindows.

Definition at line 215 of file ICameraInput.cpp.

◆ UpdateImage()

virtual cv::Mat ICameraInput::UpdateImage ( )
pure virtual

Member Data Documentation

◆ cameraInputsList

std::list< ICameraInput * > ICameraInput::cameraInputsList
staticprotected

Definition at line 48 of file ICameraInput.h.

◆ mBufferSize

cv::Size ICameraInput::mBufferSize
protected

Definition at line 53 of file ICameraInput.h.

◆ mIndex

int ICameraInput::mIndex
protected

Definition at line 51 of file ICameraInput.h.

◆ mMirrorMode

bool ICameraInput::mMirrorMode
protected

Definition at line 52 of file ICameraInput.h.


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