Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PStatCollectorDef Class Reference

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

#include <pStatCollectorDef.h>

List of all members.

Public Member Functions

 PStatCollectorDef ()
 PStatCollectorDef (int index, const string &name)
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.

void read_datagram (DatagramIterator &source, PStatClientVersion *version)
 Extracts the collectorDef definition from the datagram.


Public Attributes

int _index
string _name
int _parent_index
RGBColorf _suggested_color
int _sort
string _level_units
float _suggested_scale
float _factor
bool _is_active
bool _active_explicitly_set


Detailed Description

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

Definition at line 43 of file pStatCollectorDef.h.


Constructor & Destructor Documentation

PStatCollectorDef::PStatCollectorDef  ) 
 

Definition at line 36 of file pStatCollectorDef.cxx.

PStatCollectorDef::PStatCollectorDef int  index,
const string &  name
 

Definition at line 55 of file pStatCollectorDef.cxx.

References _active_explicitly_set, _factor, _is_active, and _suggested_scale.


Member Function Documentation

void PStatCollectorDef::read_datagram DatagramIterator source,
PStatClientVersion version
 

Extracts the collectorDef definition from the datagram.

Definition at line 123 of file pStatCollectorDef.cxx.

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

References _factor, _index, _level_units, _name, _parent_index, _sort, _suggested_color, _suggested_scale, Datagram::add_float32(), Datagram::add_int16(), and Datagram::add_string().

void PStatCollectorDef::write_datagram Datagram destination  )  const
 

Writes the definition of the collectorDef to the datagram.

Definition at line 103 of file pStatCollectorDef.cxx.

References _factor, _index, _level_units, _name, _parent_index, _sort, _suggested_color, _suggested_scale, DatagramIterator::get_float32(), DatagramIterator::get_int16(), and DatagramIterator::get_string().


Member Data Documentation

bool PStatCollectorDef::_active_explicitly_set
 

Definition at line 61 of file pStatCollectorDef.h.

Referenced by PStatCollectorDef().

float PStatCollectorDef::_factor
 

Definition at line 59 of file pStatCollectorDef.h.

Referenced by PStatCollectorDef(), set_parent(), and write_datagram().

int PStatCollectorDef::_index
 

Definition at line 52 of file pStatCollectorDef.h.

Referenced by set_parent(), and write_datagram().

bool PStatCollectorDef::_is_active
 

Definition at line 60 of file pStatCollectorDef.h.

Referenced by PStatCollectorDef().

string PStatCollectorDef::_level_units
 

Definition at line 57 of file pStatCollectorDef.h.

Referenced by set_parent(), and write_datagram().

string PStatCollectorDef::_name
 

Definition at line 53 of file pStatCollectorDef.h.

Referenced by set_parent(), and write_datagram().

int PStatCollectorDef::_parent_index
 

Definition at line 54 of file pStatCollectorDef.h.

Referenced by set_parent(), and write_datagram().

int PStatCollectorDef::_sort
 

Definition at line 56 of file pStatCollectorDef.h.

Referenced by set_parent(), and write_datagram().

RGBColorf PStatCollectorDef::_suggested_color
 

Definition at line 55 of file pStatCollectorDef.h.

Referenced by set_parent(), and write_datagram().

float PStatCollectorDef::_suggested_scale
 

Definition at line 58 of file pStatCollectorDef.h.

Referenced by PStatCollectorDef(), set_parent(), and write_datagram().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:54:31 2003 for Panda by doxygen1.3