This node class is very similar to
SoGroup with the exception that it specifies restrictions on the type of children that it allows. It is used by nodekits to restrict child types within
list parts (see the reference page
for
SoBaseKit).
By default, any kind of child may be added. Methods of this class allow you to restrict the type of allowable children, and to lock down the types so that this type list may no longer be altered.
Inside
the
SoNodeKitListPart is a
container node, which in turn contains the
children. The
container node is a hidden child, and the type of node used may be set with
setContainerType(). In this way, you can make the nodekitlist behave like a group, a separator, or any
other subclass of group. The
container is not accessible so that the nodekitlist may retain control over what kinds of children are added.