14 #ifndef GTKSTATSSTRIPCHART_H 15 #define GTKSTATSSTRIPCHART_H 33 int thread_index,
int collector_index,
bool show_level);
37 virtual void new_data(
int thread_index,
int frame_number);
47 virtual void update_labels();
49 virtual void clear_region();
50 virtual void copy_region(
int start_x,
int end_x,
int dest_x);
51 virtual void draw_slice(
int x,
int w,
53 virtual void draw_empty(
int x,
int w);
54 virtual void draw_cursor(
int x);
55 virtual void end_draw(
int from_x,
int to_x);
57 virtual void additional_graph_window_paint();
58 virtual DragMode consider_drag_start(
int graph_x,
int graph_y);
59 virtual void set_drag_mode(DragMode drag_mode);
61 virtual gboolean handle_button_press(GtkWidget *widget,
int graph_x,
int graph_y,
63 virtual gboolean handle_button_release(GtkWidget *widget,
int graph_x,
int graph_y);
64 virtual gboolean handle_motion(GtkWidget *widget,
int graph_x,
int graph_y);
67 void draw_guide_bar(GdkDrawable *surface,
int from_x,
int to_x,
69 void draw_guide_labels();
72 static void toggled_callback(GtkToggleButton *button, gpointer data);
73 static gboolean expose_event_callback(GtkWidget *widget,
74 GdkEventExpose *event, gpointer data);
78 std::string _net_value_text;
81 GtkWidget *_smooth_check_box;
82 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,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.