00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef FLTLOD_H
00016 #define FLTLOD_H
00017
00018 #include "pandatoolbase.h"
00019
00020 #include "fltBeadID.h"
00021
00022
00023
00024
00025
00026 class FltLOD : public FltBeadID {
00027 public:
00028 FltLOD(FltHeader *header);
00029
00030 enum Flags {
00031 F_use_previous_slant = 0x80000000,
00032 F_freeze_center = 0x20000000
00033 };
00034
00035 double _switch_in;
00036 double _switch_out;
00037 int _special_id1, _special_id2;
00038 unsigned int _flags;
00039 double _center_x;
00040 double _center_y;
00041 double _center_z;
00042 double _transition_range;
00043
00044 protected:
00045 virtual bool extract_record(FltRecordReader &reader);
00046 virtual bool build_record(FltRecordWriter &writer) const;
00047
00048 public:
00049 virtual TypeHandle get_type() const {
00050 return get_class_type();
00051 }
00052 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00053 static TypeHandle get_class_type() {
00054 return _type_handle;
00055 }
00056 static void init_type() {
00057 FltBeadID::init_type();
00058 register_type(_type_handle, "FltLOD",
00059 FltBeadID::get_class_type());
00060 }
00061
00062 private:
00063 static TypeHandle _type_handle;
00064 };
00065
00066 #endif
00067
00068