A derivative of Light and of PandaNode.
More...
#include "lightNode.h"
List of all members.
Public Member Functions |
|
| LightNode (const string &name) |
| virtual Light * | as_light () |
| | Cross-casts the node to a Light pointer, if it is one of the four kinds of Light nodes, or returns NULL if it is not.
|
| virtual PandaNode * | as_node () |
| | Returns the Light object upcast to a PandaNode.
|
|
virtual TypeHandle | force_init_type () |
|
virtual TypeHandle | get_type () const |
|
virtual void | output (ostream &out) const |
|
virtual void | write (ostream &out, int indent_level=0) const |
| 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 Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
Protected Member Functions |
|
| LightNode (const LightNode ©) |
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new LightNode.
|
Detailed Description
A derivative of Light and of PandaNode.
All kinds of Light except Spotlight (which must inherit from LensNode instead) inherit from this class.
Definition at line 29 of file lightNode.h.
Member Function Documentation
Cross-casts the node to a Light pointer, if it is one of the four kinds of Light nodes, or returns NULL if it is not.
Reimplemented from PandaNode.
Definition at line 64 of file lightNode.cxx.
Writes the contents of this object to the datagram for shipping out to a Bam file.
Reimplemented from Light.
Reimplemented in AmbientLight.
Definition at line 95 of file lightNode.cxx.
The documentation for this class was generated from the following files: