Panda3D
|
00001 // Filename: lwoInputFile.h 00002 // Created by: drose (24Apr01) 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 LWOINPUTFILE_H 00016 #define LWOINPUTFILE_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "iffInputFile.h" 00021 00022 #include "luse.h" 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Class : LwoInputFile 00026 // Description : A specialization of IffInputFile to handle reading a 00027 // Lightwave Object file. 00028 //////////////////////////////////////////////////////////////////// 00029 class LwoInputFile : public IffInputFile { 00030 public: 00031 LwoInputFile(); 00032 ~LwoInputFile(); 00033 00034 INLINE double get_lwo_version() const; 00035 INLINE void set_lwo_version(double version); 00036 00037 int get_vx(); 00038 LVecBase3 get_vec3(); 00039 Filename get_filename(); 00040 00041 protected: 00042 virtual IffChunk *make_new_chunk(IffId id); 00043 00044 private: 00045 double _lwo_version; 00046 00047 public: 00048 virtual TypeHandle get_type() const { 00049 return get_class_type(); 00050 } 00051 virtual TypeHandle force_init_type() {init_type(); return get_class_type();} 00052 static TypeHandle get_class_type() { 00053 return _type_handle; 00054 } 00055 static void init_type() { 00056 IffInputFile::init_type(); 00057 register_type(_type_handle, "LwoInputFile", 00058 IffInputFile::get_class_type()); 00059 } 00060 00061 private: 00062 static TypeHandle _type_handle; 00063 }; 00064 00065 #include "lwoInputFile.I" 00066 00067 #endif 00068 00069