25#ifndef _SO_TYPED_OBJECT_
26#define _SO_TYPED_OBJECT_
28#include <Inventor/SoType.h>
90 template<
typename TypedObjectClass>
93 return isOfType( TypedObjectClass::getClassTypeId() );
98 {
return s_classTypeId; }
102 static void initClass();
103 static void exitClass();
105 static void checkDatabase(
const char*
className,
void* thisPtr,
SoType classType,
SoType& classTypeId );
129 static SoType s_classTypeId;
130 static bool s_isFirstTime;
131 static bool s_checkDatabase;
Character string stored in a hash table.
Stores runtime type information.
SbBool isDerivedFrom(const SoType &t) const
Returns TRUE if the type is derived from type t.
Base class for object storing runtime type information.
SbBool isOfType() const
Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
virtual SoType getTypeId() const =0
Returns the type identifier for a specific instance.
SbBool isOfType(const SoType &type) const
Returns TRUE if this object is of the type specified in type or is derived from that type.
static SoType getClassTypeId()
Returns the type identifier for this class.