A nodekit that is used for creating nodekit hierarchies.
SoSeparatorKit contains a
transform part, a
childList part, and a few others in its catalog. The
transform part (an
SoTransform node) affects all of the children in the
childList. Each of these children must
be an
SoSeparatorKit or from a class that is derived from
SoSeparatorKit (e.g.,
SoShapeKit and
SoWrapperKit). Since all members of the
childList are in turn
SoSeparatorKits, and each contains a
transform, these nested lists allow you to create a hierarchy of motion, in which each
transform affects
an entire subgraph of nodekits.
The other parts added to the catalog for the
SoSeparatorKit are
pickStyle,
appearance,
units and
texture2Transform. Furthermore, since
SoSeparator is derived from
SoBaseKit, it inherits the
callbackList part. This is a list of
SoCallback and/or
SoEventCallback nodes which enable
the
SoSeparatorKit to perform special callbacks whenever an action is applied to it.
By creating the
pickStyle part, a user can alter the pick style for the entire nodekit hierarchy. The
appearance part is an
SoAppearanceKit nodekit. Note that all
parts contained in the
SoAppearanceKit catalog can be accessed as if they were part of the
SoSeparatorKit. For example:
myMtl = mySepKit->getPart("material",TRUE)
and
mySepKit->setPart("material",myMtl)
See
SoBaseKit for further explanation.
(SoNodeKitListPart) childList
This part contains the children nodekits of this
SoSeparatorKit. This part is a
list part and can have multiple children. This part is
NULL by default, but is created automatically when the first child is added to the
childList. Also,
when asked to build a member of the
childList, the separatorKit will build an
SoShapeKit by default. So if the
childList part is NULL, and you call:
getPart("childList[0]", TRUE), the separator kit will create the
childList and add an
SoShapeKit as the new element in the
list.