29 INLINE
explicit ModelRoot(
const std::string &name);
32 INLINE
int get_model_ref_count()
const;
33 MAKE_PROPERTY(model_ref_count, get_model_ref_count);
35 INLINE
const Filename &get_fullpath()
const;
36 INLINE
void set_fullpath(
const Filename &fullpath);
37 MAKE_PROPERTY(fullpath, get_fullpath, set_fullpath);
39 INLINE time_t get_timestamp()
const;
40 INLINE
void set_timestamp(time_t timestamp);
41 MAKE_PROPERTY(timestamp, get_timestamp, set_timestamp);
51 MAKE_PROPERTY(reference, get_reference, set_reference);
76 static void init_type() {
77 ModelNode::init_type();
79 ModelNode::get_class_type());
82 return get_class_type();
84 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
The name of a file, such as a texture file or an Egg file.
This node is placed at key points within the scene graph to indicate the roots of "models": subtrees ...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
static void register_with_read_factory()
Tells the BamReader how to create objects of type ModelNode.
virtual PandaNode * make_copy() const
Returns a newly-allocated Node that is a shallow copy of this one.
A node of this type is created automatically at the root of each model file that is loaded.
A basic node of the scene graph or data graph.
A base class for all things that want to be reference-counted.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
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.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...