Panda3D

Classes | Public Member Functions | Public Attributes | List of all members
PStatCollectorDef Class Reference

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. More...
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. More...
void | write_datagram (Datagram &destination) const
| Writes the definition of the collectorDef to the datagram. More...

## 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

## Detailed Description

Defines the details about the Collectors: the name, the suggested color, etc.

Definition at line 29 of file pStatCollectorDef.h.

## Member Function Documentation

## ◆ read_datagram()

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().

## ◆ set_parent()

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.

## ◆ write_datagram()

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().

The documentation for this class was generated from the following files:

- panda/src/pstatclient/pStatCollectorDef.h
- panda/src/pstatclient/pStatCollectorDef.cxx