Panda3D
Public Types | Public Member Functions | List of all members
GtkStatsGraph Class Reference

This is just an abstract base class to provide a common pointer type for the various kinds of graphs that may be created for a GtkStatsMonitor. More...

#include "gtkStatsGraph.h"

Inheritance diagram for GtkStatsGraph:
GtkStatsPianoRoll GtkStatsStripChart

Public Types

enum  DragMode {
  DM_none, DM_scale, DM_guide_bar, DM_new_guide_bar,
  DM_sizing
}
 

Public Member Functions

 GtkStatsGraph (GtkStatsMonitor *monitor)
 
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. More...
 
virtual void clicked_label (int collector_index)
 Called when the user single-clicks on a label. More...
 
virtual void force_redraw ()
 Called when it is necessary to redraw the entire graph. More...
 
virtual void new_collector (int collector_index)
 Called whenever a new Collector definition is received from the client. More...
 
virtual void new_data (int thread_index, int frame_number)
 Called whenever new data arrives. More...
 
void set_pause (bool pause)
 Changes the pause flag for the graph. More...
 
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 the speed for the graph to the indicated value. More...
 
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 units for the graph to the indicated mask if it is a time-based graph. More...
 
void user_guide_bars_changed ()
 Called when the user guide bars have been changed. More...
 

Detailed Description

This is just an abstract base class to provide a common pointer type for the various kinds of graphs that may be created for a GtkStatsMonitor.

Definition at line 29 of file gtkStatsGraph.h.

Member Function Documentation

◆ changed_graph_size()

void GtkStatsGraph::changed_graph_size ( int  graph_xsize,
int  graph_ysize 
)
virtual

Called when the user has resized the window, forcing a resize of the graph.

Reimplemented in GtkStatsStripChart, and GtkStatsPianoRoll.

Definition at line 173 of file gtkStatsGraph.cxx.

◆ clicked_label()

void GtkStatsGraph::clicked_label ( int  collector_index)
virtual

Called when the user single-clicks on a label.

Reimplemented in GtkStatsStripChart, and GtkStatsPianoRoll.

Definition at line 217 of file gtkStatsGraph.cxx.

◆ force_redraw()

void GtkStatsGraph::force_redraw ( )
virtual

Called when it is necessary to redraw the entire graph.

Reimplemented in GtkStatsStripChart, and GtkStatsPianoRoll.

Definition at line 166 of file gtkStatsGraph.cxx.

◆ new_collector()

void GtkStatsGraph::new_collector ( int  collector_index)
virtual

Called whenever a new Collector definition is received from the client.

Reimplemented in GtkStatsStripChart.

Definition at line 152 of file gtkStatsGraph.cxx.

Referenced by GtkStatsStripChart::new_collector(), and GtkStatsMonitor::new_collector().

◆ new_data()

void GtkStatsGraph::new_data ( int  thread_index,
int  frame_number 
)
virtual

Called whenever new data arrives.

Reimplemented in GtkStatsStripChart, and GtkStatsPianoRoll.

Definition at line 159 of file gtkStatsGraph.cxx.

Referenced by GtkStatsMonitor::new_data().

◆ set_pause()

void GtkStatsGraph::set_pause ( bool  pause)

Changes the pause flag for the graph.

When this flag is true, the graph does not update in response to new data.

Definition at line 198 of file gtkStatsGraph.cxx.

Referenced by GtkStatsMonitor::open_piano_roll(), GtkStatsMonitor::open_strip_chart(), and GtkStatsMonitor::set_pause().

◆ set_scroll_speed()

void GtkStatsGraph::set_scroll_speed ( double  scroll_speed)
virtual

Called when the user selects a new scroll speed from the monitor pulldown menu, this should adjust the speed for the graph to the indicated value.

Reimplemented in GtkStatsStripChart.

Definition at line 190 of file gtkStatsGraph.cxx.

Referenced by GtkStatsMonitor::open_piano_roll(), and GtkStatsMonitor::set_scroll_speed().

◆ set_time_units()

void GtkStatsGraph::set_time_units ( int  unit_mask)
virtual

Called when the user selects a new time units from the monitor pulldown menu, this should adjust the units for the graph to the indicated mask if it is a time-based graph.

Reimplemented in GtkStatsStripChart, and GtkStatsPianoRoll.

Definition at line 182 of file gtkStatsGraph.cxx.

Referenced by GtkStatsMonitor::set_time_units().

◆ user_guide_bars_changed()

void GtkStatsGraph::user_guide_bars_changed ( )

Called when the user guide bars have been changed.

Definition at line 206 of file gtkStatsGraph.cxx.

Referenced by GtkStatsMonitor::user_guide_bars_changed().


The documentation for this class was generated from the following files: