Fawkes API  Fawkes Development Version
firevision::ImageWidget::RefThread Class Reference
Inheritance diagram for firevision::ImageWidget::RefThread:

List of all members.

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)
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 ()

Constructor & Destructor Documentation

firevision::ImageWidget::RefThread::RefThread ( ImageWidget widget,
unsigned int  refresh_delay 
)

Creates a new refresh thread.

Parameters:
widgetto be refreshed
refresh_delaytime between two refreshes (in [ms])

Definition at line 462 of file image_widget.cpp.

References fawkes::Thread::set_delete_on_exit(), and set_delay().


Member Function Documentation

void firevision::ImageWidget::RefThread::refresh_cam ( )

Refreshes the camera during the next loop.

Definition at line 495 of file image_widget.cpp.

Referenced by firevision::ImageWidget::set_camera(), and firevision::ImageWidget::refresh_cam().

void firevision::ImageWidget::RefThread::set_delay ( unsigned int  refresh_delay)

Sets the refresh delay for automatic camera refreshes.

Parameters:
refresh_delayim [ms]

Definition at line 485 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 586 of file image_widget.cpp.

Referenced by firevision::ImageWidget::~ImageWidget(), and firevision::ImageWidget::enable_camera().


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