CAM API
  • CAM API
v20.0.1
Search Results for

    Show / Hide Table of Contents

    Interface ICamApiViewPort

    View port interface: a rendering surface hosted in a caller window. Many viewports can belong to one view manager and all draw its shared set of visual objects. Created via ICamApiVisualisationFactory.CreateViewPort.

    Namespace: CAMAPI.ViewPort
    Assembly: CAMAPI.ViewPort.dll
    Syntax
    [Guid("856044DC-0487-4609-888E-CC19F053C3AE")]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface ICamApiViewPort

    Properties

    Cube

    View cube

    Declaration
    ICamApiViewCube Cube { get; }
    Property Value
    Type Description
    ICamApiViewCube

    Matrix

    View port transformation matrix. Setting this property changes the view immediately.

    Declaration
    TST3DMatrix Matrix { get; set; }
    Property Value
    Type Description
    TST3DMatrix

    ScaleFactor

    View port scale factor

    Declaration
    double ScaleFactor { get; }
    Property Value
    Type Description
    double

    ViewBox

    View port bounding box. Setting this property changes the view immediately.

    Declaration
    TST2DBox ViewBox { get; set; }
    Property Value
    Type Description
    TST2DBox

    ViewManager

    The view manager that owns this viewport's scene. All viewports of the same manager render the same visual objects. This is the only way to reach CAMCore main scene: ICamApiApplicationMainForm.MainViewPort.ViewManager.

    Declaration
    ICamApiViewManager ViewManager { get; }
    Property Value
    Type Description
    ICamApiViewManager

    ViewMode

    View port rendering mode

    Declaration
    TViewPortViewMode ViewMode { get; }
    Property Value
    Type Description
    TViewPortViewMode

    Methods

    SaveImage(string, int, int)

    Declaration
    bool SaveImage(string FilePath, int Width, int Height)
    Parameters
    Type Name Description
    string FilePath
    int Width
    int Height
    Returns
    Type Description
    bool

    SetMatrixFluently(TST3DMatrix)

    Declaration
    void SetMatrixFluently(TST3DMatrix Matrix)
    Parameters
    Type Name Description
    TST3DMatrix Matrix

    SetViewBoxFluently(TST2DBox)

    Declaration
    void SetViewBoxFluently(TST2DBox Box)
    Parameters
    Type Name Description
    TST2DBox Box

    ZoomAll(bool)

    Declaration
    void ZoomAll(bool Fluently)
    Parameters
    Type Name Description
    bool Fluently
    In this article