ProtoTwin API
    Preparing search index...

    Class Tool<T>Abstract

    Base class for all tools.

    Type Parameters

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Called when the user requests to execute the tool.

      Parameters

      • object: T

        The context argument, which can be used by the tool.

      Returns void

    • Creates a handle (weak reference) to a trackable object.

      Type Parameters

      Parameters

      • type: TrackableType<T>

        The type of object that is to be referenced.

      • value: null | T = null

        The object that is initially referenced by the handle.

      Returns Handle<T>

      A handle to a trackable object.

    • Whether the tool should be displayed to the user.

      Parameters

      • object: T

        The argument that would be passed to the tool.

      Returns boolean

      True if the tool should be displayed, false otherwise.