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

LightAttrib Class Reference

#include <lightAttrib.h>

Inheritance diagram for LightAttrib:

RenderAttrib TypedWritableReferenceCount TypedWritable ReferenceCount TypedObject List of all members.

Public Member Functions

virtual void issue (GraphicsStateGuardianBase *gsg) const
virtual void output (ostream &out) const
virtual void write_datagram (BamWriter *manager, Datagram &dg)
virtual int complete_pointers (TypedWritable **plist, BamReader *manager)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

void register_with_read_factory ()
TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

virtual int compare_to_impl (const RenderAttrib *other) const
virtual CPT (RenderAttrib) compose_impl(const RenderAttrib *other) const
virtual CPT (RenderAttrib) invert_compose_impl(const RenderAttrib *other) const
virtual RenderAttribmake_default_impl () const
void fillin (DatagramIterator &scan, BamReader *manager)

Static Protected Member Functions

TypedWritablemake_from_bam (const FactoryParams &params)

Private Types

typedef ov_set< PT(LightLights )

Private Member Functions

INLINE LightAttrib ()
INLINE Operation get_operation () const
INLINE int get_num_lights () const
INLINE Lightget_light (int n) const
bool has_light (Light *light) const
INLINE CPT (RenderAttrib) add_light(Light *light) const
INLINE CPT (RenderAttrib) remove_light(Light *light) const
INLINE bool is_identity () const
INLINE bool is_all_off () const
 CPT (RenderAttrib) do_add(const LightAttrib *other
 CPT (RenderAttrib) do_remove(const LightAttrib *other

Static Private Member Functions

 CPT (RenderAttrib) make_all_off()
 CPT (RenderAttrib) make(Operation op
 CPT (RenderAttrib) make(Operation op
 CPT (RenderAttrib) make(Operation op
 CPT (RenderAttrib) make(Operation op

Private Attributes

PUBLISHED __pad0__: enum Operation { O_set
PUBLISHED O_add
PUBLISHED O_remove
Lightlight
Lightlight1
Light Lightlight2
Lightlight1
Light Lightlight2
Light Light Lightlight3
Lightlight1
Light Lightlight2
Light Light Lightlight3
Light Light Light Lightlight4
Operation op const
Operation _operation
Lights _lights

Static Private Attributes

TypeHandle _type_handle

Member Typedef Documentation

typedef ov_set< PT(Light) LightAttrib::Lights) [private]
 

Definition at line 86 of file lightAttrib.h.


Constructor & Destructor Documentation

INLINE LightAttrib::LightAttrib  )  [private]
 


Member Function Documentation

int LightAttrib::compare_to_impl const RenderAttrib other  )  const [protected, virtual]
 

Reimplemented from RenderAttrib.

Definition at line 184 of file lightAttrib.cxx.

References _lights, _operation, DCAST_INTO_R, and light.

int LightAttrib::complete_pointers TypedWritable **  plist,
BamReader manager
[virtual]
 

Reimplemented from TypedWritable.

Definition at line 438 of file lightAttrib.cxx.

References _lights, PandaNode::as_light(), TypedWritable::complete_pointers(), and DCAST_INTO_R.

LightAttrib::CPT RenderAttrib   )  const [private]
 

Reimplemented from RenderAttrib.

LightAttrib::CPT RenderAttrib   )  const [private]
 

Reimplemented from RenderAttrib.

virtual LightAttrib::CPT RenderAttrib   )  const [protected, virtual]
 

Reimplemented from RenderAttrib.

virtual LightAttrib::CPT RenderAttrib   )  const [protected, virtual]
 

Reimplemented from RenderAttrib.

INLINE LightAttrib::CPT RenderAttrib   )  const [private]
 

Reimplemented from RenderAttrib.

INLINE LightAttrib::CPT RenderAttrib   )  const [private]
 

Reimplemented from RenderAttrib.

LightAttrib::CPT RenderAttrib   )  [static, private]
 

Reimplemented from RenderAttrib.

LightAttrib::CPT RenderAttrib   )  [static, private]
 

Reimplemented from RenderAttrib.

LightAttrib::CPT RenderAttrib   )  [static, private]
 

Reimplemented from RenderAttrib.

LightAttrib::CPT RenderAttrib   )  [static, private]
 

Reimplemented from RenderAttrib.

LightAttrib::CPT RenderAttrib   )  [static, private]
 

Reimplemented from RenderAttrib.

void LightAttrib::fillin DatagramIterator scan,
BamReader manager
[protected]
 

Reimplemented from RenderAttrib.

Definition at line 479 of file lightAttrib.cxx.

References _lights, _operation, RenderAttrib::fillin(), DatagramIterator::get_int8(), DatagramIterator::get_uint16(), NULL, and BamReader::read_pointer().

Referenced by make_from_bam().

virtual TypeHandle LightAttrib::force_init_type void   )  [inline, virtual]
 

Reimplemented from RenderAttrib.

Definition at line 110 of file lightAttrib.h.

References RenderAttrib::get_class_type(), and RenderAttrib::init_type().

TypeHandle LightAttrib::get_class_type void   )  [inline, static]
 

Reimplemented from RenderAttrib.

