Class Link


  • public class Link
    extends Leaf
    A Link leaf node allows an application to reference a shared graph, rooted by a SharedGroup node, from within a branch graph or another shared graph. Any number of Link nodes can refer to the same SharedGroup node.
    • Field Detail

      • ALLOW_SHARED_GROUP_READ

        public static final int ALLOW_SHARED_GROUP_READ
        For Link nodes, specifies that the node allows access to its object's SharedGroup information.
        See Also:
        Constant Field Values
      • ALLOW_SHARED_GROUP_WRITE

        public static final int ALLOW_SHARED_GROUP_WRITE
        For Link nodes, specifies that the node allows writing its object's SharedGroup information.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Link

        public Link()
        Constructs a Link node object that does not yet point to a SharedGroup node.
      • Link

        public Link​(SharedGroup sharedGroup)
        Constructs a Link node object that points to the specified SharedGroup node.
        Parameters:
        sharedGroup - the SharedGroup node
    • Method Detail

      • setSharedGroup

        public void setSharedGroup​(SharedGroup sharedGroup)
        Sets the node's SharedGroup reference.
        Parameters:
        sharedGroup - the SharedGroup node to reference
        Throws:
        CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph
      • getSharedGroup

        public SharedGroup getSharedGroup()
        Retrieves the node's SharedGroup reference.
        Returns:
        the SharedGroup node
        Throws:
        CapabilityNotSetException - if appropriate capability is not set and this object is part of live or compiled scene graph