43 static bool resolve_egg_filename(
Filename &egg_filename,
46 bool read(
Filename filename, std::string display_name = std::string());
47 bool read(std::istream &in);
52 int collapse_equivalent_textures();
53 int collapse_equivalent_materials();
56 bool write_egg(std::ostream &out);
58 INLINE
void set_auto_resolve_externals(
bool resolve);
59 INLINE
bool get_auto_resolve_externals()
const;
60 INLINE
bool original_had_absolute_pathnames()
const;
62 void set_coordinate_system(CoordinateSystem coordsys);
63 INLINE CoordinateSystem get_coordinate_system()
const;
65 INLINE
void set_egg_filename(
const Filename &egg_filename);
66 INLINE
const Filename &get_egg_filename()
const;
68 INLINE
void set_egg_timestamp(time_t egg_timestamp);
69 INLINE time_t get_egg_timestamp()
const;
71 MAKE_PROPERTY(auto_resolve_externals, get_auto_resolve_externals,
72 set_auto_resolve_externals);
73 MAKE_PROPERTY(coordinate_system, get_coordinate_system, set_coordinate_system);
74 MAKE_PROPERTY(egg_filename, get_egg_filename, set_egg_filename);
75 MAKE_PROPERTY(egg_timestamp, get_egg_timestamp, set_egg_timestamp);
82 virtual void write(std::ostream &out,
int indent_level = 0)
const;
88 bool _auto_resolve_externals;
89 bool _had_absolute_pathnames;
90 CoordinateSystem _coordsys;
92 time_t _egg_timestamp;
98 static void init_type() {
99 EggGroupNode::init_type();
101 EggGroupNode::get_class_type());
104 return get_class_type();
106 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
void strip_normals()
Removes all normals from primitives, and the vertices they reference, at this node and below.
A base class for nodes in the hierarchy that are not leaf nodes.
void recompute_polygon_normals(CoordinateSystem cs=CS_default)
Recomputes all the polygon normals for polygon geometry at this group node and below so that they acc...
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the primary interface into all the egg data, and the root of the egg file structure.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write(std::ostream &out, int indent_level) const
Writes the group and all of its children to the indicated output stream in Egg format.
The name of a file, such as a texture file or an Egg file.
An instance of this class is written to the front of a Bam or Txo file to make the file a cached inst...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class stores a list of directories that can be searched, in order, to locate a particular file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
void recompute_vertex_normals(double threshold, CoordinateSystem cs=CS_default)
Recomputes all the vertex normals for polygon geometry at this group node and below so that they accu...