00001 // Filename: findApproxLevel.h 00002 // Created by: drose (13Mar02) 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 FINDAPPROXLEVEL_H 00020 #define FINDAPPROXLEVEL_H 00021 00022 #include "pandabase.h" 00023 00024 #include "findApproxLevelEntry.h" 00025 #include "pvector.h" 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Class : FindApproxLevel 00029 // Description : This class is local to this package only; it doesn't 00030 // get exported. It maintains the list of nodes 00031 // find_approx() considers for each level of the scene 00032 // graph it visits, in its breadth-first search. 00033 //////////////////////////////////////////////////////////////////// 00034 class FindApproxLevel { 00035 public: 00036 INLINE void add_entry(const FindApproxLevelEntry &entry); 00037 00038 void write(ostream &out) const; 00039 00040 typedef pvector<FindApproxLevelEntry> Vec; 00041 Vec _v; 00042 }; 00043 00044 #include "findApproxLevel.I" 00045 00046 #endif