Panda3D

Loading...
Searching...
No Matches
fltTrackplane.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 fltTrackplane.h
10 * @author drose
11 * @date 2000-08-26
12 */
13
14#ifndef FLTTRACKPLANE_H
15#define FLTTRACKPLANE_H
16
17#include "pandatoolbase.h"
18
19#include "luse.h"
20
21 class FltRecordReader;
22 class FltRecordWriter;
23
24/**
25 * A single trackplane entry in the eyepoint/trackplane palette.
26 */
27 class FltTrackplane {
28 public:
29 FltTrackplane();
30
31 bool extract_record(FltRecordReader &reader);
32 bool build_record(FltRecordWriter &writer) const;
33
34 public:
35 LPoint3d _origin;
36 LPoint3d _alignment;
37 LVector3d _plane;
38 bool _grid_state;
39 bool _grid_under;
40 PN_stdfloat _grid_angle;
41 double _grid_spacing_x;
42 double _grid_spacing_y;
43 bool _snap_to_grid;
44 double _grid_size;
45 int _grid_spacing_direction;
46 int _grid_mask;
47};
48
49#endif
FltRecordReader
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
Definition fltRecordReader.h:30
FltRecordWriter
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly.
Definition fltRecordWriter.h:31
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.