Fawkes API
Fawkes Development Version
|
This class implements the logic for a GUI that allows to transfer LUTs via FUSE. More...
#include "fuse_transfer_widget.h"
Classes | |
class | LutRecord |
Public Member Functions | |
FuseTransferWidget () | |
Constructor. | |
virtual | ~FuseTransferWidget () |
Destructor. | |
void | add_fountain_service (const char *name, const char *host_name, uint16_t port) |
Tell the widget that a new FUSE service has been discovered. | |
void | remove_fountain_service (const char *name) |
Tell the widget that a service is not available any more. | |
void | set_current_colormap (firevision::YuvColormap *colormap) |
Set the current colormap. | |
void | set_upload_btn (Gtk::Button *btn_upload) |
Set the button to trigger the LUT upload. | |
void | set_download_btn (Gtk::Button *btn_download) |
Set the button to trigger the LUT download. | |
void | set_local_img (Gtk::Image *img_local) |
Set the Image to display the local LUT. | |
void | set_local_layer_selector (Gtk::Scale *scl) |
Assign a Scale to switch between the layers of the loal colormap. | |
void | set_remote_img (Gtk::Image *img_remote) |
Set the Image to display the remote LUT. | |
void | set_remote_layer_selector (Gtk::Scale *scl) |
Assign a Scale to switch between the layers of the remote colormap. | |
void | set_local_lut_list_trv (Gtk::TreeView *lut_list) |
Set the TreeView for the list of local LUTs. | |
void | set_remote_lut_list_trv (Gtk::TreeView *lut_list) |
Set the TreeView for the list of remote LUTs. | |
void | fuse_invalid_server_version (uint32_t local_version, uint32_t remote_version) throw () |
void | fuse_connection_established () throw () |
void | fuse_connection_died () throw () |
void | fuse_inbound_received (firevision::FuseNetworkMessage *m) throw () |
Additional Inherited Members | |
![]() | |
virtual | ~FuseClientHandler () |
Destructor. | |
virtual void | fuse_invalid_server_version (uint32_t local_version, uint32_t remote_version)=0 throw () |
Invalid version string received. | |
virtual void | fuse_connection_established ()=0 throw () |
Connection has been established. | |
virtual void | fuse_connection_died ()=0 throw () |
Connection died. | |
virtual void | fuse_inbound_received (FuseNetworkMessage *m)=0 throw () |
Message received. |
This class implements the logic for a GUI that allows to transfer LUTs via FUSE.
Definition at line 37 of file fuse_transfer_widget.h.
FuseTransferWidget::FuseTransferWidget | ( | ) |
Constructor.
Definition at line 46 of file fuse_transfer_widget.cpp.
|
virtual |
Destructor.
Definition at line 74 of file fuse_transfer_widget.cpp.
References fawkes::Thread::cancel(), firevision::FuseClient::disconnect(), and fawkes::Thread::join().
void FuseTransferWidget::add_fountain_service | ( | const char * | name, |
const char * | host_name, | ||
uint16_t | port | ||
) |
Tell the widget that a new FUSE service has been discovered.
The widget will then attempt to connect to the host and list the available LUTs.
name | the name of the service |
host_name | the name of the host the service is running on |
port | the port |
Definition at line 107 of file fuse_transfer_widget.cpp.
void FuseTransferWidget::remove_fountain_service | ( | const char * | name | ) |
Tell the widget that a service is not available any more.
All entries in the list of remote LUTs for the corresponding service will be deleted.
name | the name of the service |
Definition at line 127 of file fuse_transfer_widget.cpp.
void FuseTransferWidget::set_current_colormap | ( | firevision::YuvColormap * | colormap | ) |
Set the current colormap.
The current colormap is the local colormap that is currently trained.
colormap | the colormap |
Definition at line 151 of file fuse_transfer_widget.cpp.
References firevision::YuvColormap::depth(), firevision::YuvColormap::height(), and firevision::YuvColormap::width().
void FuseTransferWidget::set_download_btn | ( | Gtk::Button * | btn | ) |
Set the button to trigger the LUT download.
btn | the download button |
Definition at line 207 of file fuse_transfer_widget.cpp.
void FuseTransferWidget::set_local_img | ( | Gtk::Image * | img | ) |
Set the Image to display the local LUT.
img | the local LUT image |
Definition at line 216 of file fuse_transfer_widget.cpp.
void FuseTransferWidget::set_local_layer_selector | ( | Gtk::Scale * | scl | ) |
Assign a Scale to switch between the layers of the loal colormap.
scl | a Gtk::Scale |
Definition at line 226 of file fuse_transfer_widget.cpp.
void FuseTransferWidget::set_local_lut_list_trv | ( | Gtk::TreeView * | trv | ) |
Set the TreeView for the list of local LUTs.
trv | the TreeView for the list of local LUTs |
Definition at line 254 of file fuse_transfer_widget.cpp.
void FuseTransferWidget::set_remote_img | ( | Gtk::Image * | img | ) |
Set the Image to display the remote LUT.
img | the remote LUT Image |
Definition at line 235 of file fuse_transfer_widget.cpp.
void FuseTransferWidget::set_remote_layer_selector | ( | Gtk::Scale * | scl | ) |
Assign a Scale to switch between the layers of the remote colormap.
scl | a Gtk::Scale |
Definition at line 245 of file fuse_transfer_widget.cpp.
void FuseTransferWidget::set_remote_lut_list_trv | ( | Gtk::TreeView * | trv | ) |
Set the TreeView for the list of remote LUTs.
trv | the TreeView for the list of remote LUTs |
Definition at line 271 of file fuse_transfer_widget.cpp.
void FuseTransferWidget::set_upload_btn | ( | Gtk::Button * | btn | ) |
Set the button to trigger the LUT upload.
btn | the upload button |
Definition at line 197 of file fuse_transfer_widget.cpp.