#include <Inventor/SoType.h>
Go to the source code of this file.
Defines | |
#define | SO_PERF_COUNTER_HEADER(className) |
#define | SO_PERF_COUNTER_SOURCE(className, inheritClass) |
#define SO_PERF_COUNTER_HEADER | ( | className | ) |
#define SO_PERF_COUNTER_SOURCE | ( | className, | |||
inheritClass | ) |
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; }