Represents length dimension object which can be displayed in the Viewer.

This class is a wrapper around functions of OccViewer.PmiController. This class contains week reference to actual text length dimension. You can create new length dimension object or use existing one by pass string id of existing object.

See also OccViewer.UserEvents.onEditLengthDimension callback for tracking changes.

Hierarchy (View Summary)

Constructors

Properties

_myObjId: string
_myViewer: OccViewer

Accessors

  • get bndBox(): BndBox
  • Get bounding box.

    Returns BndBox

  • get color(): string
  • Return object's global RGB color defined as OccViewer.ColorString

    Returns string

  • set color(theColor: string): void
  • Set object's global color or empty string to unset.

    Parameters

    • theColor: string

    Returns void

  • get dir(): WasmVector3d
  • Get vector which starts from start/endpoint and ends on start end point on shelf.

    Returns WasmVector3d

  • set dir(theValue: WasmVector3d): void
  • Set vector which starts from start/endpoint and ends on start end point on shelf.

    Parameters

    Returns void

  • get height(): number
  • Get distance between start/end and shelf.

    Returns number

  • set height(theValue: number): void
  • Set distance between start/end and shelf.

    Parameters

    • theValue: number

    Returns void

  • get id(): string
  • Get object id as string.

    Returns string

  • get isExist(): boolean
  • Return TRUE if object with specified Id exists.

    Returns boolean

  • get isLoaded(): boolean
  • Return TRUE if object with specified Id has deferred data loaded.

    Returns boolean

  • get selectable(): boolean
  • Return object's selectable status.

    Returns boolean

  • set selectable(theIsSelectable: boolean): void
  • Set object's selectable status.

    Parameters

    • theIsSelectable: boolean

    Returns void

  • get transparency(): number
  • Return object's transparency within [0.0, 1.0] range, or 0.0 if unspecified.

    Returns number

  • set transparency(theTransp: number): void
  • Set object's global transparency within [0.0, 1.0] range, or 0.0 to unset.

    Parameters

    • theTransp: number

    Returns void

  • get visible(): boolean
  • Return object visibility state.

    Returns boolean

  • set visible(theToShow: boolean): void
  • Set object visibility state.

    Parameters

    • theToShow: boolean

    Returns void

  • get visibleInView(): null | Subview
  • Return view in which object is visible or NULL if it is not displayed or displayed in multiple views.

    Returns null | Subview

  • set visibleInView(theView: null | Subview): void
  • Set object to be visible only within specific view or all views (NULL) - view affinity. Note that visible still has to be set independently.

    Parameters

    Returns void

  • get zLayer(): ZLayerId
  • Return z layer of object.

    Returns ZLayerId

  • set zLayer(theLayer: ZLayerId): void
  • Set z layer of object.

    Parameters

    Returns void

Methods