Panda3D
 All Classes Functions Variables Enumerations
cLwoSurfaceBlockTMap.h
1 // Filename: cLwoSurfaceBlockTMap.h
2 // Created by: drose (30Apr01)
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 CLWOSURFACEBLOCKTMAP_H
16 #define CLWOSURFACEBLOCKTMAP_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "lwoSurfaceBlockTMap.h"
21 #include "lwoSurfaceBlockCoordSys.h"
22 
23 #include "luse.h"
24 
25 class LwoToEggConverter;
26 
27 ////////////////////////////////////////////////////////////////////
28 // Class : CLwoSurfaceBlockTMap
29 // Description : This class is a wrapper around LwoSurfaceBlockTMap
30 // and stores additional information useful during the
31 // conversion-to-egg process.
32 ////////////////////////////////////////////////////////////////////
34 public:
36 
37  void get_transform(LMatrix4d &mat) const;
38 
39  LPoint3 _center;
40  LVecBase3 _size;
41  LVecBase3 _rotation;
42 
43  string _reference_object;
44 
45  LwoSurfaceBlockCoordSys::Type _csys;
46 
47  LwoToEggConverter *_converter;
48  CPT(LwoSurfaceBlockTMap) _tmap;
49 };
50 
51 #include "cLwoSurfaceBlockTMap.I"
52 
53 #endif
54 
55 
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
This is a 4-by-4 transform matrix.
Definition: lmatrix.h:4716
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
The tMap chunk within a LwoSurfaceBlock chunk.
void get_transform(LMatrix4d &mat) const
Fills up the indicated matrix with the net transform indicated by the TMAP chunk, accounting for scal...
This class supervises the construction of an EggData structure from the data represented by the LwoHe...
This class is a wrapper around LwoSurfaceBlockTMap and stores additional information useful during th...