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

RenderEffects Class Reference

#include <renderEffects.h>

Inheritance diagram for RenderEffects:

TypedWritableReferenceCount TypedWritable ReferenceCount TypedObject List of all members.

Public Member Functions

virtual ~RenderEffects ()
bool operator< (const RenderEffects &other) const
bool safe_to_transform () const
bool safe_to_combine () const
 CPT (RenderEffects) xform(const LMatrix4f &mat) const
INLINE int get_num_effects () const
INLINE const RenderEffectget_effect (int n) const
int find_effect (TypeHandle type) const
 CPT (RenderEffects) add_effect(const RenderEffect *effect) const
 CPT (RenderEffects) remove_effect(TypeHandle type) const
const RenderEffectget_effect (TypeHandle type) const
void output (ostream &out) const
void write (ostream &out, int indent_level) const
INLINE const BillboardEffectget_billboard () const
INLINE bool has_decal () const
INLINE const CompassEffectget_compass () const
INLINE bool has_show_bounds () const
virtual void write_datagram (BamWriter *manager, Datagram &dg)
virtual int complete_pointers (TypedWritable **plist, BamReader *manager)
virtual void finalize ()
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

 CPT (RenderEffects) make_empty()
 CPT (RenderEffects) make(const RenderEffect *effect)
 CPT (RenderEffects) make(const RenderEffect *effect1
 CPT (RenderEffects) make(const RenderEffect *effect1
 CPT (RenderEffects) make(const RenderEffect *effect1
void register_with_read_factory ()
TypedWritablechange_this (TypedWritable *old_ptr, BamReader *manager)
TypeHandle get_class_type ()
void init_type ()

Public Attributes

PUBLISHED __pad0__: INLINE bool is_empty() const
const RenderEffecteffect2
const RenderEffecteffect2
const RenderEffect const RenderEffecteffect3
const RenderEffecteffect2
const RenderEffect const RenderEffecteffect3
const RenderEffect const RenderEffect
const RenderEffect
effect4

Protected Member Functions

 RenderEffects ()
void fillin (DatagramIterator &scan, BamReader *manager)

Static Protected Member Functions

TypedWritablemake_from_bam (const FactoryParams &params)

Private Types

typedef pset< const RenderEffects *,
IndirectLess< RenderEffects > > 
States
typedef ov_set< EffectEffects
enum  Flags {
  F_checked_billboard = 0x0001, F_checked_decal = 0x0002, F_has_decal = 0x0004, F_checked_show_bounds = 0x0008,
  F_has_show_bounds = 0x0010, F_checked_compass = 0x0020
}

Private Member Functions

 RenderEffects (const RenderEffects &copy)
void operator= (const RenderEffects &copy)
void determine_billboard ()
void determine_decal ()
void determine_compass ()
void determine_show_bounds ()

Static Private Member Functions

 CPT (RenderEffects) return_new(RenderEffects *state)
 CPT (RenderEffects) _empty_state

Private Attributes

States::iterator _saved_entry
Effects _effects
const BillboardEffect_billboard
const CompassEffect_compass
short _flags

Static Private Attributes

States _states
TypeHandle _type_handle

Member Typedef Documentation

typedef ov_set<Effect> RenderEffects::Effects [private]
 

Definition at line 129 of file renderEffects.h.

typedef pset<const RenderEffects *, IndirectLess<RenderEffects> > RenderEffects::States [private]
 

Definition at line 104 of file renderEffects.h.


Member Enumeration Documentation

enum RenderEffects::Flags [private]
 

Enumeration values:
F_checked_billboard 
F_checked_decal 
F_has_decal 
F_checked_show_bounds 
F_has_show_bounds 
F_checked_compass 

Definition at line 137 of file renderEffects.h.


Constructor & Destructor Documentation

RenderEffects::RenderEffects  )  [protected]
 

Definition at line 43 of file renderEffects.cxx.

References _flags, _saved_entry, and _states.

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

Definition at line 54 of file renderEffects.cxx.

RenderEffects::~RenderEffects  )  [virtual]
 

Definition at line 75 of file renderEffects.cxx.

References _saved_entry, and _states.


Member Function Documentation

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

Definition at line 568 of file renderEffects.cxx.

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

Referenced by make_from_bam().

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

Reimplemented from TypedWritable.

Definition at line 534 of file renderEffects.cxx.

References _effects, RenderEffects::Effect::_type, TypedWritable::complete_pointers(), DCAST, NULL, and ov_set< Effect >::sort().

RenderEffects::CPT RenderEffects   )  [static, private]
 

