Panda3D
|
Defines the details about the Collectors: the name, the suggested color, etc. More...
#include "pStatCollectorDef.h"
Classes | |
struct | ColorDef |
Public Member Functions | |
PStatCollectorDef (int index, const std::string &name) | |
void | read_datagram (DatagramIterator &source, PStatClientVersion *version) |
Extracts the collectorDef definition from the datagram. | |
void | set_parent (const PStatCollectorDef &parent) |
This is normally called only by the PStatClient when the new PStatCollectorDef is created; it sets the parent of the CollectorDef and inherits whatever properties are appropriate. | |
void | write_datagram (Datagram &destination) const |
Writes the definition of the collectorDef to the datagram. | |
Public Attributes | |
bool | _active_explicitly_set |
double | _factor |
int | _index |
bool | _is_active |
std::string | _level_units |
std::string | _name |
int | _parent_index |
int | _sort |
ColorDef | _suggested_color |
double | _suggested_scale |
Defines the details about the Collectors: the name, the suggested color, etc.
Definition at line 29 of file pStatCollectorDef.h.
PStatCollectorDef::PStatCollectorDef | ( | ) |
Definition at line 23 of file pStatCollectorDef.cxx.
PStatCollectorDef::PStatCollectorDef | ( | int | index, |
const std::string & | name ) |
Definition at line 40 of file pStatCollectorDef.cxx.
void PStatCollectorDef::read_datagram | ( | DatagramIterator & | source, |
PStatClientVersion * | version ) |
Extracts the collectorDef definition from the datagram.
Definition at line 91 of file pStatCollectorDef.cxx.
References DatagramIterator::get_float32(), DatagramIterator::get_int16(), and DatagramIterator::get_string().
Referenced by PStatClientControlMessage::decode().
void PStatCollectorDef::set_parent | ( | const PStatCollectorDef & | parent | ) |
This is normally called only by the PStatClient when the new PStatCollectorDef is created; it sets the parent of the CollectorDef and inherits whatever properties are appropriate.
Definition at line 61 of file pStatCollectorDef.cxx.
void PStatCollectorDef::write_datagram | ( | Datagram & | destination | ) | const |
Writes the definition of the collectorDef to the datagram.
Definition at line 74 of file pStatCollectorDef.cxx.
References Datagram::add_float32(), Datagram::add_int16(), and Datagram::add_string().
bool PStatCollectorDef::_active_explicitly_set |
Definition at line 51 of file pStatCollectorDef.h.
double PStatCollectorDef::_factor |
Definition at line 49 of file pStatCollectorDef.h.
int PStatCollectorDef::_index |
Definition at line 42 of file pStatCollectorDef.h.
bool PStatCollectorDef::_is_active |
Definition at line 50 of file pStatCollectorDef.h.
std::string PStatCollectorDef::_level_units |
Definition at line 47 of file pStatCollectorDef.h.
std::string PStatCollectorDef::_name |
Definition at line 43 of file pStatCollectorDef.h.
int PStatCollectorDef::_parent_index |
Definition at line 44 of file pStatCollectorDef.h.
int PStatCollectorDef::_sort |
Definition at line 46 of file pStatCollectorDef.h.
ColorDef PStatCollectorDef::_suggested_color |
Definition at line 45 of file pStatCollectorDef.h.
double PStatCollectorDef::_suggested_scale |
Definition at line 48 of file pStatCollectorDef.h.