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

RenderAttrib Class Reference

#include <renderAttrib.h>

Inheritance diagram for RenderAttrib:

TypedWritableReferenceCount TypedWritable ReferenceCount TypedObject AlphaTestAttrib ClipPlaneAttrib ColorAttrib ColorBlendAttrib ColorScaleAttrib ColorWriteAttrib CullBinAttrib CullFaceAttrib DepthOffsetAttrib DepthTestAttrib DepthWriteAttrib FogAttrib LightAttrib MaterialAttrib RenderModeAttrib TexMatrixAttrib TextureApplyAttrib TextureAttrib TransparencyAttrib List of all members.

Public Types

enum  PandaCompareFunc {
  M_none = 0, M_never, M_less, M_equal,
  M_less_equal, M_greater, M_not_equal, M_greater_equal,
  M_always
}

Public Member Functions

virtual ~RenderAttrib ()
INLINE CPT (RenderAttrib) compose(const RenderAttrib *other) const
INLINE CPT (RenderAttrib) invert_compose(const RenderAttrib *other) const
INLINE CPT (RenderAttrib) make_default() const
INLINE int compare_to (const RenderAttrib &other) const
virtual void issue (GraphicsStateGuardianBase *gsg) const
virtual void write (ostream &out, int indent_level) const
virtual void write_datagram (BamWriter *manager, Datagram &dg)
virtual void finalize ()
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypedWritablechange_this (TypedWritable *old_ptr, BamReader *manager)
TypeHandle get_class_type ()
void init_type ()

Public Attributes

PUBLISHED __pad0__: virtual void output(ostream &out) const

Protected Member Functions

 RenderAttrib ()
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 RenderAttrib * make_default_impl () const=0
void output_comparefunc (ostream &out, PandaCompareFunc fn) const
void fillin (DatagramIterator &scan, BamReader *manager)

Static Protected Member Functions

 CPT (RenderAttrib) return_new(RenderAttrib *attrib)
TypedWritablenew_from_bam (RenderAttrib *attrib, BamReader *manager)

Private Types

typedef pset< const RenderAttrib *,
IndirectCompareTo< RenderAttrib > > 
Attribs

Private Member Functions

 RenderAttrib (const RenderAttrib &copy)
void operator= (const RenderAttrib &copy)

Private Attributes

Attribs::iterator _saved_entry

Static Private Attributes

Attribs_attribs = NULL
TypeHandle _type_handle

Member Typedef Documentation

typedef pset<const RenderAttrib *, IndirectCompareTo<RenderAttrib> > RenderAttrib::Attribs [private]
 

Definition at line 99 of file renderAttrib.h.

Referenced by RenderAttrib().


Member Enumeration Documentation

enum RenderAttrib::PandaCompareFunc
 

Enumeration values:
M_none 
M_never 
M_less 
M_equal 
M_less_equal 
M_greater 
M_not_equal 
M_greater_equal 
M_always 

Definition at line 78 of file renderAttrib.h.

Referenced by GLGraphicsStateGuardian::issue_alpha_test(), DXGraphicsStateGuardian8::issue_alpha_test(), GLGraphicsStateGuardian::issue_depth_test(), DXGraphicsStateGuardian8::issue_depth_test(), DXGraphicsStateGuardian7::prepare_texture(), and NodePath::set_depth_test().


Constructor & Destructor Documentation

RenderAttrib::RenderAttrib  )  [protected]
 

Definition at line 32 of file renderAttrib.cxx.

References _attribs, _saved_entry, Attribs, and NULL.

RenderAttrib::RenderAttrib const RenderAttrib &  copy  )  [private]
 

Definition at line 50 of file renderAttrib.cxx.

RenderAttrib::~RenderAttrib  )  [virtual]
 

Definition at line 71 of file renderAttrib.cxx.

References _attribs, and _saved_entry.


Member Function Documentation

TypedWritable * RenderAttrib::change_this TypedWritable old_ptr,
BamReader manager
[static]
 

Definition at line 265 of file renderAttrib.cxx.

