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

panda/src/pstatclient/pStatCollectorDef.h

Go to the documentation of this file.
00001 // Filename: pStatCollectorDef.h
00002 // Created by:  drose (09Jul00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
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 //       Class : PStatCollectorDef
00033 // Description : Defines the details about the Collectors: the name,
00034 //               the suggested color, etc.
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 

Generated on Fri May 2 00:43:28 2003 for Panda by doxygen1.3