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;
void add_int16(int16_t value)
Adds a signed 16-bit integer to the datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void write_datagram(Datagram &destination) const
Writes the definition of the collectorDef to the datagram.
void set_parent(const PStatCollectorDef &parent)
This is normally called only by the PStatClient when the new PStatCollectorDef is created; it sets th...
void add_float32(PN_float32 value)
Adds a 32-bit single-precision floating-point number to the datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
std::string get_string()
Extracts a variable-length string.
PN_float32 get_float32()
Extracts a 32-bit single-precision floating-point number.
Records the version number of a particular client.
void add_string(const std::string &str)
Adds a variable-length string to the datagram.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int16_t get_int16()
Extracts a signed 16-bit integer.
A class to retrieve the individual data elements previously stored in a Datagram.
Defines the details about the Collectors: the name, the suggested color, etc.
void read_datagram(DatagramIterator &source, PStatClientVersion *version)
Extracts the collectorDef definition from the datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...