RenderEffects::CPT RenderEffects   )  [static, private]
 

RenderEffects::CPT RenderEffects   )  const
 

RenderEffects::CPT RenderEffects   )  const
 

RenderEffects::CPT RenderEffects   )  const [static]
 

RenderEffects::CPT RenderEffects   )  const [static]
 

RenderEffects::CPT RenderEffects   )  const [static]
 

RenderEffects::CPT RenderEffects   )  const [static]
 

RenderEffects::CPT RenderEffects   )  [static]
 

RenderEffects::CPT RenderEffects   )  const
 

Referenced by change_this().

void RenderEffects::determine_billboard  )  [private]
 

Definition at line 441 of file renderEffects.cxx.

References _billboard, _flags, DCAST, F_checked_billboard, BillboardEffect::get_class_type(), get_effect(), and NULL.

void RenderEffects::determine_compass  )  [private]
 

Definition at line 470 of file renderEffects.cxx.

References _compass, _flags, DCAST, F_checked_compass, CompassEffect::get_class_type(), get_effect(), and NULL.

void RenderEffects::determine_decal  )  [private]
 

Definition at line 456 of file renderEffects.cxx.

References _flags, F_checked_decal, F_has_decal, DecalEffect::get_class_type(), get_effect(), and NULL.

void RenderEffects::determine_show_bounds  )  [private]
 

Definition at line 485 of file renderEffects.cxx.

References _flags, F_checked_show_bounds, F_has_show_bounds, ShowBoundsEffect::get_class_type(), get_effect(), and NULL.

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

Reimplemented from TypedWritable.

Definition at line 637 of file renderEffects.cxx.

References _effects, TypedWritable::fillin(), DatagramIterator::get_uint16(), and BamReader::read_pointer().

Referenced by make_from_bam().

void RenderEffects::finalize  )  [virtual]
 

Reimplemented from TypedWritable.

Definition at line 596 of file renderEffects.cxx.

References ReferenceCount::unref().

int RenderEffects::find_effect TypeHandle  type  )  const
 

Definition at line 182 of file renderEffects.cxx.

References _effects, and type.

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

Reimplemented from TypedWritableReferenceCount.

Definition at line 170 of file renderEffects.h.

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

INLINE const BillboardEffect* RenderEffects::get_billboard  )  const
 

Referenced by CullTraverserData::apply_transform_and_state().

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

Reimplemented from ReferenceCount.

Definition at line 159 of file renderEffects.h.

Referenced by register_with_read_factory().

INLINE const CompassEffect* RenderEffects::get_compass  )  const
 

Referenced by CullTraverserData::apply_transform_and_state().

const RenderEffect * RenderEffects::get_effect TypeHandle  type  )  const
 

Definition at line 350 of file renderEffects.cxx.

References _effects, NULL, and type.

INLINE const RenderEffect* RenderEffects::get_effect int  n  )  const
 

Referenced by determine_billboard(), determine_compass(), determine_decal(), and determine_show_bounds().

INLINE int RenderEffects::get_num_effects  )  const
 

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

Reimplemented from TypedWritableReferenceCount.

Definition at line 167 of file renderEffects.h.

References ReferenceCount::get_class_type().

INLINE bool RenderEffects::has_decal  )  const
 

