CEBL
2.1
|
#include <PieInterface.hpp>
Public Member Functions | |
PieInterface () | |
virtual | ~PieInterface () |
virtual void | selectTrainingClass (int) |
set the class currently being trained | |
virtual void | setNumClasses (int) |
set number of classes | |
virtual void | selectClass (int) |
select class and reset | |
virtual void | setClassProportions (std::vector< double > proportions) |
move bars based on proportions for each class | |
virtual void | setClassLabels (std::vector< std::string > labels) |
set labels for each class | |
virtual void | setBGColor (unsigned int red, unsigned int green, unsigned int blue) |
set the background color of the interface | |
virtual void | setParamsList (std::map< std::string, CEBL::Param > params) |
set values for parameter list | |
virtual std::map< std::string, CEBL::Param > | getParamsList () |
get list of parameters | |
virtual void | setTrainMode () |
set mode to train | |
virtual void | setUseMode () |
set mode to use | |
![]() | |
EEGInterface () | |
constructors / destructors | |
virtual | ~EEGInterface () |
![]() | |
CEBLGtkWidgetDetachable () | |
~CEBLGtkWidgetDetachable () | |
GtkWidget * | getContainer () |
get pointer to gtk widget | |
operator GtkWidget * () | |
get pointer to gtk widget | |
bool | isDetached () |
void | hide () |
hide the widget | |
![]() | |
CEBLGtkWidget () | |
virtual | ~CEBLGtkWidget () |
virtual void | removeWidget (GtkWidget *widget) |
remove a widget from the container | |
virtual void | show () |
show the widget |
Protected Attributes | |
GtkWidget * | pie_menu |
double | bar_growth |
![]() | |
GtkWidget * | container |
WidgetPanel * | configuration_panel |
bool | configuration_window_open |
int | num_classes |
bool | train_mode |
unsigned int | bg_red |
unsigned int | bg_green |
unsigned int | bg_blue |
![]() | |
bool | is_detached |
GtkWidget * | outer_container |
GtkWidget * | inner_container |
GtkWidget * | detached_window |
GtkWidget * | toggle_detached |
![]() | |
GtkWidget * | cebl_gtk_widget_container |
Additional Inherited Members | |
![]() | |
void | packStart (GtkWidget *, bool expland, bool fill, int padding) |
packStart adds a widget to the interface container at the beginning | |
void | packStart (GtkWidget *) |
void | packEnd (GtkWidget *, bool expand, bool fill, int padding) |
packEnd adds a widget to the interface container at the end. | |
void | packEnd (GtkWidget *) |
Definition at line 29 of file PieInterface.hpp.
PieInterface::PieInterface | ( | ) |
Definition at line 9 of file PieInterface.cpp.
References bar_growth, EEGInterface::bg_blue, EEGInterface::bg_green, EEGInterface::bg_red, EEGInterface::packStart(), pie_menu, pie_menu_new(), pie_set_bg(), and setNumClasses().
|
virtual |
Definition at line 18 of file PieInterface.cpp.
|
virtual |
get list of parameters
Reimplemented from EEGInterface.
Reimplemented in KeyboardPie, CursorPie, and RobotPie.
Definition at line 80 of file PieInterface.cpp.
|
virtual |
select class and reset
Implements EEGInterface.
Reimplemented in KeyboardPie, CursorPie, and RobotPie.
Definition at line 35 of file PieInterface.cpp.
References pie_menu, pie_select_class(), and pie_set_bars_visible().
|
virtual |
set the class currently being trained
Implements EEGInterface.
Definition at line 29 of file PieInterface.cpp.
References pie_menu, pie_set_bars_visible(), and pie_set_selected().
|
virtual |
set the background color of the interface
Reimplemented from EEGInterface.
Definition at line 56 of file PieInterface.cpp.
References EEGInterface::bg_blue, EEGInterface::bg_green, EEGInterface::bg_red, pie_menu, and pie_set_bg().
|
virtual |
set labels for each class
Implements EEGInterface.
Definition at line 50 of file PieInterface.cpp.
References pie_menu, and pie_set_labels().
|
virtual |
move bars based on proportions for each class
Implements EEGInterface.
Definition at line 43 of file PieInterface.cpp.
References pie_menu, pie_set_bars_visible(), and pie_set_class_proportions().
|
virtual |
set number of classes
Reimplemented from EEGInterface.
Reimplemented in KeyboardPie.
Definition at line 23 of file PieInterface.cpp.
References EEGInterface::num_classes, pie_menu, and pie_set_segments().
Referenced by PieInterface().
|
virtual |
set values for parameter list
Reimplemented from EEGInterface.
Reimplemented in KeyboardPie, CursorPie, and RobotPie.
Definition at line 85 of file PieInterface.cpp.
|
virtual |
set mode to train
Reimplemented from EEGInterface.
Definition at line 64 of file PieInterface.cpp.
References pie_menu, pie_set_train_mode(), and EEGInterface::train_mode.
|
virtual |
set mode to use
Reimplemented from EEGInterface.
Definition at line 70 of file PieInterface.cpp.
References pie_menu, pie_set_use_mode(), and EEGInterface::train_mode.
|
protected |
Definition at line 33 of file PieInterface.hpp.
Referenced by PieInterface().
|
protected |
Definition at line 32 of file PieInterface.hpp.
Referenced by PieInterface(), RobotPie::selectClass(), CursorPie::selectClass(), selectClass(), KeyboardPie::selectClass(), selectTrainingClass(), setBGColor(), setClassLabels(), setClassProportions(), setNumClasses(), KeyboardPie::setNumClasses(), RobotPie::setParamsList(), setTrainMode(), and setUseMode().