Panda3D
fltToEggLevelState.I
1 // Filename: fltToEggLevelState.I
2 // Created by: drose (18Apr01)
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 ////////////////////////////////////////////////////////////////////
16 // Function: FltToEggLevelState::Constructor
17 // Access: Public
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE FltToEggLevelState::
21 FltToEggLevelState(FltToEggConverter *converter) :
22  _converter(converter)
23 {
24  _flt_object = (FltObject *)NULL;
25  _egg_parent = (EggGroupNode *)NULL;
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: FltToEggLevelState::Copy Constructor
30 // Access: Public
31 // Description:
32 ////////////////////////////////////////////////////////////////////
33 INLINE FltToEggLevelState::
34 FltToEggLevelState(const FltToEggLevelState &copy) :
35  _flt_object(copy._flt_object),
36  _egg_parent(copy._egg_parent),
37  _converter(copy._converter)
38 {
39  // We don't bother to copy the _parents map.
40 }
41 
42 ////////////////////////////////////////////////////////////////////
43 // Function: FltToEggLevelState::Copy Assignment Operator
44 // Access: Public
45 // Description:
46 ////////////////////////////////////////////////////////////////////
47 INLINE void FltToEggLevelState::
48 operator = (const FltToEggLevelState &copy) {
49  _flt_object = copy._flt_object;
50  _egg_parent = copy._egg_parent;
51  _converter = copy._converter;
52  // We don't bother to copy the _parents map.
53 }
A base class for nodes in the hierarchy that are not leaf nodes.
Definition: eggGroupNode.h:51
This class supervises the construction of an EggData structure from the data represented by the FltHe...
This keeps track of relevant things about the traversal as we walk through the flt hierarchy...
The main objecting bead of the flt file.
Definition: fltObject.h:26