14 #ifndef WINSTATSSTRIPCHART_H 15 #define WINSTATSSTRIPCHART_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 LONG window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
58 virtual LONG graph_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
59 virtual void additional_window_paint(HDC hdc);
60 virtual void additional_graph_window_paint(HDC hdc);
61 virtual DragMode consider_drag_start(
int mouse_x,
int mouse_y,
62 int width,
int height);
63 virtual void set_drag_mode(DragMode drag_mode);
64 virtual void move_graph_window(
int graph_left,
int graph_top,
65 int graph_xsize,
int graph_ysize);
68 void draw_guide_bar(HDC hdc,
int from_x,
int to_x,
const GuideBar &bar);
69 int draw_guide_label(HDC hdc,
int x,
const GuideBar &bar,
int last_y);
71 static void register_window_class(HINSTANCE application);
73 static LONG WINAPI static_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
76 std::string _net_value_text;
78 HWND _smooth_check_box;
79 static size_t _check_box_height, _check_box_width;
81 static bool _window_class_registered;
82 static const char *
const _window_class_name;
A window that draws a strip chart, given a view.
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...
This is an abstract class that presents the interface for drawing a basic strip-chart,...
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 ...
This is our own Panda specialization on the default STL vector.
This is just an abstract base class to provide a common pointer type for the various kinds of graphs ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_vertical_scale(double value_height)
Changes the value the height of the vertical axis represents.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void new_data(int thread_index, int frame_number)
Called as each frame's data is made available.
This class represents a connection to a PStatsClient and manages the data exchange with the client.
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 clicked_label(int collector_index)
Called when the user single-clicks on a label.
virtual void force_redraw()
Called when it is necessary to redraw the entire graph.