Panda3D
fltEyepoint.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file fltEyepoint.h
10  * @author drose
11  * @date 2000-08-26
12  */
13 
14 #ifndef FLTEYEPOINT_H
15 #define FLTEYEPOINT_H
16 
17 #include "pandatoolbase.h"
18 
19 #include "luse.h"
20 
21 class FltRecordReader;
22 class FltRecordWriter;
23 
24 /**
25  * A single eyepoint entry in the eyepoint/trackplane palette.
26  */
27 class FltEyepoint {
28 public:
29  FltEyepoint();
30 
31  bool extract_record(FltRecordReader &reader);
32  bool build_record(FltRecordWriter &writer) const;
33 
34 public:
35  LPoint3d _rotation_center;
36  LVecBase3 _hpr;
37  LMatrix4 _rotation;
38  PN_stdfloat _fov;
39  PN_stdfloat _scale;
40  PN_stdfloat _near_clip;
41  PN_stdfloat _far_clip;
42  LMatrix4 _fly_through;
43  LPoint3 _eyepoint;
44  PN_stdfloat _fly_through_yaw;
45  PN_stdfloat _fly_through_pitch;
46  LVector3 _eyepoint_direction;
47  bool _no_fly_through;
48  bool _ortho_mode;
49  bool _is_valid;
50  int _image_offset_x;
51  int _image_offset_y;
52  int _image_zoom;
53 };
54 
55 #endif
A single eyepoint entry in the eyepoint/trackplane palette.
Definition: fltEyepoint.h:27
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...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.