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

GeomNodeContext Class Reference

This is a special class object, similar to a TextureContext, that holds all the information returned by a particular GSG to cache the rendering information associated with one or more GeomNodes. More...

#include <geomNodeContext.h>

Inheritance diagram for GeomNodeContext:

SavedContext TypedObject CRGeomNodeContext DXGeomNodeContext7 DXGeomNodeContext8 GLGeomNodeContext List of all members.

Public Member Functions

 GeomNodeContext (GeomNode *node)
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.


Public Attributes

GeomNode_node

Static Private Attributes

TypeHandle _type_handle

Detailed Description

This is a special class object, similar to a TextureContext, that holds all the information returned by a particular GSG to cache the rendering information associated with one or more GeomNodes.

This is similar to, but different from, a Geom context, which is associated with the containing Geom class; a GSG might prefer to associate data with either the Geom or the GeomNode or both.

This allows the GSG to precompute some information necessary for drawing the Geoms as quickly as possible and reuse that information across multiple frames. Typically, only static Geoms (e.g. nonindexed) will be assigned GeomContexts.

Definition at line 64 of file geomNodeContext.h.


Constructor & Destructor Documentation

GeomNodeContext::GeomNodeContext GeomNode node  )  [inline]
 

Definition at line 31 of file geomNodeContext.I.


Member Function Documentation

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

Reimplemented from SavedContext.

Reimplemented in CRGeomNodeContext, DXGeomNodeContext7, DXGeomNodeContext8, and GLGeomNodeContext.

Definition at line 85 of file geomNodeContext.h.

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

Reimplemented from SavedContext.

Reimplemented in CRGeomNodeContext, DXGeomNodeContext7, DXGeomNodeContext8, and GLGeomNodeContext.

Definition at line 74 of file geomNodeContext.h.

Referenced by GLGeomNodeContext::init_type(), DXGeomNodeContext8::init_type(), DXGeomNodeContext7::init_type(), and CRGeomNodeContext::init_type().

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

Reimplemented from SavedContext.

Reimplemented in CRGeomNodeContext, DXGeomNodeContext7, DXGeomNodeContext8, and GLGeomNodeContext.

Definition at line 82 of file geomNodeContext.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 GeomNodeContext::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 SavedContext.

Reimplemented in CRGeomNodeContext, DXGeomNodeContext7, DXGeomNodeContext8, and GLGeomNodeContext.

Definition at line 77 of file geomNodeContext.h.

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().


Member Data Documentation

GeomNode* GeomNodeContext::_node
 

Definition at line 71 of file geomNodeContext.h.

TypeHandle GeomNodeContext::_type_handle [static, private]
 

Reimplemented from SavedContext.

Reimplemented in CRGeomNodeContext, DXGeomNodeContext7, DXGeomNodeContext8, and GLGeomNodeContext.

Definition at line 24 of file geomNodeContext.cxx.


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