Fawkes API
Fawkes Development Version
|
Public Member Functions | |
RefThread (ImageWidget *widget, unsigned int refresh_delay) | |
Creates a new refresh thread. | |
void | set_delay (unsigned int refresh_delay) |
Sets the refresh delay for automatic camera refreshes. | |
void | save_on_refresh (bool enabled, std::string path="", Glib::ustring type="", unsigned int img_num=0) |
Set save on refresh. | |
void | refresh_cam () |
Refreshes the camera during the next loop. | |
void | stop () |
Stops (and destroys) the thread as soon as possible (at the next loop) | |
unsigned int | get_img_num () |
Get image number. |
firevision::ImageWidget::RefThread::RefThread | ( | ImageWidget * | widget, |
unsigned int | refresh_delay | ||
) |
Creates a new refresh thread.
widget | to be refreshed |
refresh_delay | time between two refreshes (in [ms]) |
Definition at line 483 of file image_widget.cpp.
References fawkes::Thread::set_delete_on_exit(), and set_delay().
unsigned int firevision::ImageWidget::RefThread::get_img_num | ( | ) |
Get image number.
Definition at line 635 of file image_widget.cpp.
Referenced by firevision::ImageWidget::get_image_num().
void firevision::ImageWidget::RefThread::refresh_cam | ( | ) |
Refreshes the camera during the next loop.
Definition at line 516 of file image_widget.cpp.
Referenced by firevision::ImageWidget::set_camera(), and firevision::ImageWidget::refresh_cam().
void firevision::ImageWidget::RefThread::save_on_refresh | ( | bool | enabled, |
std::string | path = "" , |
||
Glib::ustring | type = "" , |
||
unsigned int | img_num = 0 |
||
) |
Set save on refresh.
enabled | true to enable, false to disable |
path | save path |
type | save type |
img_num | image number to save |
Definition at line 620 of file image_widget.cpp.
Referenced by firevision::ImageWidget::save_on_refresh_cam().
void firevision::ImageWidget::RefThread::set_delay | ( | unsigned int | refresh_delay | ) |
Sets the refresh delay for automatic camera refreshes.
refresh_delay | im [ms] |
Definition at line 506 of file image_widget.cpp.
Referenced by firevision::ImageWidget::set_camera(), firevision::ImageWidget::set_refresh_delay(), and RefThread().
void firevision::ImageWidget::RefThread::stop | ( | ) |
Stops (and destroys) the thread as soon as possible (at the next loop)
Definition at line 607 of file image_widget.cpp.
Referenced by firevision::ImageWidget::~ImageWidget(), and firevision::ImageWidget::enable_camera().