14 #ifndef WINSTATSGRAPH_H    15 #define WINSTATSGRAPH_H    47   virtual void new_data(
int thread_index, 
int frame_number);
    61   void setup_label_stack();
    62   void move_label_stack();
    64   HBRUSH get_collector_brush(
int collector_index);
    66   LONG window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
    67   virtual LONG graph_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
    69   virtual void additional_window_paint(HDC hdc);
    70   virtual void additional_graph_window_paint(HDC hdc);
    71   virtual DragMode consider_drag_start(
int mouse_x, 
int mouse_y,
    72                                        int width, 
int height);
    73   virtual void set_drag_mode(DragMode drag_mode);
    75   virtual void move_graph_window(
int graph_left, 
int graph_top,
    76                                  int graph_xsize, 
int graph_ysize);
    88   HCURSOR _sizewe_cursor;
    94   int _graph_left, _graph_top;
    95   int _bitmap_xsize, _bitmap_ysize;
    96   int _left_margin, _right_margin;
    97   int _top_margin, _bottom_margin;
   100   COLORREF _light_color;
   101   COLORREF _user_guide_bar_color;
   104   HPEN _user_guide_bar_pen;
   107   DragMode _potential_drag_mode;
   108   int _drag_start_x, _drag_start_y;
   109   double _drag_scale_start;
   115   void setup_bitmap(
int xsize, 
int ysize);
   116   void release_bitmap();
   117   void create_graph_window();
   118   static void register_graph_window_class(HINSTANCE application);
   120   static LONG WINAPI static_graph_window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam);
   122   static bool _graph_window_class_registered;
   123   static const char * 
const _graph_window_class_name;
   126   static DWORD graph_window_style;
 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 ...
void user_guide_bars_changed()
Called when the user guide bars have been changed.
A window that contains a stack of labels from bottom to top.
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.
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 just an abstract base class to provide a common pointer type for the various kinds of graphs ...
This class represents a connection to a PStatsClient and manages the data exchange with the client.
void set_pause(bool pause)
Changes the pause flag for the graph.
virtual void new_data(int thread_index, int frame_number)
Called whenever new data arrives.
virtual void force_redraw()
Called when it is necessary to redraw the entire graph.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void clicked_label(int collector_index)
Called when the user single-clicks on a label.