15 #ifndef GTKSTATSSTRIPCHART_H
16 #define GTKSTATSSTRIPCHART_H
18 #include "pandatoolbase.h"
20 #include "gtkStatsGraph.h"
21 #include "pStatStripChart.h"
22 #include "pointerTo.h"
35 int thread_index,
int collector_index,
bool show_level);
39 virtual void new_data(
int thread_index,
int frame_number);
49 virtual void update_labels();
51 virtual void clear_region();
52 virtual void copy_region(
int start_x,
int end_x,
int dest_x);
53 virtual void draw_slice(
int x,
int w,
55 virtual void draw_empty(
int x,
int w);
56 virtual void draw_cursor(
int x);
57 virtual void end_draw(
int from_x,
int to_x);
59 virtual void additional_graph_window_paint();
60 virtual DragMode consider_drag_start(
int graph_x,
int graph_y);
61 virtual void set_drag_mode(DragMode drag_mode);
63 virtual gboolean handle_button_press(GtkWidget *widget,
int graph_x,
int graph_y,
65 virtual gboolean handle_button_release(GtkWidget *widget,
int graph_x,
int graph_y);
66 virtual gboolean handle_motion(GtkWidget *widget,
int graph_x,
int graph_y);
69 void draw_guide_bar(GdkDrawable *surface,
int from_x,
int to_x,
71 void draw_guide_labels();
74 static void toggled_callback(GtkToggleButton *button, gpointer data);
75 static gboolean expose_event_callback(GtkWidget *widget,
76 GdkEventExpose *event, gpointer data);
80 string _net_value_text;
83 GtkWidget *_smooth_check_box;
84 GtkWidget *_total_label;
A window that draws a strip chart, given a view.
This is an abstract class that presents the interface for drawing a basic strip-chart, showing the relative value over an interval of time for several different collectors, differentiated by bands of color.
This is our own Panda specialization on the default STL vector.
virtual void new_collector(int collector_index)
Called whenever a new Collector definition is received from the client.
virtual void set_time_units(int unit_mask)
Called when the user selects a new time units from the monitor pulldown menu, this should adjust the ...
virtual void new_data(int thread_index, int frame_number)
Called as each frame's data is made available.
This is just an abstract base class to provide a common pointer type for the various kinds of graphs ...
virtual void clicked_label(int collector_index)
Called when the user single-clicks on a label.
This class represents a connection to a PStatsClient and manages the data exchange with the client...
virtual void force_redraw()
Called when it is necessary to redraw the entire graph.
virtual void set_scroll_speed(double scroll_speed)
Called when the user selects a new scroll speed from the monitor pulldown menu, this should adjust th...
virtual void changed_graph_size(int graph_xsize, int graph_ysize)
Called when the user has resized the window, forcing a resize of the graph.
void set_vertical_scale(double value_height)
Changes the value the height of the vertical axis represents.