Defines the model viewpoint with markup.

This viewpoint is BCF-compatible.

Optional/mandatory fields clarification:

  • A viewpoint must contain a camera definition.
  • Camera definition is exactly one of perspective_camera or orthogonal_camera.
interface IViewpoint {
    arrows?: IArrow[];
    assembly_id?: string;
    bitmaps?: IBitmap[];
    clipping_planes?: IClippingPlane[];
    clouds?: ICloud[];
    coloring?: IColoring[];
    custom_fields?: any;
    description?: string;
    ellipses?: IEllipse[];
    file_id?: string;
    guid?: string;
    images?: IImage[];
    index?: number;
    lines?: ILine[];
    orthogonal_camera?: IOrthogonalCamera;
    perspective_camera?: IPerspectiveCamera;
    rectangles?: IRectangle[];
    selection?: IEntity[];
    snapshot?: ISnapshot;
    texts?: IText[];
    visibility?: IEntity[];
}

Properties

arrows?: IArrow[]

List of markup Arrow objects.

assembly_id?: string

Identifier of the assembly for which the viewpoint was created.

bitmaps?: IBitmap[]

Embedded pictures in the viewpoint. A list of bitmaps can be used to add more information, for example, text in the visualization.

clipping_planes?: IClippingPlane[]

Clipping planes for the model view.

clouds?: ICloud[]

List of markup Cloud objects.

coloring?: IColoring[]

Colored components.

custom_fields?: any

Viewpoint custom fields object, to store custom data.

description?: string

Viewpoint description.

ellipses?: IEllipse[]

List of markup Ellipse objects.

file_id?: string

Identifier of the file for which the viewpoint was created.

guid?: string

GUID for identifying viewpoint uniquely.

images?: IImage[]

List of markup Image objects.

index?: number

Viewpoint index (sort order).

lines?: ILine[]

List of markup Line objects.

orthogonal_camera?: IOrthogonalCamera

Orthogonal camera view.

perspective_camera?: IPerspectiveCamera

Perspective view of the camera.

rectangles?: IRectangle[]

List of markup Rectangle objects.

selection?: IEntity[]

Selected components.

snapshot?: ISnapshot

Snapshot image of the viewpoint. The longest dimension of should not exceed 1500 px, length or width.

texts?: IText[]

List of markup Texts objects.

visibility?: IEntity[]

Visibility of components.