Referenced by CullTraverser::traverse_below().

INLINE bool RenderEffects::has_show_bounds  )  const
 

Referenced by CullTraverser::r_get_decals(), and CullTraverser::traverse().

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

Reimplemented from TypedWritableReferenceCount.

Definition at line 162 of file renderEffects.h.

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

Referenced by init_libpgraph().

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

Definition at line 617 of file renderEffects.cxx.

References change_this(), fillin(), params, parse_params(), and BamReader::register_change_this().

Referenced by register_with_read_factory().

bool RenderEffects::operator< const RenderEffects &  other  )  const
 

Definition at line 96 of file renderEffects.cxx.

References _effects.

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

Definition at line 64 of file renderEffects.cxx.

void RenderEffects::output ostream &  out  )  const
 

Definition at line 365 of file renderEffects.cxx.

References _effects.

Referenced by operator<<().

void RenderEffects::register_with_read_factory  )  [static]
 

Definition at line 500 of file renderEffects.cxx.

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

Referenced by init_libpgraph().

bool RenderEffects::safe_to_combine  )  const
 

Definition at line 133 of file renderEffects.cxx.

References _effects.

Referenced by SceneGraphReducer::consider_child(), and SceneGraphReducer::flatten_siblings().

bool RenderEffects::safe_to_transform  )  const
 

Definition at line 112 of file renderEffects.cxx.

References _effects.

Referenced by SceneGraphReducer::r_apply_attribs().

void RenderEffects::write ostream &  out,
int  indent_level
const
 

Definition at line 388 of file renderEffects.cxx.

References _effects, and indent().

Referenced by SceneGraphReducer::r_apply_attribs().

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

Implements TypedWritableReferenceCount.

Definition at line 511 of file renderEffects.cxx.

References _effects, Datagram::add_uint16(), PN_uint16, TypedWritable::write_datagram(), and BamWriter::write_pointer().


Member Data Documentation

PUBLISHED RenderEffects::__pad0__
 

Reimplemented from TypedWritableReferenceCount.

Definition at line 64 of file renderEffects.h.

const BillboardEffect* RenderEffects::_billboard [private]
 

Definition at line 134 of file renderEffects.h.

Referenced by determine_billboard().

const CompassEffect* RenderEffects::_compass [private]
 

Definition at line 135 of file renderEffects.h.

Referenced by determine_compass().

Effects RenderEffects::_effects [private]
 

Definition at line 130 of file renderEffects.h.

Referenced by complete_pointers(), CPT(), fillin(), find_effect(), get_effect(), operator<(), output(), safe_to_combine(), safe_to_transform(), write(), and write_datagram().

short RenderEffects::_flags [private]
 

Definition at line 145 of file renderEffects.h.

Referenced by determine_billboard(), determine_compass(), determine_decal(), determine_show_bounds(), and RenderEffects().

States::iterator RenderEffects::_saved_entry [private]
 

Definition at line 111 of file renderEffects.h.

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

RenderEffects::States RenderEffects::_states [static, private]
 

Definition at line 31 of file renderEffects.cxx.

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

TypeHandle RenderEffects::_type_handle [static, private]
 

Reimplemented from TypedWritableReferenceCount.

Definition at line 173 of file renderEffects.h.

const RenderEffect* RenderEffects::effect2
 

Definition at line 78 of file renderEffects.h.

const RenderEffect* RenderEffects::effect2
 

Definition at line 75 of file renderEffects.h.

const RenderEffect* RenderEffects::effect2
 

Definition at line 73 of file renderEffects.h.

const RenderEffect const RenderEffect* RenderEffects::effect3
 

Definition at line 78 of file renderEffects.h.

const RenderEffect const RenderEffect* RenderEffects::effect3
 

Definition at line 75 of file renderEffects.h.

const RenderEffect const RenderEffect const RenderEffect* RenderEffects::effect4
 

Definition at line 78 of file renderEffects.h.


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