00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef PSTATCOLLECTORDEF_H
00020 #define PSTATCOLLECTORDEF_H
00021
00022 #include <pandabase.h>
00023
00024 #include <luse.h>
00025
00026 class Datagram;
00027 class DatagramIterator;
00028 class PStatClient;
00029 class PStatClientVersion;
00030
00031
00032
00033
00034
00035
00036 class EXPCL_PANDA PStatCollectorDef {
00037 public:
00038 PStatCollectorDef();
00039 PStatCollectorDef(int index, const string &name);
00040 void set_parent(const PStatCollectorDef &parent);
00041
00042 void write_datagram(Datagram &destination) const;
00043 void read_datagram(DatagramIterator &source, PStatClientVersion *version);
00044
00045 int _index;
00046 string _name;
00047 int _parent_index;
00048 RGBColorf _suggested_color;
00049 int _sort;
00050 string _level_units;
00051 float _suggested_scale;
00052 float _factor;
00053 bool _is_active;
00054 bool _active_explicitly_set;
00055 };
00056
00057 #endif
00058