Image Component Library (ICL)
|
Demo Grabber class providing am image with a moving rect. More...
#include <DemoGrabber.h>
Public Member Functions | |
virtual const core::ImgBase * | acquireImage () |
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::ImgBase * | m_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 |
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
icl::io::DemoGrabber::DemoGrabber | ( | float | maxFPS = 30 | ) |
Create a DemoGrabber with given max. fps count.
Destructor.
virtual const core::ImgBase* icl::io::DemoGrabber::acquireImage | ( | ) | [virtual] |
default grab function
Reimplemented from icl::io::Grabber.
void icl::io::DemoGrabber::processPropertyChange | ( | const utils::Configurable::Property & | prop | ) |
callback for changed configurable properties
Reimplemented from icl::io::Grabber.
core::Color icl::io::DemoGrabber::m_color [private] |
Color of the rect (light red)
core::ImgBase* icl::io::DemoGrabber::m_drawBuffer [private] |
extra buffer for the output image
core::depth icl::io::DemoGrabber::m_drawDepth [private] |
current output depth
current output format
utils::Size icl::io::DemoGrabber::m_drawSize [private] |
current output size
utils::Time icl::io::DemoGrabber::m_lastTime [private] |
time variable to ensure max. fpsCount
float icl::io::DemoGrabber::m_maxFPS [private] |
max. fpsCount for this grabber instance
utils::Point32f icl::io::DemoGrabber::m_maxV [private] |
maximum velocity of the rect
utils::Mutex icl::io::DemoGrabber::m_mutex [private] |
mutex for locking properties and grabbing
Reimplemented from icl::utils::Configurable.
utils::Size32f icl::io::DemoGrabber::m_size [private] |
relative size of the rect
utils::Point32f icl::io::DemoGrabber::m_v [private] |
Current rel. velocity of the rect.
utils::Point32f icl::io::DemoGrabber::m_x [private] |
Current rel. location of the rect.