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

RenderEffects::Effect Class Reference

List of all members.

Public Member Functions

 Effect (const RenderEffect *effect)
 Effect ()
 This constructor is only used when reading the RenderEffects from a bam file.

 Effect (TypeHandle type)
 This constructor makes an invalid Effect with no RenderEffect pointer; its purpose is just to make an object we can use to look up a particular type in the Effect set.

 Effect (const Effect &copy)
void operator= (const Effect &copy)
bool operator< (const Effect &other) const
 This is used by the Effects set to uniquify RenderEffects by type.

int compare_to (const Effect &other) const
 Provides an indication of whether a particular effect is equivalent to another one, for purposes of generating unique RenderEffectss.


Public Attributes

TypeHandle _type
ConstPointerTo< RenderEffect_effect

Constructor & Destructor Documentation

RenderEffects::Effect::Effect const RenderEffect effect  )  [inline]
 

Definition at line 31 of file renderEffects.I.

References INLINE.

RenderEffects::Effect::Effect  )  [inline]
 

This constructor is only used when reading the RenderEffects from a bam file.

At this point, the effect pointer is unknown.

Definition at line 50 of file renderEffects.I.

References INLINE, and NULL.

RenderEffects::Effect::Effect TypeHandle  type  )  [inline]
 

This constructor makes an invalid Effect with no RenderEffect pointer; its purpose is just to make an object we can use to look up a particular type in the Effect set.

Definition at line 68 of file renderEffects.I.

RenderEffects::Effect::Effect const Effect &  copy  )  [inline]
 

Definition at line 82 of file renderEffects.I.

References _type, and INLINE.


Member Function Documentation

int RenderEffects::Effect::compare_to const Effect &  other  )  const [inline]
 

Provides an indication of whether a particular effect is equivalent to another one, for purposes of generating unique RenderEffectss.

This should compare all properties of the Effect, but it is important that the type is compared first, to be consistent with the ordering defined by operator <.

Definition at line 139 of file renderEffects.I.

References nassertr, and NULL.

bool RenderEffects::Effect::operator< const Effect &  other  )  const [inline]
 

This is used by the Effects set to uniquify RenderEffects by type.

Only one RenderEffect of a given type is allowed in the set. This ordering must also match the ordering reported by compare_to().

Definition at line 116 of file renderEffects.I.

References INLINE.

void RenderEffects::Effect::operator= const Effect &  copy  )  [inline]
 

Definition at line 96 of file renderEffects.I.

References _effect, _type, TypeHandle::get_index(), and INLINE.


Member Data Documentation

ConstPointerTo< RenderEffect > RenderEffects::Effect::_effect
 

Definition at line 141 of file renderEffects.h.

Referenced by RenderEffects::operator<(), operator=(), RenderEffects::return_new(), and RenderEffects::safe_to_transform().

TypeHandle RenderEffects::Effect::_type
 

Definition at line 140 of file renderEffects.h.

Referenced by Effect(), and operator=().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:54:42 2003 for Panda by doxygen1.3