14 #ifndef PSTATPIANOROLL_H 15 #define PSTATPIANOROLL_H 41 int xsize,
int ysize);
55 void changed_size(
int xsize,
int ysize);
57 virtual void normal_guide_bars();
59 virtual void begin_draw();
60 virtual void begin_row(
int row);
61 virtual void draw_bar(
int row,
int from_x,
int to_x);
62 virtual void end_row(
int row);
63 virtual void end_draw();
87 void add_data_point(
double time,
bool is_start);
88 void finish(
double time);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int timestamp_to_pixel(double time) const
Converts a timestamp to a horizontal pixel offset.
double get_horizontal_scale() const
Returns the amount of total time the width of the horizontal axis represents.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is an abstract class that presents the interface for drawing a piano- roll type chart: it shows ...
This is an abstract base class for several different kinds of graphs that have a few things in common...
void update()
Updates the chart with the latest data.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is an abstract class that presents the interface to any number of different front-ends for the s...
int height_to_pixel(double value) const
Converts a value (i.e.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Contains the raw timing and level data for a single frame.
double pixel_to_timestamp(int x) const
Converts a horizontal pixel offset to a timestamp.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_horizontal_scale(double time_width)
Changes the amount of time the width of the horizontal axis represents.
double pixel_to_height(int y) const
Converts a horizontal pixel offset to a value (a "height" in the strip chart).
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.