00001 // Filename: cLwoSurfaceBlockTMap.h 00002 // Created by: drose (30Apr01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef CLWOSURFACEBLOCKTMAP_H 00020 #define CLWOSURFACEBLOCKTMAP_H 00021 00022 #include <pandatoolbase.h> 00023 00024 #include <lwoSurfaceBlockTMap.h> 00025 #include <lwoSurfaceBlockCoordSys.h> 00026 00027 #include <luse.h> 00028 00029 class LwoToEggConverter; 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Class : CLwoSurfaceBlockTMap 00033 // Description : This class is a wrapper around LwoSurfaceBlockTMap 00034 // and stores additional information useful during the 00035 // conversion-to-egg process. 00036 //////////////////////////////////////////////////////////////////// 00037 class CLwoSurfaceBlockTMap { 00038 public: 00039 CLwoSurfaceBlockTMap(LwoToEggConverter *converter, const LwoSurfaceBlockTMap *tmap); 00040 00041 void get_transform(LMatrix4d &mat) const; 00042 00043 LPoint3f _center; 00044 LVecBase3f _size; 00045 LVecBase3f _rotation; 00046 00047 string _reference_object; 00048 00049 LwoSurfaceBlockCoordSys::Type _csys; 00050 00051 LwoToEggConverter *_converter; 00052 CPT(LwoSurfaceBlockTMap) _tmap; 00053 }; 00054 00055 #include "cLwoSurfaceBlockTMap.I" 00056 00057 #endif 00058 00059