00001 // Filename: cLwoLayer.h 00002 // Created by: drose (25Apr01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef CLWOLAYER_H 00016 #define CLWOLAYER_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "lwoLayer.h" 00021 #include "eggGroup.h" 00022 #include "pointerTo.h" 00023 00024 class LwoToEggConverter; 00025 00026 //////////////////////////////////////////////////////////////////// 00027 // Class : CLwoLayer 00028 // Description : This class is a wrapper around LwoLayer and stores 00029 // additional information useful during the 00030 // conversion-to-egg process. 00031 //////////////////////////////////////////////////////////////////// 00032 class CLwoLayer { 00033 public: 00034 INLINE CLwoLayer(LwoToEggConverter *converter, const LwoLayer *layer); 00035 INLINE int get_number() const; 00036 00037 void make_egg(); 00038 void connect_egg(); 00039 00040 LwoToEggConverter *_converter; 00041 CPT(LwoLayer) _layer; 00042 PT(EggGroup) _egg_group; 00043 }; 00044 00045 #include "cLwoLayer.I" 00046 00047 #endif 00048 00049