Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions
LightNode Class Reference

A derivative of Light and of PandaNode. More...

#include "lightNode.h"

Inheritance diagram for LightNode:
Light PandaNode ReferenceCount TypedWritable Namable LinkedListNode ReferenceCount MemoryBase TypedObject MemoryBase MemoryBase MemoryBase AmbientLight

List of all members.

Public Member Functions

 LightNode (const string &name)
virtual Lightas_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 PandaNodeas_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 &copy)
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

Light * LightNode::as_light ( ) [virtual]

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.

PandaNode * LightNode::as_node ( ) [virtual]

Returns the Light object upcast to a PandaNode.

Implements Light.

Definition at line 52 of file lightNode.cxx.

void LightNode::fillin ( DatagramIterator scan,
BamReader manager 
) [protected]

This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new LightNode.

Reimplemented from Light.

Reimplemented in AmbientLight.

Definition at line 108 of file lightNode.cxx.

void LightNode::write_datagram ( BamWriter manager,
Datagram dg 
) [virtual]

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:
 All Classes Functions Variables Enumerations