Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
icl::io::DemoGrabber Class Reference

Demo Grabber class providing am image with a moving rect. More...

#include <DemoGrabber.h>

Inheritance diagram for icl::io::DemoGrabber:
icl::io::Grabber icl::utils::Uncopyable icl::utils::Configurable

List of all members.

Public Member Functions

virtual const core::ImgBaseacquireImage ()
 default grab function
 DemoGrabber (float maxFPS=30)
 Create a DemoGrabber with given max. fps count.
 ~DemoGrabber ()
 Destructor.
void processPropertyChange (const utils::Configurable::Property &prop)
 callback for changed configurable properties

Private Attributes

utils::Point32f m_x
 Current rel. location of the rect.
utils::Point32f m_v
 Current rel. velocity of the rect.
utils::Point32f m_maxV
 maximum velocity of the rect
utils::Size32f m_size
 relative size of the rect
core::Color m_color
 Color of the rect (light red)
float m_maxFPS
 max. fpsCount for this grabber instance
utils::Time m_lastTime
 time variable to ensure max. fpsCount
core::ImgBasem_drawBuffer
 extra buffer for the output image
core::format m_drawFormat
 current output format
core::depth m_drawDepth
 current output depth
utils::Size m_drawSize
 current output size
utils::Mutex m_mutex
 mutex for locking properties and grabbing

Detailed Description

Demo Grabber class providing am image with a moving rect.

This grabber can be used as placeholder whenever no senseful Grabber is available. It can be set up to work at a certain fps to avoid some real unexpected behaviour


Constructor & Destructor Documentation

icl::io::DemoGrabber::DemoGrabber ( float  maxFPS = 30)

Create a DemoGrabber with given max. fps count.

Destructor.


Member Function Documentation

virtual const core::ImgBase* icl::io::DemoGrabber::acquireImage ( ) [virtual]

default grab function

Reimplemented from icl::io::Grabber.

callback for changed configurable properties

Reimplemented from icl::io::Grabber.


Member Data Documentation

Color of the rect (light red)

extra buffer for the output image

current output depth

current output format

current output size

time variable to ensure max. fpsCount

max. fpsCount for this grabber instance

maximum velocity of the rect

mutex for locking properties and grabbing

Reimplemented from icl::utils::Configurable.

relative size of the rect

Current rel. velocity of the rect.

Current rel. location of the rect.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines