Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SectionPlanesPlugin

SectionPlanesPlugin is a Viewer plugin that manages SectionPlanes.

Hierarchy

Index

Constructors

Properties

id: string

ID for this Plugin, unique within its Viewer.

viewer: Viewer

The Viewer that contains this Plugin.

Accessors

  • get sectionPlanes(): {}

Methods

  • clear(): void
  • createSectionPlane(params?: { active?: boolean; dir?: number[]; id?: string; pos?: number[] }): SectionPlane
  • destroy(): void
  • destroySectionPlane(id: string): void
  • error(msg: string): void
  • Logs an error message to the JavaScript developer console, prefixed with the ID of this Plugin.

    Parameters

    • msg: string

      The error message

    Returns void

  • fire(event: string, value: any): void
  • Fires an event at this Plugin.

    Parameters

    • event: string

      The event type name

    • value: any

      The event parameters

    Returns void

  • flipSectionPlanes(): void
  • getOverviewVisible(): boolean
  • getShownControl(): string
  • hideControl(): void
  • log(msg: string): void
  • Logs a message to the JavaScript developer console, prefixed with the ID of this Plugin.

    Parameters

    • msg: string

      The error message

    Returns void

  • on(event: string, callback: () => void): void
  • Subscribes to an event fired at this Plugin.

    Parameters

    • event: string

      The event

    • callback: () => void

      Callback fired on the event

        • (): void
        • Returns void

    Returns void

  • setOverviewVisible(visible: boolean): void
  • showControl(id: string): void
  • warn(msg: string): void
  • Logs a warning message to the JavaScript developer console, prefixed with the ID of this Plugin.

    Parameters

    • msg: string

      The error message

    Returns void

Generated using TypeDoc