Panda3D
|
00001 // Filename: fltEyepoint.h 00002 // Created by: drose (26Aug00) 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 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 // Class : FltEyepoint 00027 // Description : A single eyepoint entry in the eyepoint/trackplane 00028 // palette. 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 LVecBase3f _hpr; 00040 LMatrix4f _rotation; 00041 float _fov; 00042 float _scale; 00043 float _near_clip; 00044 float _far_clip; 00045 LMatrix4f _fly_through; 00046 LPoint3f _eyepoint; 00047 float _fly_through_yaw; 00048 float _fly_through_pitch; 00049 LVector3f _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