Panda3D
 All Classes Functions Variables Enumerations
cLwoSurfaceBlockTMap.h
00001 // Filename: cLwoSurfaceBlockTMap.h
00002 // Created by:  drose (30Apr01)
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 CLWOSURFACEBLOCKTMAP_H
00016 #define CLWOSURFACEBLOCKTMAP_H
00017 
00018 #include "pandatoolbase.h"
00019 
00020 #include "lwoSurfaceBlockTMap.h"
00021 #include "lwoSurfaceBlockCoordSys.h"
00022 
00023 #include "luse.h"
00024 
00025 class LwoToEggConverter;
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //       Class : CLwoSurfaceBlockTMap
00029 // Description : This class is a wrapper around LwoSurfaceBlockTMap
00030 //               and stores additional information useful during the
00031 //               conversion-to-egg process.
00032 ////////////////////////////////////////////////////////////////////
00033 class CLwoSurfaceBlockTMap {
00034 public:
00035   CLwoSurfaceBlockTMap(LwoToEggConverter *converter, const LwoSurfaceBlockTMap *tmap);
00036 
00037   void get_transform(LMatrix4d &mat) const;
00038 
00039   LPoint3 _center;
00040   LVecBase3 _size;
00041   LVecBase3 _rotation;
00042 
00043   string _reference_object;
00044 
00045   LwoSurfaceBlockCoordSys::Type _csys;
00046 
00047   LwoToEggConverter *_converter;
00048   CPT(LwoSurfaceBlockTMap) _tmap;
00049 };
00050 
00051 #include "cLwoSurfaceBlockTMap.I"
00052 
00053 #endif
00054 
00055 
 All Classes Functions Variables Enumerations