27class EXPCL_PANDA_PGRAPH ModelRoot :
public ModelNode {
29 INLINE
explicit ModelRoot(
const std::string &name);
30 INLINE
explicit ModelRoot(
const Filename &fullpath, time_t timestamp);
44 class ModelReference :
public ReferenceCount {
46 INLINE ModelReference();
54 INLINE ModelRoot(
const ModelRoot ©);
76 static void init_type() {
77 ModelNode::init_type();
79 ModelNode::get_class_type());
81 virtual TypeHandle get_type()
const {
82 return get_class_type();
84 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
87 static TypeHandle _type_handle;
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.
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.
set_fullpath
Sets the full pathname of the model represented by this node, as found on disk.
set_timestamp
Sets the timestamp of the file on disk that was read for this model.
get_timestamp
Returns the timestamp of the file on disk that was read for this model, at the time it was read,...
get_reference
Returns the pointer that represents the object shared between all copies of this ModelRoot.
get_fullpath
Returns the full pathname of the model represented by this node, as found on disk.
set_reference
Changes the pointer that represents the object shared between all copies of this ModelRoot.
get_model_ref_count
Returns the number of copies that exist of this particular ModelRoot node.
void ref() const
Explicitly increments the reference count.
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(),...