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();}
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.
static void register_with_read_factory()
Tells the BamReader how to create objects of type ModelNode.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
Base class for objects that can be written to and read from Bam files.
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.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This node is placed at key points within the scene graph to indicate the roots of "models": subtrees ...
virtual PandaNode * make_copy() const
Returns a newly-allocated Node that is a shallow copy of this one.
The name of a file, such as a texture file or an Egg file.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for all things that want to be reference-counted.
A class to retrieve the individual data elements previously stored in a Datagram.
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...