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

Configurable Class Reference

An object that has data or parameters that are set less frequently (at least occasionally) than every frame. More...

#include <configurable.h>

Inheritance diagram for Configurable:

TypedObject Shader FrustumShader OutlineShader SpheretexShader CasterShader ProjtexShader SpheretexHighlighter PlanarReflector ProjtexShadower SpheretexReflector SpotlightShader List of all members.

Public Member Functions

 Configurable (void)
virtual void config (void)
void check_config () const
bool is_dirty (void) const
void make_dirty (void)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()
int get_type_index () const
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.

bool is_of_type (TypeHandle handle) const
 Returns true if the current object is or derives from the indicated type.

bool is_exact_type (TypeHandle handle) const
 Returns true if the current object is the indicated type exactly.


Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()
 This function is declared non-inline to work around a compiler bug in g++ 2.96.


Private Attributes

bool _dirty

Static Private Attributes

TypeHandle _type_handle

Detailed Description

An object that has data or parameters that are set less frequently (at least occasionally) than every frame.

We can cache the configuration info by by using the "dirty" flag.

Definition at line 53 of file configurable.h.


Constructor & Destructor Documentation

Configurable::Configurable void   )  [inline]
 

Definition at line 56 of file configurable.h.


Member Function Documentation

void Configurable::check_config  )  const [inline]
 

Definition at line 58 of file configurable.h.

References INLINE.

virtual void Configurable::config void   )  [inline, virtual]
 

Reimplemented in OutlineShader, ProjtexShader, SpheretexShader, and SpotlightShader.

Definition at line 57 of file configurable.h.

References INLINE.

Referenced by Shader::Visualize::Flush(), OutlineShader::OutlineShader(), ProjtexShader::ProjtexShader(), and SpheretexShader::SpheretexShader().

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

Implements TypedObject.

Reimplemented in CasterShader, OutlineShader, PlanarReflector, ProjtexShader, ProjtexShadower, Shader, SpheretexHighlighter, SpheretexReflector, SpheretexShader, and SpotlightShader.

Definition at line 90 of file configurable.h.

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

Reimplemented from TypedObject.

Reimplemented in CasterShader, OutlineShader, PlanarReflector, ProjtexShader, ProjtexShadower, Shader, FrustumShader, SpheretexHighlighter, SpheretexReflector, SpheretexShader, and SpotlightShader.

Definition at line 79 of file configurable.h.

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

Implements TypedObject.

Reimplemented in CasterShader, OutlineShader, PlanarReflector, ProjtexShader, ProjtexShadower, Shader, FrustumShader, SpheretexHighlighter, SpheretexReflector, SpheretexShader, and SpotlightShader.

Definition at line 87 of file configurable.h.

int TypedObject::get_type_index  )  const [inline, inherited]
 

Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.

This is equivalent to get_type().get_index().

Definition at line 71 of file typedObject.I.

References TypeHandle::get_name(), TypedObject::get_type(), and INLINE.

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

This function is declared non-inline to work around a compiler bug in g++ 2.96.

Making it inline seems to cause problems in the optimizer.

Reimplemented from TypedObject.

Reimplemented in CasterShader, OutlineShader, PlanarReflector, ProjtexShader, ProjtexShadower, Shader, FrustumShader, SpheretexHighlighter, SpheretexReflector, SpheretexShader, and SpotlightShader.

Definition at line 82 of file configurable.h.

bool Configurable::is_dirty void   )  const [inline]
 

Definition at line 70 of file configurable.h.

Referenced by Shader::Visualize::Flush().

bool TypedObject::is_exact_type TypeHandle  handle  )  const [inline, inherited]
 

Returns true if the current object is the indicated type exactly.

Definition at line 101 of file typedObject.I.

Referenced by PT(), and CollisionNode::xform().

bool TypedObject::is_of_type TypeHandle  handle  )  const [inline, inherited]
 

Returns true if the current object is or derives from the indicated type.

Definition at line 86 of file typedObject.I.

Referenced by EggMaterialCollection::collapse_equivalent_materials(), EggTextureCollection::collapse_equivalent_textures(), DeferredNodeProperty::compose(), AnimBundleMaker::create_s_channel(), CharacterMaker::create_slider(), ProjectionScreen::cull_callback(), DataNode::define_output(), EggNode::determine_draw_order(), CharacterMaker::egg_to_index(), EggGroupUniquifier::EggGroupUniquifier(), EggPoolUniquifier::EggPoolUniquifier(), EggGroupNode::find_textures(), StaticTextFont::get_glyph(), EggMaterialCollection::insert_materials(), EggTextureCollection::insert_textures(), CharacterJoint::make_copy(), PT(), EggGroupNode::r_flatten_transforms(), EggGroupNode::r_transform_vertices(), EggGroupNode::recompute_polygon_normals(), CollisionLevelState::reserve(), PandaFramework::reset_frame_rate(), PandaFramework::set_texture(), EggGroupNode::steal_children(), and DataGraphTraverser::traverse().

void Configurable::make_dirty void   )  [inline]
 

Definition at line 71 of file configurable.h.

Referenced by FrustumShader::add_frustum(), and Shader::set_viz().


Member Data Documentation

bool Configurable::_dirty [private]
 

Definition at line 75 of file configurable.h.

TypeHandle Configurable::_type_handle [static, private]
 

Reimplemented from TypedObject.

Reimplemented in CasterShader, OutlineShader, PlanarReflector, ProjtexShader, ProjtexShadower, Shader, FrustumShader, SpheretexHighlighter, SpheretexReflector, SpheretexShader, and SpotlightShader.

Definition at line 25 of file configurable.cxx.


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