54 INLINE
explicit DataNode(
const std::string &name);
65 INLINE
int get_num_inputs()
const;
66 INLINE
int get_num_outputs()
const;
69 void write_inputs(std::ostream &out)
const;
70 void write_outputs(std::ostream &out)
const;
71 void write_connections(std::ostream &out)
const;
74 int define_input(
const std::string &name,
TypeHandle data_type);
75 int define_output(
const std::string &name,
TypeHandle data_type);
79 virtual void parents_changed();
100 class DataConnection {
119 static void init_type() {
120 PandaNode::init_type();
122 PandaNode::get_class_type());
125 return get_class_type();
127 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
The fundamental type of node for the data graph.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
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.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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 ...
Encapsulates the data generated from (or sent into) any particular DataNode.
This object supervises the traversal of the data graph and the moving of data from one DataNode to it...