Panda3D
 All Classes Functions Variables Enumerations
fltEyepoint.h
1 // Filename: fltEyepoint.h
2 // Created by: drose (26Aug00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef FLTEYEPOINT_H
16 #define FLTEYEPOINT_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "luse.h"
21 
22 class FltRecordReader;
23 class FltRecordWriter;
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : FltEyepoint
27 // Description : A single eyepoint entry in the eyepoint/trackplane
28 // palette.
29 ////////////////////////////////////////////////////////////////////
30 class FltEyepoint {
31 public:
32  FltEyepoint();
33 
34  bool extract_record(FltRecordReader &reader);
35  bool build_record(FltRecordWriter &writer) const;
36 
37 public:
38  LPoint3d _rotation_center;
39  LVecBase3 _hpr;
40  LMatrix4 _rotation;
41  PN_stdfloat _fov;
42  PN_stdfloat _scale;
43  PN_stdfloat _near_clip;
44  PN_stdfloat _far_clip;
45  LMatrix4 _fly_through;
46  LPoint3 _eyepoint;
47  PN_stdfloat _fly_through_yaw;
48  PN_stdfloat _fly_through_pitch;
49  LVector3 _eyepoint_direction;
50  bool _no_fly_through;
51  bool _ortho_mode;
52  bool _is_valid;
53  int _image_offset_x;
54  int _image_offset_y;
55  int _image_zoom;
56 };
57 
58 #endif
59 
60 
61 
A single eyepoint entry in the eyepoint/trackplane palette.
Definition: fltEyepoint.h:30
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly...
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
This is a 4-by-4 transform matrix.
Definition: lmatrix.h:451
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:531