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

PointLight::CData Class Reference

Inheritance diagram for PointLight::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

Colorf _specular_color
LVecBase3f _attenuation
LPoint3f _point

Constructor & Destructor Documentation

PointLight::CData::CData  )  [inline]
 

Definition at line 31 of file pointLight.I.

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

Definition at line 46 of file pointLight.I.

References Colorf, and 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 PointLight::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 73 of file pointLight.cxx.

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

Implements CycleData.

Definition at line 39 of file pointLight.cxx.

References _attenuation, _point, and _specular_color.

void PointLight::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 54 of file pointLight.cxx.

References _attenuation, _point, and _specular_color.


Member Data Documentation

LVecBase3f PointLight::CData::_attenuation
 

Definition at line 74 of file pointLight.h.

Referenced by make_copy(), and write_datagram().

LPoint3f PointLight::CData::_point
 

Definition at line 75 of file pointLight.h.

Referenced by make_copy(), and write_datagram().

Colorf PointLight::CData::_specular_color
 

Definition at line 73 of file pointLight.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:54:16 2003 for Panda by doxygen1.3