Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Spotlight::CData Class Reference

Inheritance diagram for Spotlight::CData:

CycleData List of all members.

Public Member Functions

 CData ()
 CData (const CData &copy)
virtual CycleDatamake_copy () const
virtual void write_datagram (BamWriter *manager, Datagram &dg) const
 Writes the contents of this object to the datagram for shipping out to a Bam file.

virtual 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 Light.

virtual int complete_pointers (TypedWritable **p_list, BamReader *manager)
 Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().


Public Attributes

float _exponent
Colorf _specular_color
LVecBase3f _attenuation

Constructor & Destructor Documentation

Spotlight::CData::CData  )  [inline]
 

Definition at line 31 of file spotlight.I.

Spotlight::CData::CData const CData &  copy  )  [inline]
 

Definition at line 46 of file spotlight.I.

References INLINE.


Member Function Documentation

int CycleData::complete_pointers TypedWritable **  p_list,
BamReader manager
[virtual, inherited]
 

Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().

Returns the number of pointers processed.

Reimplemented in GeomNode::CData, and PandaNode::CData.

Definition at line 63 of file cycleData.cxx.

void Spotlight::CData::fillin DatagramIterator scan,
BamReader manager
[virtual]
 

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

Reimplemented from CycleData.

Definition at line 75 of file spotlight.cxx.

CycleData * Spotlight::CData::make_copy void   )  const [virtual]
 

Implements CycleData.

Definition at line 41 of file spotlight.cxx.

References _attenuation, _exponent, _specular_color, and Datagram::add_float32().

void Spotlight::CData::write_datagram BamWriter manager,
Datagram dg
const [virtual]
 

Writes the contents of this object to the datagram for shipping out to a Bam file.

Reimplemented from CycleData.

Definition at line 56 of file spotlight.cxx.

References _attenuation, _exponent, _specular_color, and DatagramIterator::get_float32().


Member Data Documentation

LVecBase3f Spotlight::CData::_attenuation
 

Definition at line 101 of file spotlight.h.

Referenced by make_copy(), and write_datagram().

float Spotlight::CData::_exponent
 

Definition at line 99 of file spotlight.h.

Referenced by make_copy(), and write_datagram().

Colorf Spotlight::CData::_specular_color
 

Definition at line 100 of file spotlight.h.

Referenced by make_copy(), and write_datagram().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:55:15 2003 for Panda by doxygen1.3