References CPT(), DCAST, pointer, and BamReader::register_finalize().

Referenced by fillin().

INLINE int RenderAttrib::compare_to const RenderAttrib &  other  )  const
 

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

Reimplemented in AlphaTestAttrib, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CullBinAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, FogAttrib, LightAttrib, MaterialAttrib, RenderModeAttrib, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, and TransparencyAttrib.

Definition at line 186 of file renderAttrib.cxx.

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

Reimplemented in ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ColorAttrib, ColorScaleAttrib, ColorScaleAttrib, CullFaceAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthOffsetAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, TexMatrixAttrib, and TexMatrixAttrib.

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

Reimplemented in ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ColorAttrib, ColorScaleAttrib, ColorScaleAttrib, CullFaceAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthOffsetAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, TexMatrixAttrib, and TexMatrixAttrib.

RenderAttrib::CPT RenderAttrib   )  [static, protected]
 

Reimplemented in ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ColorAttrib, CullFaceAttrib, FogAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, MaterialAttrib, and TextureAttrib.

INLINE RenderAttrib::CPT RenderAttrib   )  const
 

Reimplemented in ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ColorAttrib, ColorScaleAttrib, ColorScaleAttrib, CullFaceAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthOffsetAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, TexMatrixAttrib, and TexMatrixAttrib.

INLINE RenderAttrib::CPT RenderAttrib   )  const
 

Reimplemented in ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ColorAttrib, ColorScaleAttrib, ColorScaleAttrib, CullFaceAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthOffsetAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, TexMatrixAttrib, and TexMatrixAttrib.

INLINE RenderAttrib::CPT RenderAttrib   )  const
 

Reimplemented in ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ClipPlaneAttrib, ColorAttrib, ColorScaleAttrib, ColorScaleAttrib, CullFaceAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthOffsetAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, LightAttrib, TexMatrixAttrib, and TexMatrixAttrib.

Referenced by change_this().

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

Reimplemented from TypedWritable.

Reimplemented in AlphaTestAttrib, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CullBinAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, FogAttrib, LightAttrib, MaterialAttrib, RenderModeAttrib, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, and TransparencyAttrib.

Definition at line 312 of file renderAttrib.cxx.

References change_this(), TypedWritable::fillin(), and BamReader::register_change_this().

Referenced by TransparencyAttrib::fillin(), TextureAttrib::fillin(), TextureApplyAttrib::fillin(), TexMatrixAttrib::fillin(), RenderModeAttrib::fillin(), MaterialAttrib::fillin(), LightAttrib::fillin(), FogAttrib::fillin(), DepthWriteAttrib::fillin(), DepthTestAttrib::fillin(), DepthOffsetAttrib::fillin(), CullFaceAttrib::fillin(), CullBinAttrib::fillin(), ColorWriteAttrib::fillin(), ColorScaleAttrib::fillin(), ColorBlendAttrib::fillin(), ColorAttrib::fillin(), ClipPlaneAttrib::fillin(), and AlphaTestAttrib::fillin().

void RenderAttrib::finalize  )  [virtual]
 

Reimplemented from TypedWritable.

Definition at line 292 of file renderAttrib.cxx.

References ReferenceCount::unref().

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

Reimplemented from TypedWritableReferenceCount.

Reimplemented in AlphaTestAttrib, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CullBinAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, FogAttrib, LightAttrib, MaterialAttrib, RenderModeAttrib, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, and TransparencyAttrib.

Definition at line 125 of file renderAttrib.h.

References ReferenceCount::get_class_type(), and TypedWritableReferenceCount::init_type().

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

Reimplemented from ReferenceCount.

Reimplemented in AlphaTestAttrib, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CullBinAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, FogAttrib, LightAttrib, MaterialAttrib, RenderModeAttrib, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, and TransparencyAttrib.

Definition at line 114 of file renderAttrib.h.

