27 return _labels.size();
35 nassertr(n >= 0 && n < (
int)_labels.size(), 0);
44 nassertr(n >= 0 && n < (
int)_labels.size(), std::string());
45 return _monitor->get_client_data()->get_collector_name(_labels[n]);
53 nassertr(n >= 0 && n < (
int)_labels.size(), LRGBColor(0.0, 0.0, 0.0));
54 return _monitor->get_collector_color(_labels[n]);
63 if (_target_frame_rate != frame_rate) {
64 _target_frame_rate = frame_rate;
75 return _target_frame_rate;
100 if (_guide_bar_units != guide_bar_units) {
101 _guide_bar_units = guide_bar_units;
112 return _guide_bar_units;
121 _unit_name = unit_name;
int get_xsize() const
Returns the width of the chart in pixels.
int get_guide_bar_units() const
Returns the units that are displayed for the guide bar labels.
void set_guide_bar_units(int unit_mask)
Sets the units that are displayed for the guide bar labels.
int get_ysize() const
Returns the height of the chart in pixels.
int get_num_labels() const
Returns the number of labels to be drawn for this chart.
std::string get_label_name(int n) const
Returns the text associated with the nth label.
double get_target_frame_rate() const
Returns the indicated target frame rate in Hz.
PStatMonitor * get_monitor() const
Returns the monitor associated with this chart.
This is an abstract class that presents the interface to any number of different front-ends for the s...
int get_label_collector(int n) const
Returns the collector index associated with the nth label.
const std::string & get_guide_bar_unit_name() const
Returns the name of the units to be used for the guide bars if the units type is set to GBU_named | G...
void set_guide_bar_unit_name(const std::string &unit_name)
Sets the name of the units to be used for the guide bars if the units type is set to GBU_named | GBU_...
void set_target_frame_rate(double frame_rate)
Sets the target frame rate of the application in Hz.
LRGBColor get_label_color(int n) const
Returns the color associated with the nth label.