Panda3D
Classes | Public Member Functions | Public Attributes
PStatCollectorDef Class Reference

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

#include "pStatCollectorDef.h"

List of all members.

Classes

struct  ColorDef

Public Member Functions

 PStatCollectorDef (int index, const 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
string _level_units
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 31 of file pStatCollectorDef.h.


Member Function Documentation

Extracts the collectorDef definition from the datagram.

Definition at line 105 of file pStatCollectorDef.cxx.

References DatagramIterator::get_float32(), DatagramIterator::get_int16(), and DatagramIterator::get_string().

Referenced by PStatClientControlMessage::decode().

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 70 of file pStatCollectorDef.cxx.

void PStatCollectorDef::write_datagram ( Datagram destination) const

Writes the definition of the collectorDef to the datagram.

Definition at line 86 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:
 All Classes Functions Variables Enumerations