Panda3D
|
00001 // Filename: fltTrackplane.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 FLTTRACKPLANE_H 00016 #define FLTTRACKPLANE_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "luse.h" 00021 00022 class FltRecordReader; 00023 class FltRecordWriter; 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : FltTrackplane 00027 // Description : A single trackplane entry in the eyepoint/trackplane 00028 // palette. 00029 //////////////////////////////////////////////////////////////////// 00030 class FltTrackplane { 00031 public: 00032 FltTrackplane(); 00033 00034 bool extract_record(FltRecordReader &reader); 00035 bool build_record(FltRecordWriter &writer) const; 00036 00037 public: 00038 LPoint3d _origin; 00039 LPoint3d _alignment; 00040 LVector3d _plane; 00041 bool _grid_state; 00042 bool _grid_under; 00043 PN_stdfloat _grid_angle; 00044 double _grid_spacing_x; 00045 double _grid_spacing_y; 00046 bool _snap_to_grid; 00047 double _grid_size; 00048 int _grid_spacing_direction; 00049 int _grid_mask; 00050 }; 00051 00052 #endif 00053 00054 00055