27 _suggested_color.r = 0.0;
28 _suggested_color.g = 0.0;
29 _suggested_color.b = 0.0;
31 _suggested_scale = 0.0;
34 _active_explicitly_set =
false;
41 PStatCollectorDef(
int index,
const std::string &name) :
46 _suggested_color.r = 0.0;
47 _suggested_color.g = 0.0;
48 _suggested_color.b = 0.0;
50 _suggested_scale = 0.0;
53 _active_explicitly_set =
false;
63 _parent_index = parent._index;
64 _level_units = parent._level_units;
65 _suggested_scale = parent._suggested_scale;
66 _factor = parent._factor;
67 _is_active = parent._is_active;
68 _active_explicitly_set = parent._active_explicitly_set;
A class to retrieve the individual data elements previously stored in a Datagram.
PN_float32 get_float32()
Extracts a 32-bit single-precision floating-point number.
int16_t get_int16()
Extracts a signed 16-bit integer.
std::string get_string()
Extracts a variable-length string.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
void add_int16(int16_t value)
Adds a signed 16-bit integer to the datagram.
void add_float32(PN_float32 value)
Adds a 32-bit single-precision floating-point number to the datagram.
void add_string(const std::string &str)
Adds a variable-length string to the datagram.
Records the version number of a particular client.
Defines the details about the Collectors: the name, the suggested color, etc.
void set_parent(const PStatCollectorDef &parent)
This is normally called only by the PStatClient when the new PStatCollectorDef is created; it sets th...
void read_datagram(DatagramIterator &source, PStatClientVersion *version)
Extracts the collectorDef definition from the datagram.
void write_datagram(Datagram &destination) const
Writes the definition of the collectorDef to the datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.