ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Private Attributes | List of all members
RobotFrameSource Class Reference

a FrameSource that uses java.awt.Robot to grab the screen More...

#include <RobotFrameSource.h>

Inheritance diagram for RobotFrameSource:
Inheritance graph
Collaboration diagram for RobotFrameSource:
Collaboration graph

Public Member Functions

 RobotFrameSource (Robot *r)
 
virtual ~RobotFrameSource ()
 
void SetSize (int left, int top, int right, int bottom)
 
IplImage * GetNextFrame ()
 
int GetFrameNr () const
 
- Public Member Functions inherited from FrameSource
virtual ~FrameSource ()
 
virtual double GetFPS () const
 frames per second More...
 
virtual size_t GetNumInfos () const
 
virtual const RegionInfoGetInfo (size_t idx) const
 
- Public Member Functions inherited from ReferenceCount
 ReferenceCount ()
 
virtual ~ReferenceCount ()
 
void IncRefCount ()
 
void DecRefCount ()
 

Private Attributes

Robotrobot
 
int n
 
int left
 
int top
 
int right
 
int bottom
 
IplImage * lastImage
 

Detailed Description

a FrameSource that uses java.awt.Robot to grab the screen

Definition at line 34 of file RobotFrameSource.h.

Constructor & Destructor Documentation

RobotFrameSource::RobotFrameSource ( Robot r)
Parameters
rDon't create my own Robot: only one VM per process!!

Definition at line 29 of file RobotFrameSource.cpp.

RobotFrameSource::~RobotFrameSource ( )
virtual

Definition at line 33 of file RobotFrameSource.cpp.

References lastImage.

Member Function Documentation

int RobotFrameSource::GetFrameNr ( ) const
virtual

Implements FrameSource.

Definition at line 59 of file RobotFrameSource.h.

References n.

IplImage * RobotFrameSource::GetNextFrame ( )
virtual
Returns
NULL when nothing to get

Implements FrameSource.

Definition at line 37 of file RobotFrameSource.cpp.

References bottom, Robot::GetScreenCapture(), lastImage, left, MHDBGMSG, n, right, robot, and top.

void RobotFrameSource::SetSize ( int  left,
int  top,
int  right,
int  bottom 
)

Definition at line 51 of file RobotFrameSource.h.

References bottom, left, right, and top.

Referenced by main(), and SelectSourceInternal().

Member Data Documentation

int RobotFrameSource::bottom
private

Definition at line 41 of file RobotFrameSource.h.

Referenced by GetNextFrame(), and SetSize().

IplImage* RobotFrameSource::lastImage
private

Definition at line 43 of file RobotFrameSource.h.

Referenced by GetNextFrame(), and ~RobotFrameSource().

int RobotFrameSource::left
private

Definition at line 38 of file RobotFrameSource.h.

Referenced by GetNextFrame(), and SetSize().

int RobotFrameSource::n
private

Definition at line 36 of file RobotFrameSource.h.

Referenced by GetFrameNr(), and GetNextFrame().

int RobotFrameSource::right
private

Definition at line 40 of file RobotFrameSource.h.

Referenced by GetNextFrame(), and SetSize().

Robot* RobotFrameSource::robot
private

Definition at line 35 of file RobotFrameSource.h.

Referenced by GetNextFrame().

int RobotFrameSource::top
private

Definition at line 39 of file RobotFrameSource.h.

Referenced by GetNextFrame(), and SetSize().


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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)