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

pandatool/src/pstatserver/pStatViewLevel.h

Go to the documentation of this file.
00001 // Filename: pStatViewLevel.h
00002 // Created by:  drose (11Jul00)
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 PSTATVIEWLEVEL_H
00020 #define PSTATVIEWLEVEL_H
00021 
00022 #include <pandatoolbase.h>
00023 
00024 #include "pvector.h"
00025 
00026 class PStatClientData;
00027 
00028 ////////////////////////////////////////////////////////////////////
00029 //       Class : PStatViewLevel
00030 // Description : This is a single level value, or band of color,
00031 //               within a View.
00032 //
00033 //               It generally indicates either the elapsed time, or
00034 //               the "level" value, for a particular Collector within
00035 //               a given frame for a particular thread.
00036 ////////////////////////////////////////////////////////////////////
00037 class PStatViewLevel {
00038 public:
00039   INLINE int get_collector() const;
00040   INLINE float get_value_alone() const;
00041   float get_net_value() const;
00042 
00043   void sort_children(const PStatClientData *client_data);
00044 
00045   int get_num_children() const;
00046   const PStatViewLevel *get_child(int n) const;
00047 
00048 private:
00049   int _collector;
00050   float _value_alone;
00051   PStatViewLevel *_parent;
00052 
00053   typedef pvector<PStatViewLevel *> Children;
00054   Children _children;
00055 
00056   friend class PStatView;
00057 };
00058 
00059 #include "pStatViewLevel.I"
00060 
00061 #endif

Generated on Fri May 2 03:21:44 2003 for Panda-Tool by doxygen1.3