Interface PickedObjectFactory


  • public interface PickedObjectFactory
    PickedObjectFactory provides an interface for lazily creating PickedObject instances.

    This interface is used by PickSupport to associate a collection of picked objects with a range of pick colors. PickSupport uses this factory to delay PickedObject construction until a matching pick color is identified. This eliminates the overhead of creating and managing a large collection of PickedObject instances when only a few may actually be picked.

    • Method Detail

      • createPickedObject

        PickedObject createPickedObject​(int colorCode)
        Create a picked object from the specified pick color code.
        Parameters:
        colorCode - the pick color code to associate with the picked object.
        Returns:
        the new picked object.