CEBL
2.1
|
#include <EEGMonitor.hpp>
Public Member Functions | |
EEGMonitor (Tab *parent_tab, int nchannels=-1) | |
~EEGMonitor () | |
void | init () |
void | initPlot () |
void | reInitPlot (int nchannels=-1) |
void | setControlsVisible (bool) |
Should the user controls be available? | |
void | setLabels (std::vector< std::string > labels) |
Set labels for the plot. | |
void | setNumDisplaySamples (int) |
Set number of samples to display. | |
void | setZoom (double) |
Set the zoom factor. | |
void | Plot (ublas::matrix< double > data) |
Plot a matrix of data or EEGData where rows are channels and columns are samples. | |
Tab * | getParentTab () |
get a pointer to the parent tab | |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
bool | is_detached |
GtkWidget * | outer_container |
GtkWidget * | inner_container |
GtkWidget * | detached_window |
GtkWidget * | toggle_detached |
![]() | |
GtkWidget * | cebl_gtk_widget_container |
Definition at line 44 of file EEGMonitor.hpp.
EEGMonitor::EEGMonitor | ( | Tab * | parent_tab, |
int | nchannels = -1 |
||
) |
Definition at line 9 of file EEGMonitor.cpp.
References CEBLModel::channelsGetNumEnabledChannels(), CEBLView::getModel(), Tab::getView(), initPlot(), and CEBLGtkWidget::setWidgetContainer().
EEGMonitor::~EEGMonitor | ( | ) |
Definition at line 158 of file EEGMonitor.cpp.
|
inline |
get a pointer to the parent tab
Definition at line 106 of file EEGMonitor.hpp.
void EEGMonitor::init | ( | ) |
void EEGMonitor::initPlot | ( | ) |
Definition at line 76 of file EEGMonitor.cpp.
References CEBLGtkWidgetDetachable::detached_window, CEBLViewGTK::getBGBLUE(), CEBLViewGTK::getBGGREEN(), CEBLViewGTK::getBGRED(), CEBLViewGTK::getMainWindow(), Tab::getView(), EEGPlot::init(), TextUtils::IntToString(), CEBLGtkWidgetDetachable::is_detached, cppR::min(), EEGPlot::setBGColor(), EEGPlot::setLabels(), EEGPlot::setNumDisplaySamples(), EEGPlot::setWindowHeight(), and EEGPlot::setWindowWidth().
Referenced by EEGMonitor(), and reInitPlot().
void EEGMonitor::Plot | ( | ublas::matrix< double > | data | ) |
Plot a matrix of data or EEGData where rows are channels and columns are samples.
Definition at line 221 of file EEGMonitor.cpp.
References EEGPlot::plot().
void EEGMonitor::reInitPlot | ( | int | nchannels = -1 | ) |
Definition at line 128 of file EEGMonitor.cpp.
References initPlot(), and cppR::min().
void EEGMonitor::setControlsVisible | ( | bool | visible | ) |
Should the user controls be available?
Definition at line 173 of file EEGMonitor.cpp.
void EEGMonitor::setLabels | ( | std::vector< std::string > | labels | ) |
Set labels for the plot.
Definition at line 189 of file EEGMonitor.cpp.
void EEGMonitor::setNumDisplaySamples | ( | int | n | ) |
Set number of samples to display.
Definition at line 208 of file EEGMonitor.cpp.
References EEGPlot::setNumDisplaySamples().
void EEGMonitor::setZoom | ( | double | zoom | ) |