Referenced by TransparencyAttrib::force_init_type(), TextureAttrib::force_init_type(), TextureApplyAttrib::force_init_type(), TexMatrixAttrib::force_init_type(), RenderModeAttrib::force_init_type(), MaterialAttrib::force_init_type(), LightAttrib::force_init_type(), FogAttrib::force_init_type(), DepthWriteAttrib::force_init_type(), DepthTestAttrib::force_init_type(), DepthOffsetAttrib::force_init_type(), CullFaceAttrib::force_init_type(), CullBinAttrib::force_init_type(), ColorWriteAttrib::force_init_type(), ColorScaleAttrib::force_init_type(), ColorBlendAttrib::force_init_type(), ColorAttrib::force_init_type(), ClipPlaneAttrib::force_init_type(), AlphaTestAttrib::force_init_type(), TransparencyAttrib::get_type(), TextureAttrib::get_type(), TextureApplyAttrib::get_type(), TexMatrixAttrib::get_type(), RenderModeAttrib::get_type(), MaterialAttrib::get_type(), LightAttrib::get_type(), FogAttrib::get_type(), DepthWriteAttrib::get_type(), DepthTestAttrib::get_type(), DepthOffsetAttrib::get_type(), CullFaceAttrib::get_type(), CullBinAttrib::get_type(), ColorWriteAttrib::get_type(), ColorScaleAttrib::get_type(), ColorBlendAttrib::get_type(), ColorAttrib::get_type(), ClipPlaneAttrib::get_type(), AlphaTestAttrib::get_type(), TransparencyAttrib::init_type(), TextureAttrib::init_type(), TextureApplyAttrib::init_type(), TexMatrixAttrib::init_type(), RenderModeAttrib::init_type(), MaterialAttrib::init_type(), LightAttrib::init_type(), FogAttrib::init_type(), DepthWriteAttrib::init_type(), DepthTestAttrib::init_type(), DepthOffsetAttrib::init_type(), CullFaceAttrib::init_type(), CullBinAttrib::init_type(), ColorWriteAttrib::init_type(), ColorScaleAttrib::init_type(), ColorBlendAttrib::init_type(), ColorAttrib::init_type(), ClipPlaneAttrib::init_type(), and AlphaTestAttrib::init_type().

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

Reimplemented from TypedWritableReferenceCount.

Reimplemented in AlphaTestAttrib, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CullBinAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, FogAttrib, LightAttrib, MaterialAttrib, RenderModeAttrib, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, and TransparencyAttrib.

Definition at line 122 of file renderAttrib.h.

References ReferenceCount::get_class_type().

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

Reimplemented from TypedWritableReferenceCount.

Reimplemented in AlphaTestAttrib, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CullBinAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, FogAttrib, LightAttrib, MaterialAttrib, RenderModeAttrib, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, and TransparencyAttrib.

Definition at line 117 of file renderAttrib.h.

References ReferenceCount::get_class_type(), TypedWritableReferenceCount::init_type(), and register_type().

Referenced by TransparencyAttrib::force_init_type(), TextureAttrib::force_init_type(), TextureApplyAttrib::force_init_type(), TexMatrixAttrib::force_init_type(), RenderModeAttrib::force_init_type(), MaterialAttrib::force_init_type(), LightAttrib::force_init_type(), FogAttrib::force_init_type(), DepthWriteAttrib::force_init_type(), DepthTestAttrib::force_init_type(), DepthOffsetAttrib::force_init_type(), CullFaceAttrib::force_init_type(), CullBinAttrib::force_init_type(), ColorWriteAttrib::force_init_type(), ColorScaleAttrib::force_init_type(), ColorBlendAttrib::force_init_type(), ColorAttrib::force_init_type(), ClipPlaneAttrib::force_init_type(), AlphaTestAttrib::force_init_type(), init_libpgraph(), TransparencyAttrib::init_type(), TextureAttrib::init_type(), TextureApplyAttrib::init_type(), TexMatrixAttrib::init_type(), RenderModeAttrib::init_type(), MaterialAttrib::init_type(), LightAttrib::init_type(), FogAttrib::init_type(), DepthWriteAttrib::init_type(), DepthTestAttrib::init_type(), DepthOffsetAttrib::init_type(), CullFaceAttrib::init_type(), CullBinAttrib::init_type(), ColorWriteAttrib::init_type(), ColorScaleAttrib::init_type(), ColorBlendAttrib::init_type(), ColorAttrib::init_type(), ClipPlaneAttrib::init_type(), and AlphaTestAttrib::init_type().

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

