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:
  • Constructor Details

    • SoNodeKitDetail

      public SoNodeKitDetail()
      Constructor.
  • Method Details

    • setNodeKit

      public void setNodeKit(SoBaseKit theNodeKit)
    • getPartName

      public 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(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)