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

ColorAttrib Class Reference

#include <colorAttrib.h>

Inheritance diagram for ColorAttrib:

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 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 RenderAttribmake_default_impl () const
void fillin (DatagramIterator &scan, BamReader *manager)

Static Protected Member Functions

TypedWritablemake_from_bam (const FactoryParams &params)

Private Member Functions

INLINE ColorAttrib (Type type=T_vertex, const Colorf &color=Colorf(0.0f, 0.0f, 0.0f, 1.0f))
INLINE Type get_color_type () const
INLINE const Colorfget_color () const

Static Private Member Functions

 CPT (RenderAttrib) make_flat(const Colorf &color)
 CPT (RenderAttrib) make_off()

Private Attributes

PUBLISHED __pad0__: enum Type { T_vertex
PUBLISHED T_flat
PUBLISHED T_off
PUBLISHED __pad1__: static CPT(RenderAttrib) make_vertex()
Type _type
Colorf _color

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

INLINE ColorAttrib::ColorAttrib Type  type = T_vertex,
const Colorf color = Colorf(0.0f, 0.0f, 0.0f, 1.0f)
[private]
 


Member Function Documentation

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

Reimplemented from RenderAttrib.

Definition at line 120 of file colorAttrib.cxx.

References _color, _type, DCAST_INTO_R, and T_flat.

ColorAttrib::CPT RenderAttrib   )  [static, private]
 

Reimplemented from RenderAttrib.

ColorAttrib::CPT RenderAttrib   )  const [static, private]
 

Reimplemented from RenderAttrib.

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

Reimplemented from RenderAttrib.

Definition at line 201 of file colorAttrib.cxx.

References _color, _type, RenderAttrib::fillin(), and DatagramIterator::get_int8().

Referenced by make_from_bam().

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

Reimplemented from RenderAttrib.

Definition at line 84 of file colorAttrib.h.

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

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

Reimplemented from RenderAttrib.

Definition at line 73 of file colorAttrib.h.

Referenced by AccumulatedAttribs::apply_to_node(), NodePath::clear_color(), AccumulatedAttribs::collect(), NodePath::get_color(), NodePath::has_color(), NodePath::has_texture_off(), and register_with_read_factory().

INLINE const Colorf& ColorAttrib::get_color  )  const [private]
 

Referenced by TextNode::apply_attribs_to_vertices(), GeomNode::apply_attribs_to_vertices(), NodePath::get_color(), GraphicsStateGuardian::issue_color(), and output().

INLINE Type ColorAttrib::get_color_type  )  const [private]
 

Referenced by TextNode::apply_attribs_to_vertices(), GeomNode::apply_attribs_to_vertices(), NodePath::get_color(), GraphicsStateGuardian::issue_color(), and output().

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

Reimplemented from RenderAttrib.

Definition at line 81 of file colorAttrib.h.

References RenderAttrib::get_class_type().

Referenced by output().

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

Reimplemented from RenderAttrib.

Definition at line 76 of file colorAttrib.h.

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

Referenced by init_libpgraph().

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

Reimplemented from RenderAttrib.

Definition at line 77 of file colorAttrib.cxx.

References GraphicsStateGuardianBase::issue_color().

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

Implements RenderAttrib.

Definition at line 144 of file colorAttrib.cxx.

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

Definition at line 182 of file colorAttrib.cxx.

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

Referenced by register_with_read_factory().

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

Definition at line 87 of file colorAttrib.cxx.

References get_color(), get_color_type(), get_type(), T_flat, and T_off.

void ColorAttrib::register_with_read_factory  )  [static]
 

Definition at line 155 of file colorAttrib.cxx.

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

Referenced by init_libpgraph().

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

Reimplemented from RenderAttrib.

Definition at line 166 of file colorAttrib.cxx.

References _color, _type, Datagram::add_int8(), and RenderAttrib::write_datagram().


Member Data Documentation

PUBLISHED ColorAttrib::__pad0__ [private]
 

Reimplemented from RenderAttrib.

Definition at line 37 of file colorAttrib.h.

PUBLISHED ColorAttrib::__pad1__ [private]
 

Definition at line 45 of file colorAttrib.h.

Colorf ColorAttrib::_color [private]
 

Definition at line 62 of file colorAttrib.h.

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

Type ColorAttrib::_type [private]
 

Definition at line 61 of file colorAttrib.h.

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

TypeHandle ColorAttrib::_type_handle [static, private]
 

Reimplemented from RenderAttrib.

Definition at line 27 of file colorAttrib.cxx.

PUBLISHED ColorAttrib::T_flat [private]
 

Definition at line 37 of file colorAttrib.h.

Referenced by TextNode::apply_attribs_to_vertices(), GeomNode::apply_attribs_to_vertices(), compare_to_impl(), NodePath::get_color(), GraphicsStateGuardian::issue_color(), and output().

PUBLISHED ColorAttrib::T_off [private]
 

Definition at line 37 of file colorAttrib.h.

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


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