27class EXPCL_PANDA_PGRAPHNODES LightNode :
public Light,
public PandaNode {
29 explicit LightNode(
const std::string &name);
32 LightNode(
const LightNode ©);
41 virtual void output(std::ostream &out)
const;
42 virtual void write(std::ostream &out,
int indent_level = 0)
const;
54 static void init_type() {
56 PandaNode::init_type();
58 Light::get_class_type(),
59 PandaNode::get_class_type());
62 return get_class_type();
64 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
70INLINE std::ostream &operator << (std::ostream &out,
const LightNode &light) {
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
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 ...
A derivative of Light and of PandaNode.
virtual PandaNode * as_node()
Returns the Light object upcast to a PandaNode.
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
virtual Light * as_light()
Cross-casts the node to a Light pointer, if it is one of the four kinds of Light nodes,...
TypeHandle is the identifier used to differentiate C++ class types.
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(),...