Open Inventor Reference
|
#include <Inventor/misc/SoChildList.h>
#include <Inventor/fields/SoFieldData.h>
#include <Inventor/nodes/SoSubNode.h>
#include <Inventor/fields/SoSFName.h>
#include <Inventor/nodes/SoNode.h>
#include <Inventor/nodekits/SoNodekitParts.h>
#include <Inventor/nodekits/SoSubKit.h>
#include <Inventor/SoNodeKitPath.h>
Go to the source code of this file.
Classes | |
class | SoBaseKit |
Base class for all node kits. More... | |
Macros | |
#define | SO_GET_PART(kitContainingPart, partName, partClassName) ((partClassName *) kitContainingPart->getPart( partName, TRUE )) |
Macro for getting at parts without doing type casting yourself: for example, the code: xf = (SoTransform *) myKit->getPart("transform", SoTransform::getClassTypeId(), TRUE); becomes: xf = SO_GET_PART( myKit, "transform", SoTransform );. | |
#define | SO_CHECK_PART(kitContainingPart, partName, partClassName) ((partClassName *) kitContainingPart->getPart( partName, FALSE )) |
#define | SO_GET_ANY_PART(kitContainingPart, partName, partClassName) |
#define | SO_CHECK_ANY_PART(kitContainingPart, partName, partClassName) |
#define SO_CHECK_ANY_PART | ( | kitContainingPart, | |
partName, | |||
partClassName | |||
) |
Definition at line 639 of file SoBaseKit.h.
#define SO_CHECK_PART | ( | kitContainingPart, | |
partName, | |||
partClassName | |||
) | ((partClassName *) kitContainingPart->getPart( partName, FALSE )) |
Definition at line 634 of file SoBaseKit.h.
#define SO_GET_ANY_PART | ( | kitContainingPart, | |
partName, | |||
partClassName | |||
) |
Definition at line 636 of file SoBaseKit.h.
#define SO_GET_PART | ( | kitContainingPart, | |
partName, | |||
partClassName | |||
) | ((partClassName *) kitContainingPart->getPart( partName, TRUE )) |
The macro SO_CHECK_PART will not build the part if it is not already in the kit, since it sends 'FALSE' as the 'makeIfNeeded' argument.
CAUTION: These macros will not work in the C-api, and nothing will be gained from making them. So, don't make them.
Definition at line 632 of file SoBaseKit.h.