18 #include "pandatoolbase.h" 20 #include "fltBeadID.h" 21 #include "fltVertex.h" 22 #include "fltMaterial.h" 23 #include "fltTexture.h" 24 #include "fltLightSourceDefinition.h" 25 #include "fltEyepoint.h" 26 #include "fltTrackplane.h" 27 #include "fltInstanceDefinition.h" 29 #include "pathReplace.h" 30 #include "pointerTo.h" 32 #include "dSearchPath.h" 33 #include "distanceUnit.h" 86 F_save_vertex_normals = 0x80000000
97 enum VertexStorageType {
101 enum DatabaseOrigin {
102 DO_open_flight = 100,
118 int _format_revision_level;
119 int _edit_revision_level;
120 string _last_revision;
125 int _unit_multiplier;
129 ProjectionType _projection_type;
131 VertexStorageType _vertex_storage_type;
132 DatabaseOrigin _database_origin;
134 double _delta_x, _delta_y;
141 double _sw_lat, _sw_long;
142 double _ne_lat, _ne_long;
143 double _origin_lat, _origin_long;
144 double _lambert_upper_lat, _lambert_lower_lat;
148 EarthModel _earth_model;
149 int _next_adaptive_id;
242 Instances _instances;
246 int update_vertex_lookups();
255 UniqueVertices _unique_vertices;
256 VerticesByOffset _vertices_by_offset;
257 OffsetsByVertex _offsets_by_vertex;
259 bool _vertex_lookups_stale;
263 int _current_vertex_offset;
267 bool _got_color_palette;
271 ColorNames _color_names;
275 bool _got_14_material_palette;
277 Materials _materials;
278 int _next_material_index;
282 AttrUpdate _auto_attr_update;
285 int _next_pattern_index;
290 LightSources _light_sources;
294 bool _got_eyepoint_trackplane_palette;
328 return get_class_type();
330 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
334 static void init_type() {
335 FltBeadID::init_type();
336 register_type(_type_handle,
"FltHeader",
337 FltBeadID::get_class_type());
A single eyepoint entry in the eyepoint/trackplane palette.
This is the base class for all three-component vectors and points.
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly...
A base class for any of a broad family of flt beads that include an ID.
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
Represents a single material in the material palette.
A single trackplane entry in the eyepoint/trackplane palette.
Represents a single entry in the light source palette.
Represents a single texture in the texture palette.
The name of a file, such as a texture file or an Egg file.
A packed color record, A, B, G, R.
Represents a single vertex in the vertex palette.
This is the base class for all three-component vectors and points.
This encapsulates the user's command-line request to replace existing, incorrect pathnames to models ...
This class stores a list of directories that can be searched, in order, to locate a particular file...
TypeHandle is the identifier used to differentiate C++ class types.
This special kind of record marks the top node of an instance subtree.