CEBL  2.1
Public Member Functions | Protected Member Functions | Protected Attributes
EEGInterface Class Reference

#include <EEGInterface.hpp>

Public Member Functions

 EEGInterface ()
 constructors / destructors
virtual ~EEGInterface ()
virtual std::map< std::string,
CEBL::Param
getParamsList ()
 get list of parameters
virtual void setParamsList (std::map< std::string, CEBL::Param > param)
 set values for parameter list
virtual void setNumClasses (int n)
 set number of classes
virtual void setBGColor (unsigned int red, unsigned int green, unsigned int blue)
 set the background color of the interface
virtual void selectTrainingClass (int n)=0
 set the class currently being trained
virtual void selectClass (int c)=0
 select class and reset
virtual void setClassProportions (std::vector< double > proportions)=0
 move bars based on proportions for each class
virtual void setClassLabels (std::vector< std::string >)=0
 set labels for each class
virtual void setTrainMode ()
 set mode to train
virtual void setUseMode ()
 set mode to use
- Public Member Functions inherited from CEBLGtkWidgetDetachable
 CEBLGtkWidgetDetachable ()
 ~CEBLGtkWidgetDetachable ()
GtkWidget * getContainer ()
 get pointer to gtk widget
 operator GtkWidget * ()
 get pointer to gtk widget
bool isDetached ()
void hide ()
 hide the widget
- Public Member Functions inherited from CEBLGtkWidget
 CEBLGtkWidget ()
virtual ~CEBLGtkWidget ()
virtual void removeWidget (GtkWidget *widget)
 remove a widget from the container
virtual void show ()
 show the widget

Protected Member Functions

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

Protected Attributes

GtkWidget * container
WidgetPanelconfiguration_panel
bool configuration_window_open
int num_classes
bool train_mode
unsigned int bg_red
unsigned int bg_green
unsigned int bg_blue
- Protected Attributes inherited from CEBLGtkWidgetDetachable
bool is_detached
GtkWidget * outer_container
GtkWidget * inner_container
GtkWidget * detached_window
GtkWidget * toggle_detached
- Protected Attributes inherited from CEBLGtkWidget
GtkWidget * cebl_gtk_widget_container

Detailed Description

Definition at line 35 of file EEGInterface.hpp.


Constructor & Destructor Documentation

EEGInterface::EEGInterface ( )

constructors / destructors

Constructor. Creates gtk container.

Definition at line 11 of file EEGInterface.cpp.

References bg_blue, bg_green, bg_red, container, and CEBLGtkWidget::setWidgetContainer().

EEGInterface::~EEGInterface ( )
virtual

Definition at line 21 of file EEGInterface.cpp.

References container.


Member Function Documentation

virtual std::map<std::string, CEBL::Param> EEGInterface::getParamsList ( )
inlinevirtual

get list of parameters

Reimplemented in KeyboardPie, PieInterface, CursorPie, and RobotPie.

Definition at line 66 of file EEGInterface.hpp.

void EEGInterface::packEnd ( GtkWidget *  widget,
bool  expand,
bool  fill,
int  padding 
)
protected

packEnd adds a widget to the interface container at the end.

Definition at line 39 of file EEGInterface.cpp.

References container.

Referenced by packEnd().

void EEGInterface::packEnd ( GtkWidget *  widget)
protected

Definition at line 44 of file EEGInterface.cpp.

References packEnd().

void EEGInterface::packStart ( GtkWidget *  widget,
bool  expland,
bool  fill,
int  padding 
)
protected

packStart adds a widget to the interface container at the beginning

Definition at line 29 of file EEGInterface.cpp.

References container.

Referenced by KeyboardPie::KeyboardPie(), packStart(), and PieInterface::PieInterface().

void EEGInterface::packStart ( GtkWidget *  widget)
protected

Definition at line 34 of file EEGInterface.cpp.

References packStart().

virtual void EEGInterface::selectClass ( int  c)
pure virtual

select class and reset

Implemented in KeyboardPie, PieInterface, CursorPie, and RobotPie.

virtual void EEGInterface::selectTrainingClass ( int  n)
pure virtual

set the class currently being trained

Implemented in PieInterface.

virtual void EEGInterface::setBGColor ( unsigned int  red,
unsigned int  green,
unsigned int  blue 
)
inlinevirtual

set the background color of the interface

Reimplemented in PieInterface.

Definition at line 79 of file EEGInterface.hpp.

Referenced by TabRealTimeClassification::updateView(), and TabTraining::updateView().

virtual void EEGInterface::setClassLabels ( std::vector< std::string >  )
pure virtual

set labels for each class

Implemented in PieInterface.

Referenced by InterfaceCombo::getInterface().

virtual void EEGInterface::setClassProportions ( std::vector< double >  proportions)
pure virtual

move bars based on proportions for each class

Implemented in PieInterface.

virtual void EEGInterface::setNumClasses ( int  n)
inlinevirtual

set number of classes

Reimplemented in KeyboardPie, and PieInterface.

Definition at line 75 of file EEGInterface.hpp.

Referenced by InterfaceCombo::getInterface().

virtual void EEGInterface::setParamsList ( std::map< std::string, CEBL::Param param)
inlinevirtual

set values for parameter list

Reimplemented in KeyboardPie, PieInterface, CursorPie, and RobotPie.

Definition at line 72 of file EEGInterface.hpp.

virtual void EEGInterface::setTrainMode ( )
inlinevirtual

set mode to train

Reimplemented in PieInterface.

Definition at line 94 of file EEGInterface.hpp.

virtual void EEGInterface::setUseMode ( )
inlinevirtual

set mode to use

Reimplemented in PieInterface.

Definition at line 97 of file EEGInterface.hpp.

Referenced by TabRealTimeClassification::updateView().


Field Documentation

unsigned int EEGInterface::bg_blue
protected
unsigned int EEGInterface::bg_green
protected
unsigned int EEGInterface::bg_red
protected
WidgetPanel* EEGInterface::configuration_panel
protected

Definition at line 43 of file EEGInterface.hpp.

bool EEGInterface::configuration_window_open
protected

Definition at line 44 of file EEGInterface.hpp.

GtkWidget* EEGInterface::container
protected

Definition at line 40 of file EEGInterface.hpp.

Referenced by EEGInterface(), packEnd(), packStart(), and ~EEGInterface().

int EEGInterface::num_classes
protected
bool EEGInterface::train_mode
protected

Definition at line 54 of file EEGInterface.hpp.

Referenced by PieInterface::setTrainMode(), and PieInterface::setUseMode().


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