00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef FLTEYEPOINT_H
00016 #define FLTEYEPOINT_H
00017
00018 #include "pandatoolbase.h"
00019
00020 #include "luse.h"
00021
00022 class FltRecordReader;
00023 class FltRecordWriter;
00024
00025
00026
00027
00028
00029
00030 class FltEyepoint {
00031 public:
00032 FltEyepoint();
00033
00034 bool extract_record(FltRecordReader &reader);
00035 bool build_record(FltRecordWriter &writer) const;
00036
00037 public:
00038 LPoint3d _rotation_center;
00039 LVecBase3 _hpr;
00040 LMatrix4 _rotation;
00041 PN_stdfloat _fov;
00042 PN_stdfloat _scale;
00043 PN_stdfloat _near_clip;
00044 PN_stdfloat _far_clip;
00045 LMatrix4 _fly_through;
00046 LPoint3 _eyepoint;
00047 PN_stdfloat _fly_through_yaw;
00048 PN_stdfloat _fly_through_pitch;
00049 LVector3 _eyepoint_direction;
00050 bool _no_fly_through;
00051 bool _ortho_mode;
00052 bool _is_valid;
00053 int _image_offset_x;
00054 int _image_offset_y;
00055 int _image_zoom;
00056 };
00057
00058 #endif
00059
00060
00061