Reimplemented in AlphaTestAttrib, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, FogAttrib, LightAttrib, MaterialAttrib, RenderModeAttrib, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, and TransparencyAttrib.

Definition at line 102 of file renderAttrib.cxx.

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

Implemented in AlphaTestAttrib, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CullBinAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, FogAttrib, LightAttrib, MaterialAttrib, RenderModeAttrib, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, and TransparencyAttrib.

Definition at line 238 of file renderAttrib.cxx.

References NULL.

TypedWritable* RenderAttrib::new_from_bam RenderAttrib *  attrib,
BamReader manager
[static, protected]
 

void RenderAttrib::operator= const RenderAttrib &  copy  )  [private]
 

Definition at line 60 of file renderAttrib.cxx.

void RenderAttrib::output_comparefunc ostream &  out,
PandaCompareFunc  fn
const [protected]
 

Definition at line 116 of file renderAttrib.cxx.

References M_always.

Referenced by DepthTestAttrib::output(), and AlphaTestAttrib::output().

void RenderAttrib::write ostream &  out,
int  indent_level
const [virtual]
 

Definition at line 127 of file renderAttrib.cxx.

References indent().

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

Implements TypedWritableReferenceCount.

Reimplemented in AlphaTestAttrib, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CullBinAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, FogAttrib, LightAttrib, MaterialAttrib, RenderModeAttrib, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, and TransparencyAttrib.

Definition at line 249 of file renderAttrib.cxx.

References TypedWritable::write_datagram().

Referenced by TransparencyAttrib::write_datagram(), TextureAttrib::write_datagram(), TextureApplyAttrib::write_datagram(), TexMatrixAttrib::write_datagram(), RenderModeAttrib::write_datagram(), MaterialAttrib::write_datagram(), LightAttrib::write_datagram(), FogAttrib::write_datagram(), DepthWriteAttrib::write_datagram(), DepthTestAttrib::write_datagram(), DepthOffsetAttrib::write_datagram(), CullFaceAttrib::write_datagram(), CullBinAttrib::write_datagram(), ColorWriteAttrib::write_datagram(), ColorScaleAttrib::write_datagram(), ColorBlendAttrib::write_datagram(), ColorAttrib::write_datagram(), ClipPlaneAttrib::write_datagram(), and AlphaTestAttrib::write_datagram().


Member Data Documentation

PUBLISHED RenderAttrib::__pad0__
 

Reimplemented from TypedWritableReferenceCount.

Reimplemented in AlphaTestAttrib, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CullBinAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, FogAttrib, LightAttrib, MaterialAttrib, RenderModeAttrib, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, and TransparencyAttrib.

Definition at line 75 of file renderAttrib.h.

RenderAttrib::Attribs * RenderAttrib::_attribs = NULL [static, private]
 

Definition at line 23 of file renderAttrib.cxx.

Referenced by RenderAttrib(), and ~RenderAttrib().

Attribs::iterator RenderAttrib::_saved_entry [private]
 

Definition at line 102 of file renderAttrib.h.

Referenced by CPT(), RenderAttrib(), and ~RenderAttrib().

TypeHandle RenderAttrib::_type_handle [static, private]
 

Reimplemented from TypedWritableReferenceCount.

Reimplemented in AlphaTestAttrib, ClipPlaneAttrib, ColorAttrib, ColorBlendAttrib, ColorScaleAttrib, ColorWriteAttrib, CullBinAttrib, CullFaceAttrib, DepthOffsetAttrib, DepthTestAttrib, DepthWriteAttrib, FogAttrib, LightAttrib, MaterialAttrib, RenderModeAttrib, TexMatrixAttrib, TextureApplyAttrib, TextureAttrib, and TransparencyAttrib.

Definition at line 24 of file renderAttrib.cxx.


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