Panda3D
cLwoLayer.h
1 // Filename: cLwoLayer.h
2 // Created by: drose (25Apr01)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef CLWOLAYER_H
16 #define CLWOLAYER_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "lwoLayer.h"
21 #include "eggGroup.h"
22 #include "pointerTo.h"
23 
24 class LwoToEggConverter;
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : CLwoLayer
28 // Description : This class is a wrapper around LwoLayer and stores
29 // additional information useful during the
30 // conversion-to-egg process.
31 ////////////////////////////////////////////////////////////////////
32 class CLwoLayer {
33 public:
34  INLINE CLwoLayer(LwoToEggConverter *converter, const LwoLayer *layer);
35  INLINE int get_number() const;
36 
37  void make_egg();
38  void connect_egg();
39 
40  LwoToEggConverter *_converter;
41  CPT(LwoLayer) _layer;
42  PT(EggGroup) _egg_group;
43 };
44 
45 #include "cLwoLayer.I"
46 
47 #endif
48 
49 
int get_number() const
Returns the index number associated with this particular layer.
Definition: cLwoLayer.I:36
void make_egg()
Creates the egg structures associated with this Lightwave object.
Definition: cLwoLayer.cxx:28
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
Definition: eggGroup.h:36
This class is a wrapper around LwoLayer and stores additional information useful during the conversio...
Definition: cLwoLayer.h:32
Signals the start of a new layer.
Definition: lwoLayer.h:32
This class supervises the construction of an EggData structure from the data represented by the LwoHe...
void connect_egg()
Connects all the egg structures together.
Definition: cLwoLayer.cxx:46