Definition at line 99 of file lightAttrib.h.

Referenced by register_with_read_factory(), and WindowFramework::set_lighting().

INLINE Light* LightAttrib::get_light int  n  )  const [private]
 

Referenced by GraphicsStateGuardian::issue_light().

INLINE int LightAttrib::get_num_lights  )  const [private]
 

Referenced by GraphicsStateGuardian::issue_light().

INLINE Operation LightAttrib::get_operation  )  const [private]
 

Referenced by GraphicsStateGuardian::issue_light().

virtual TypeHandle LightAttrib::get_type void   )  const [inline, virtual]
 

Reimplemented from RenderAttrib.

Definition at line 107 of file lightAttrib.h.

References RenderAttrib::get_class_type().

Referenced by output().

bool LightAttrib::has_light Light light  )  const [private]
 

Definition at line 119 of file lightAttrib.cxx.

References _lights.

Referenced by GraphicsStateGuardian::issue_light().

void LightAttrib::init_type void   )  [inline, static]
 

Reimplemented from RenderAttrib.

Definition at line 102 of file lightAttrib.h.

References RenderAttrib::get_class_type(), RenderAttrib::init_type(), and register_type().

Referenced by init_libpgraph().

INLINE bool LightAttrib::is_all_off  )  const [private]
 

INLINE bool LightAttrib::is_identity  )  const [private]
 

void LightAttrib::issue GraphicsStateGuardianBase gsg  )  const [virtual]
 

Reimplemented from RenderAttrib.

Definition at line 133 of file lightAttrib.cxx.

References GraphicsStateGuardianBase::issue_light().

RenderAttrib * LightAttrib::make_default_impl  )  const [protected, virtual]
 

Implements RenderAttrib.

Definition at line 293 of file lightAttrib.cxx.

TypedWritable * LightAttrib::make_from_bam const FactoryParams params  )  [static, protected]
 

Definition at line 460 of file lightAttrib.cxx.

References fillin(), params, and parse_params().

Referenced by register_with_read_factory().

void LightAttrib::output ostream &  out  )  const [virtual]
 

Definition at line 143 of file lightAttrib.cxx.

References _lights, _operation, Light::get_type(), get_type(), light, O_add, and O_remove.

void LightAttrib::register_with_read_factory  )  [static]
 

Definition at line 404 of file lightAttrib.cxx.

References get_class_type(), BamReader::get_factory(), make_from_bam(), and Factory< TypedWritable >::register_factory().

Referenced by init_libpgraph().

void LightAttrib::write_datagram BamWriter manager,
Datagram dg
[virtual]
 

Reimplemented from RenderAttrib.

Definition at line 415 of file lightAttrib.cxx.

References _lights, _operation, Datagram::add_int8(), Datagram::add_uint16(), Light::as_node(), light, PN_uint16, RenderAttrib::write_datagram(), and BamWriter::write_pointer().


Member Data Documentation

PUBLISHED LightAttrib::__pad0__ [private]
 

Reimplemented from RenderAttrib.

Definition at line 41 of file lightAttrib.h.

Lights LightAttrib::_lights [private]
 

Definition at line 87 of file lightAttrib.h.

Referenced by compare_to_impl(), complete_pointers(), fillin(), has_light(), output(), and write_datagram().

Operation LightAttrib::_operation [private]
 

Definition at line 85 of file lightAttrib.h.

Referenced by compare_to_impl(), CPT(), fillin(), output(), and write_datagram().

TypeHandle LightAttrib::_type_handle [static, private]
 

Reimplemented from RenderAttrib.

Definition at line 27 of file lightAttrib.cxx.

Operation op LightAttrib::const [private]
 

Definition at line 82 of file lightAttrib.h.

Light* LightAttrib::light [private]
 

Definition at line 48 of file lightAttrib.h.

Referenced by compare_to_impl(), output(), and write_datagram().

Light* LightAttrib::light1 [private]
 

Definition at line 55 of file lightAttrib.h.

Light* LightAttrib::light1 [private]
 

Definition at line 52 of file lightAttrib.h.

Light* LightAttrib::light1 [private]
 

Definition at line 50 of file lightAttrib.h.

Light Light* LightAttrib::light2 [private]
 

Definition at line 55 of file lightAttrib.h.

Light Light* LightAttrib::light2 [private]
 

Definition at line 52 of file lightAttrib.h.

Light Light* LightAttrib::light2 [private]
 

Definition at line 50 of file lightAttrib.h.

Light Light Light* LightAttrib::light3 [private]
 

Definition at line 55 of file lightAttrib.h.

Light Light Light* LightAttrib::light3 [private]
 

Definition at line 52 of file lightAttrib.h.

Light Light Light Light* LightAttrib::light4 [private]
 

Definition at line 55 of file lightAttrib.h.

PUBLISHED LightAttrib::O_add [private]
 

Definition at line 41 of file lightAttrib.h.

Referenced by output(), and WindowFramework::set_lighting().

PUBLISHED LightAttrib::O_remove [private]
 

Definition at line 41 of file lightAttrib.h.

Referenced by GraphicsStateGuardian::issue_light(), and output().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:38 2003 for Panda by doxygen1.3