Class SoNodeKitDetail


  • public class SoNodeKitDetail
    extends SoDetail
    Stores detail information about a nodekit. This class contains detail information about a nodekit. This consists of a reference to the nodekit, a reference to the child part within the nodekit, and the name of the child part.

    During a pick action, each nodekit along the picked path creates its own SoNodeKitDetail. Together, the full set of details gives you a complete picture of the pickpath.

    Since nodekits have hidden children (see the reference page for SoBaseKit), a regular SoPath ends at the topmost nodekit in the path. If you cast the pickpath from an SoPath to an SoNodeKitPath, you can then retrieve all nodekits along the path and examine their corresponding details.

    See Also:
    SoBaseKit SoNodeKitPath, SoDetail, SoPickedPoint
    • Constructor Detail

      • SoNodeKitDetail

        public SoNodeKitDetail()
        Constructor.
    • Method Detail

      • setNodeKit

        public void setNodeKit​(SoBaseKit theNodeKit)
      • getPartName

        public java.lang.String getPartName()
        Returns the name of the part selected within the nodekit that created this detail. (See SoRayPickAction in the ACTIONS section of the SoBaseKit reference page for more information).
      • copy

        public SoDetail copy()
        Returns an instance that is a copy of this instance. The caller is responsible for deleting the copy when it is no longer needed.
        Overrides:
        copy in class SoDetail
      • getNodeKit

        public SoBaseKit getNodeKit()
        Returns a reference to the nodekit that created this detail.
      • setPartName

        public void setPartName​(java.lang.String theName)
      • getPart

        public SoNode getPart()
        Returns a reference to the part selected within the nodekit that created this detail.
      • setPart

        public void setPart​(SoNode thePart)