00001 // Filename: fltTransformRecord.h 00002 // Created by: drose (24Aug00) 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 FLTTRANSFORMRECORD_H 00020 #define FLTTRANSFORMRECORD_H 00021 00022 #include <pandatoolbase.h> 00023 00024 #include "fltRecord.h" 00025 00026 #include <luse.h> 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Class : FltTransformRecord 00030 // Description : A base class for a number of types of ancillary 00031 // records that follow beads and indicate some kind of a 00032 // transformation. Pointers of this type are collected 00033 // in the FltTransformation class. 00034 //////////////////////////////////////////////////////////////////// 00035 class FltTransformRecord : public FltRecord { 00036 public: 00037 FltTransformRecord(FltHeader *header); 00038 00039 const LMatrix4d &get_matrix() const; 00040 00041 protected: 00042 LMatrix4d _matrix; 00043 00044 public: 00045 virtual TypeHandle get_type() const { 00046 return get_class_type(); 00047 } 00048 virtual TypeHandle force_init_type() {init_type(); return get_class_type();} 00049 static TypeHandle get_class_type() { 00050 return _type_handle; 00051 } 00052 static void init_type() { 00053 FltRecord::init_type(); 00054 register_type(_type_handle, "FltTransformRecord", 00055 FltRecord::get_class_type()); 00056 } 00057 00058 private: 00059 static TypeHandle _type_handle; 00060 00061 friend class FltBead; 00062 }; 00063 00064 #endif 00065 00066