#include <geomContext.h>
Inheritance diagram for GeomContext:
Public Member Functions | |
GeomContext (Geom *geom) | |
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 | |
Geom * | _geom |
Static Private Attributes | |
TypeHandle | _type_handle |
This is similar to, but different from, a GeomNode context, which is associated with the containing GeomNode 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 geomContext.h.
|
Definition at line 31 of file geomContext.I. |
|
Reimplemented from SavedContext. Definition at line 85 of file geomContext.h. |
|
Reimplemented from SavedContext. Definition at line 74 of file geomContext.h. |
|
Reimplemented from SavedContext. Definition at line 82 of file geomContext.h. |
|
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. |
|
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. Definition at line 77 of file geomContext.h. |
|
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(). |
|
|
Definition at line 71 of file geomContext.h. |
|
Reimplemented from SavedContext. Definition at line 24 of file geomContext.cxx. |