Inventor/stats/SoSubPerfCounter.h File Reference
#include <Inventor/SoType.h>
Go to the source code of this file.
Define Documentation
Value:public: \
static void initClass(); \
static void exitClass(); \
static SoType getClassTypeId(); \
virtual SoType getTypeId() const; \
private: \
static SoType m_classTypeId;
#define SO_PERF_COUNTER_SOURCE |
( |
className, |
|
|
inheritClass |
|
) |
|
Value:SoType className::m_classTypeId; \
void className::initClass() { \
if (m_classTypeId.isBad()) { \
if (inheritClass::getClassTypeId().isBad() ) \
inheritClass::initClass(); \
m_classTypeId = SoType::createType(inheritClass::getClassTypeId(), #className); \
m_classTypeId.makeInternal(); \
} \
} \
void className::exitClass() { \
if (m_classTypeId != SoType::badType()) { \
SoType::removeType(m_classTypeId.getName()); \
m_classTypeId = SoType::badType(); \
} \
} \
SoType className::getClassTypeId() { return className::m_classTypeId; } \
SoType className::getTypeId() const { return className::m_classTypeId; }