Fawkes API  Fawkes Development Version
FuseTransferWidget Class Reference

#include "fuse_transfer_widget.h"

Inheritance diagram for FuseTransferWidget:

Public Member Functions

 FuseTransferWidget ()
 Constructor. More...
 
virtual ~FuseTransferWidget ()
 Destructor. More...
 
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. More...
 
void remove_fountain_service (const char *name)
 Tell the widget that a service is not available any more. More...
 
void set_current_colormap (firevision::YuvColormap *colormap)
 Set the current colormap. More...
 
void set_upload_btn (Gtk::Button *btn_upload)
 Set the button to trigger the LUT upload. More...
 
void set_download_btn (Gtk::Button *btn_download)
 Set the button to trigger the LUT download. More...
 
void set_local_img (Gtk::Image *img_local)
 Set the Image to display the local LUT. More...
 
void set_local_layer_selector (Gtk::Scale *scl)
 Assign a Scale to switch between the layers of the loal colormap. More...
 
void set_remote_img (Gtk::Image *img_remote)
 Set the Image to display the remote LUT. More...
 
void set_remote_layer_selector (Gtk::Scale *scl)
 Assign a Scale to switch between the layers of the remote colormap. More...
 
void set_local_lut_list_trv (Gtk::TreeView *lut_list)
 Set the TreeView for the list of local LUTs. More...
 
void set_remote_lut_list_trv (Gtk::TreeView *lut_list)
 Set the TreeView for the list of remote LUTs. More...
 
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 ()
 

Detailed Description

This class implements the logic for a GUI that allows to transfer LUTs via FUSE.

Author
Daniel Beck

Definition at line 36 of file fuse_transfer_widget.h.

Constructor & Destructor Documentation

◆ FuseTransferWidget()

FuseTransferWidget::FuseTransferWidget ( )

Constructor.

Definition at line 45 of file fuse_transfer_widget.cpp.

◆ ~FuseTransferWidget()

FuseTransferWidget::~FuseTransferWidget ( )
virtual

Member Function Documentation

◆ add_fountain_service()

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.

Parameters
namethe name of the service
host_namethe name of the host the service is running on
portthe port

Definition at line 105 of file fuse_transfer_widget.cpp.

◆ fuse_connection_died()

void FuseTransferWidget::fuse_connection_died ( )
throw (
)
virtual

Connection died.

Implements firevision::FuseClientHandler.

Definition at line 464 of file fuse_transfer_widget.cpp.

◆ fuse_connection_established()

void FuseTransferWidget::fuse_connection_established ( )
throw (
)
virtual

Connection has been established.

Implements firevision::FuseClientHandler.

Definition at line 459 of file fuse_transfer_widget.cpp.

◆ fuse_inbound_received()

void FuseTransferWidget::fuse_inbound_received ( firevision::FuseNetworkMessage m)
throw (
)
virtual

◆ fuse_invalid_server_version()

void FuseTransferWidget::fuse_invalid_server_version ( uint32_t  local_version,
uint32_t  remote_version 
)
throw (
)
virtual

Invalid version string received. The remote end has a different incompatible FUSE version.

Parameters
local_versionversion that the FuseClient speaks
remote_versionversion that the remote FUSE server speaks.

Implements firevision::FuseClientHandler.

Definition at line 452 of file fuse_transfer_widget.cpp.

◆ remove_fountain_service()

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.

Parameters
namethe name of the service

Definition at line 123 of file fuse_transfer_widget.cpp.

◆ set_current_colormap()

void FuseTransferWidget::set_current_colormap ( firevision::YuvColormap colormap)

Set the current colormap.

The current colormap is the local colormap that is currently trained.

Parameters
colormapthe colormap

Definition at line 143 of file fuse_transfer_widget.cpp.

References firevision::YuvColormap::depth(), firevision::YuvColormap::height(), and firevision::YuvColormap::width().

◆ set_download_btn()

void FuseTransferWidget::set_download_btn ( Gtk::Button *  btn)

Set the button to trigger the LUT download.

Parameters
btnthe download button

Definition at line 197 of file fuse_transfer_widget.cpp.

◆ set_local_img()

void FuseTransferWidget::set_local_img ( Gtk::Image *  img)

Set the Image to display the local LUT.

Parameters
imgthe local LUT image

Definition at line 206 of file fuse_transfer_widget.cpp.

◆ set_local_layer_selector()

void FuseTransferWidget::set_local_layer_selector ( Gtk::Scale *  scl)

Assign a Scale to switch between the layers of the loal colormap.

Parameters
scla Gtk::Scale

Definition at line 216 of file fuse_transfer_widget.cpp.

◆ set_local_lut_list_trv()

void FuseTransferWidget::set_local_lut_list_trv ( Gtk::TreeView *  trv)

Set the TreeView for the list of local LUTs.

Parameters
trvthe TreeView for the list of local LUTs

Definition at line 244 of file fuse_transfer_widget.cpp.

◆ set_remote_img()

void FuseTransferWidget::set_remote_img ( Gtk::Image *  img)

Set the Image to display the remote LUT.

Parameters
imgthe remote LUT Image

Definition at line 225 of file fuse_transfer_widget.cpp.

◆ set_remote_layer_selector()

void FuseTransferWidget::set_remote_layer_selector ( Gtk::Scale *  scl)

Assign a Scale to switch between the layers of the remote colormap.

Parameters
scla Gtk::Scale

Definition at line 235 of file fuse_transfer_widget.cpp.

◆ set_remote_lut_list_trv()

void FuseTransferWidget::set_remote_lut_list_trv ( Gtk::TreeView *  trv)

Set the TreeView for the list of remote LUTs.

Parameters
trvthe TreeView for the list of remote LUTs

Definition at line 262 of file fuse_transfer_widget.cpp.

◆ set_upload_btn()

void FuseTransferWidget::set_upload_btn ( Gtk::Button *  btn)

Set the button to trigger the LUT upload.

Parameters
btnthe upload button

Definition at line 187 of file fuse_transfer_widget.cpp.


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