Open Inventor Reference
SoBaseKit.h File Reference

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)
 

Macro Definition Documentation

◆ SO_CHECK_ANY_PART

#define SO_CHECK_ANY_PART (   kitContainingPart,
  partName,
  partClassName 
)
Value:
((partClassName *) kitContainingPart->getAnyPart( partName, FALSE, \
#define FALSE
Definition SbBasic.h:79

Definition at line 639 of file SoBaseKit.h.

◆ SO_CHECK_PART

#define SO_CHECK_PART (   kitContainingPart,
  partName,
  partClassName 
)     ((partClassName *) kitContainingPart->getPart( partName, FALSE ))

Definition at line 634 of file SoBaseKit.h.

◆ SO_GET_ANY_PART

#define SO_GET_ANY_PART (   kitContainingPart,
  partName,
  partClassName 
)
Value:
((partClassName *) kitContainingPart->getAnyPart( partName, TRUE, \
#define TRUE
Definition SbBasic.h:76

Definition at line 636 of file SoBaseKit.h.

◆ SO_GET_PART

#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.