ESP  0.1
The Example-based Sensor Predictions (ESP) system tries to bring machine learning to the maker community.
InteractiveTimeSeriesPlot Class Reference

#include <plotter.h>

Inheritance diagram for InteractiveTimeSeriesPlot:
InteractivePlot

Public Member Functions

bool draw (uint32_t x, uint32_t y, uint32_t w, uint32_t h)
 
virtual MatrixDouble getData (uint32_t x_start_idx, uint32_t x_end_idx)
 
virtual vector< double > getData (uint32_t x_idx)
 
- Public Member Functions inherited from InteractivePlot
 InteractivePlot ()
 
void onRangeSelected (const onRangeSelectedCallback &cb, void *data=nullptr)
 
template<typename T1 , typename arg , class T >
void onRangeSelected (T1 *owner, void(T::*listenerMethod)(arg), void *data=nullptr)
 
void onValueHighlighted (const onValueHighlightedCallback &cb, void *data=nullptr)
 
template<typename T1 , typename arg , class T >
void onValueHighlighted (T1 *owner, void(T::*listenerMethod)(arg), void *data=nullptr)
 
std::pair< uint32_t, uint32_t > getSelection ()
 
void clearSelection ()
 

Protected Member Functions

virtual uint32_t mouseCoordinateToIndex (uint32_t x)
 
- Protected Member Functions inherited from InteractivePlot
bool contains (uint32_t x, uint32_t y)
 
void mouseMoved (ofMouseEventArgs &arg)
 
void startSelection (ofMouseEventArgs &arg)
 
void duringSelection (ofMouseEventArgs &arg)
 
void normalize ()
 
void endSelection (ofMouseEventArgs &arg)
 

Additional Inherited Members

- Public Types inherited from InteractivePlot
typedef std::function< void(RangeSelectedCallbackArgs)> onRangeSelectedCallback
 
typedef std::function< void(ValueHighlightedCallbackArgs)> onValueHighlightedCallback
 
- Protected Attributes inherited from InteractivePlot
uint32_t x_
 
uint32_t y_
 
uint32_t w_
 
uint32_t h_
 
uint32_t x_move_
 
uint32_t x_click_
 
uint32_t x_release_
 
uint32_t x_start_
 
uint32_t x_end_
 
bool is_tracking_mouse_
 
onRangeSelectedCallback range_selected_callback_
 
void * range_selected_callback_data_
 
onValueHighlightedCallback value_highlighted_callback_
 
void * value_highlighted_callback_data_
 

Member Function Documentation

bool InteractiveTimeSeriesPlot::draw ( uint32_t  x,
uint32_t  y,
uint32_t  w,
uint32_t  h 
)
inline
virtual MatrixDouble InteractiveTimeSeriesPlot::getData ( uint32_t  x_start_idx,
uint32_t  x_end_idx 
)
inlinevirtual

Implements InteractivePlot.

virtual vector<double> InteractiveTimeSeriesPlot::getData ( uint32_t  x_idx)
inlinevirtual

Implements InteractivePlot.

virtual uint32_t InteractiveTimeSeriesPlot::mouseCoordinateToIndex ( uint32_t  x)
inlineprotectedvirtual

Implements InteractivePlot.


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