15 #ifndef PSTATPIANOROLL_H
16 #define PSTATPIANOROLL_H
18 #include "pandatoolbase.h"
20 #include "pStatGraph.h"
21 #include "pStatMonitor.h"
22 #include "pStatClientData.h"
25 #include "vector_int.h"
46 int xsize,
int ysize);
60 void changed_size(
int xsize,
int ysize);
62 virtual void normal_guide_bars();
64 virtual void begin_draw();
65 virtual void begin_row(
int row);
66 virtual void draw_bar(
int row,
int from_x,
int to_x);
67 virtual void end_row(
int row);
68 virtual void end_draw();
92 void add_data_point(
double time,
bool is_start);
93 void finish(
double time);
104 #include "pStatPianoRoll.I"
This is an abstract class that presents the interface for drawing a piano-roll type chart: it shows t...
double pixel_to_height(int y) const
Converts a horizontal pixel offset to a value (a "height" in the strip chart).
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.
double pixel_to_timestamp(int x) const
Converts a horizontal pixel offset to a timestamp.
This is an abstract class that presents the interface to any number of different front-ends for the s...
Contains the raw timing and level data for a single frame.
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.
void set_horizontal_scale(double time_width)
Changes the amount of time the width of the horizontal axis represents.
int height_to_pixel(double value) const
Converts a value (i.e.