#include <plotter.h>
Public Types | |
enum | PLOT_MODES { TIME_SERIES, XY, STACKED_HISTOGRAM } |
Public Member Functions | |
void | DrawSequence (const DataSequence &seq) |
void | DrawSequence (const DataSequence &x, const DataSequence &y) |
void | DrawSequenceHistogram (const std::vector< DataSequence > &seq) |
void | DrawTicks () |
void | Keyboard (View &, unsigned char key, int x, int y, bool pressed) |
void | Mouse (View &, MouseButton button, int x, int y, bool pressed, int mouse_state) |
void | MouseMotion (View &, int x, int y, int mouse_state) |
Plotter (DataLog *log, float left=0, float right=600, float bottom=-1, float top=1, float tickx=30, float ticky=0.5) | |
void | Render () |
void | ResetView () |
void | ScreenToPlot (int x, int y) |
Public Attributes | |
int | draw_mode |
float | int_x [2] |
float | int_x_dflt [2] |
float | int_y [2] |
float | int_y_dflt [2] |
int | last_mouse_pos [2] |
DataLog * | log |
int | mouse_state |
float | mouse_xy [2] |
unsigned | plot_mode |
bool | show [show_n] |
float | ticks [2] |
bool | track_front |
Static Public Attributes | |
static const unsigned | modes_n = 3 |
static const unsigned int | show_n = 9 |
pangolin::Plotter::Plotter | ( | DataLog * | log, |
float | left = 0 , |
||
float | right = 600 , |
||
float | bottom = -1 , |
||
float | top = 1 , |
||
float | tickx = 30 , |
||
float | ticky = 0.5 |
||
) |
Definition at line 178 of file plotter.cpp.
void pangolin::Plotter::DrawSequence | ( | const DataSequence & | seq | ) |
Definition at line 240 of file plotter.cpp.
void pangolin::Plotter::DrawSequence | ( | const DataSequence & | x, |
const DataSequence & | y | ||
) |
Definition at line 296 of file plotter.cpp.
void pangolin::Plotter::DrawSequenceHistogram | ( | const std::vector< DataSequence > & | seq | ) |
Definition at line 254 of file plotter.cpp.
void pangolin::Plotter::DrawTicks | ( | ) |
Definition at line 193 of file plotter.cpp.
void pangolin::Plotter::Keyboard | ( | View & | , |
unsigned char | key, | ||
int | x, | ||
int | y, | ||
bool | pressed | ||
) | [virtual] |
Reimplemented from pangolin::Handler.
Definition at line 437 of file plotter.cpp.
void pangolin::Plotter::Mouse | ( | View & | , |
MouseButton | button, | ||
int | x, | ||
int | y, | ||
bool | pressed, | ||
int | mouse_state | ||
) | [virtual] |
Reimplemented from pangolin::Handler.
Definition at line 517 of file plotter.cpp.
void pangolin::Plotter::MouseMotion | ( | View & | , |
int | x, | ||
int | y, | ||
int | mouse_state | ||
) | [virtual] |
Reimplemented from pangolin::Handler.
Definition at line 536 of file plotter.cpp.
void pangolin::Plotter::Render | ( | void | ) | [virtual] |
Perform any automatic rendering for this View. Default implementation simply instructs children to render themselves.
Reimplemented from pangolin::View.
Definition at line 307 of file plotter.cpp.
void pangolin::Plotter::ResetView | ( | ) |
Definition at line 426 of file plotter.cpp.
void pangolin::Plotter::ScreenToPlot | ( | int | x, |
int | y | ||
) |
Definition at line 511 of file plotter.cpp.
float pangolin::Plotter::int_x[2] |
float pangolin::Plotter::int_x_dflt[2] |
float pangolin::Plotter::int_y[2] |
float pangolin::Plotter::int_y_dflt[2] |
const unsigned pangolin::Plotter::modes_n = 3 [static] |
float pangolin::Plotter::mouse_xy[2] |
unsigned pangolin::Plotter::plot_mode |
Reimplemented from pangolin::View.
const unsigned int pangolin::Plotter::show_n = 9 [static] |
float pangolin::Plotter::ticks[2] |