#include <assert.h>
#include <Inventor/SbBasic.h>
#include <Inventor/SbString.h>
#include <Inventor/SoType.h>
#include <Inventor/Qt/SoQtBasic.h>
Go to the source code of this file.
Classes | |
class | SoQtObject |
Defines | |
#define | SOQT_OBJECT_ABSTRACT_HEADER(classname, parentname) |
#define | SOQT_OBJECT_ABSTRACT_SOURCE(classname) |
#define | SOQT_OBJECT_HEADER(classname, parentname) |
#define | SOQT_OBJECT_SOURCE(classname) |
#define | SOQT_STATIC_SOTYPE_INIT = SoType::badType() |
#define | SOQT_SUN_CC_4_0_SOTYPE_INIT_BUG 0 |
#define SOQT_OBJECT_ABSTRACT_HEADER | ( | classname, | |||
parentname | ) |
public: \ static void initClass(void); \ static SoType getClassTypeId(void); \ virtual SoType getTypeId(void) const /* = 0 (see comment above) */; \ private: \ typedef parentname inherited; \ static SoType classTypeId
Definition at line 79 of file SoQtObject.h.
#define SOQT_OBJECT_ABSTRACT_SOURCE | ( | classname | ) |
void classname::initClass(void) { \ assert(classname::classTypeId == SoType::badType()); \ classname::classTypeId = \ SoType::createType(inherited::getClassTypeId(), \ SO__QUOTE(classname)); \ } \ SoType classname::getClassTypeId(void) { \ return classname::classTypeId; \ } \ SoType classname::getTypeId(void) const { \ return classname::classTypeId; \ } \ SoType classname::classTypeId SOQT_STATIC_SOTYPE_INIT
Definition at line 98 of file SoQtObject.h.
#define SOQT_OBJECT_HEADER | ( | classname, | |||
parentname | ) |
public: \ static void initClass(void); \ static SoType getClassTypeId(void); \ virtual SoType getTypeId(void) const; \ static void * createInstance(void); \ private: \ typedef parentname inherited; \ static SoType classTypeId
Definition at line 88 of file SoQtObject.h.
#define SOQT_OBJECT_SOURCE | ( | classname | ) |
void classname::initClass(void) { \ assert(classname::classTypeId == SoType::badType()); \ classname::classTypeId = \ SoType::createType(inherited::getClassTypeId(), \ SO__QUOTE(classname), \ classname::createInstance); \ } \ SoType classname::getClassTypeId(void) { \ return classname::classTypeId; \ } \ SoType classname::getTypeId(void) const { \ return classname::classTypeId; \ } \ void * classname::createInstance(void) { \ assert(classname::classTypeId != SoType::badType()); \ return (void *) new classname; \ } \ SoType classname::classTypeId SOQT_STATIC_SOTYPE_INIT
Definition at line 113 of file SoQtObject.h.
#define SOQT_STATIC_SOTYPE_INIT = SoType::badType() |
Definition at line 68 of file SoQtObject.h.
#define SOQT_SUN_CC_4_0_SOTYPE_INIT_BUG 0 |
Definition at line 63 of file SoQtObject.h.