Panda3D
 All Classes Functions Variables Enumerations
fltTrackplane.h
1 // Filename: fltTrackplane.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 FLTTRACKPLANE_H
16 #define FLTTRACKPLANE_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "luse.h"
21 
22 class FltRecordReader;
23 class FltRecordWriter;
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : FltTrackplane
27 // Description : A single trackplane entry in the eyepoint/trackplane
28 // palette.
29 ////////////////////////////////////////////////////////////////////
31 public:
32  FltTrackplane();
33 
34  bool extract_record(FltRecordReader &reader);
35  bool build_record(FltRecordWriter &writer) const;
36 
37 public:
38  LPoint3d _origin;
39  LPoint3d _alignment;
40  LVector3d _plane;
41  bool _grid_state;
42  bool _grid_under;
43  PN_stdfloat _grid_angle;
44  double _grid_spacing_x;
45  double _grid_spacing_y;
46  bool _snap_to_grid;
47  double _grid_size;
48  int _grid_spacing_direction;
49  int _grid_mask;
50 };
51 
52 #endif
53 
54 
55 
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...
A single trackplane entry in the eyepoint/trackplane palette.
Definition: fltTrackplane.h:30
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:746
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:531