Go to the documentation of this file.
28 double net = _value_alone;
30 Children::const_iterator ci;
31 for (ci = _children.begin(); ci != _children.end(); ++ci) {
32 net += (*ci)->get_net_value();
41 class SortCollectorLevels {
44 _client_data(client_data) {
60 SortCollectorLevels sort_levels(client_data);
62 sort(_children.begin(), _children.end(), sort_levels);
72 return _children.size();
80 nassertr(n >= 0 && n < (
int)_children.size(),
nullptr);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int get_collector() const
Returns the Collector index associated with this level.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The data associated with a particular client, but not with any one particular frame or thread: the li...
const PStatViewLevel * get_child(int n) const
Returns the nth child of this Level/Collector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void sort_children(const PStatClientData *client_data)
Sorts the children of this view level into order as specified by the client's sort index.
double get_net_value() const
Returns the total level value (or elapsed time) represented by this Collector, including all values i...
This is a single level value, or band of color, within a View.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int get_num_children() const
Returns the number of children of this Level/Collector.