CAM API
  • CAM API
v20.0.1
Search Results for

    Show / Hide Table of Contents

    Interface ICamApiViewInteractionHandler

    Implemented by the caller and registered on a visual object to receive hotspot drag events from the viewport. The kernel does the picking and projects the cursor onto the ground (Z=0) plane; the handler reacts (e.g. changes a parameter and rebuilds the object's geometry via AddMesh). Callbacks run on the viewport's GUI thread; the handler may call back into the visual object (Clear/AddMesh) - those are serialized internally.

    Namespace: CAMAPI.ViewPort
    Assembly: CAMAPI.ViewPort.dll
    Syntax
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    [Guid("5873FC01-D798-4314-9A76-5F43D3C8DA0A")]
    public interface ICamApiViewInteractionHandler

    Methods

    OnHotSpotDrag(int, TST3DPoint, TST3DPoint, TST3DPoint)

    Declaration
    void OnHotSpotDrag(int SpotId, TST3DPoint P, TST3DPoint RayOrigin, TST3DPoint RayDir)
    Parameters
    Type Name Description
    int SpotId
    TST3DPoint P
    TST3DPoint RayOrigin
    TST3DPoint RayDir

    OnHotSpotDragEnd(int)

    Declaration
    void OnHotSpotDragEnd(int SpotId)
    Parameters
    Type Name Description
    int SpotId

    OnHotSpotDragStart(int)

    Declaration
    void OnHotSpotDragStart(int SpotId)
    Parameters
    Type Name Description
    int SpotId

    OnSelectedChanged(bool)

    Declaration
    void OnSelectedChanged(bool Selected)
    Parameters
    Type Name Description
    bool Selected
    In this article