CAM API
  • CAM API
v20.0.1
Search Results for

    Show / Hide Table of Contents

    Interface ICamApiInteractiveVO

    Interactivity of a visual object (selection, hotspots). Fetch via QueryInterface from ICamApiVisualObject; non-interactive objects (e.g. a gizmo) return nil.

    Namespace: CAMAPI.ViewPort
    Assembly: CAMAPI.ViewPort.dll
    Syntax
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    [Guid("B2F8D5C3-AE49-4A7B-9D26-3C8F1E0B5A42")]
    public interface ICamApiInteractiveVO

    Properties

    Selectable

    When set, this object can be picked by clicking its geometry and its hotspots are drawn only while it is selected; clearing it shows the hotspots unconditionally.

    Declaration
    bool Selectable { get; set; }
    Property Value
    Type Description
    bool

    Methods

    AddHotSpot(TST3DPoint)

    Declaration
    int AddHotSpot(TST3DPoint P)
    Parameters
    Type Name Description
    TST3DPoint P
    Returns
    Type Description
    int

    AddHotSpotShaped(TST3DPoint, ICamApiMeshBuilder, bool, bool, bool)

    Declaration
    int AddHotSpotShaped(TST3DPoint P, ICamApiMeshBuilder Shape, bool ScreenScaled, bool Rigid, bool Decorative)
    Parameters
    Type Name Description
    TST3DPoint P
    ICamApiMeshBuilder Shape
    bool ScreenScaled
    bool Rigid
    bool Decorative
    Returns
    Type Description
    int

    ClearHotSpots()

    Remove all handles from this object. Handle ids restart from 1 on the next AddHotSpot/AddHotSpotShaped, so ids obtained before the clear must not be reused afterwards (they would refer to different handles).

    Declaration
    void ClearHotSpots()

    SetInteractionHandler(ICamApiViewInteractionHandler)

    Set the handler that receives hotspot drag events (nil to detach).

    Declaration
    void SetInteractionHandler(ICamApiViewInteractionHandler Handler)
    Parameters
    Type Name Description
    ICamApiViewInteractionHandler Handler

    UpdateHotSpotShaped(int, TST3DPoint, ICamApiMeshBuilder, bool, bool, bool)

    Declaration
    void UpdateHotSpotShaped(int Id, TST3DPoint P, ICamApiMeshBuilder Shape, bool ScreenScaled, bool Rigid, bool Decorative)
    Parameters
    Type Name Description
    int Id
    TST3DPoint P
    ICamApiMeshBuilder Shape
    bool ScreenScaled
    bool Rigid
    bool Decorative
    In this article