Hierarchy

Implements

Constructors

Properties

eventAdded: ListenableEvent<void, SceneElement> = ...
eventBoundingBoxChanged: ListenableEvent<void, SceneElement> = ...

Should be triggered if the list of properties, the value or the state (visible, editable) of one or more properties has changed.

eventRemoved: ListenableEvent<void, SceneElement> = ...
eventTransformationChanged: ListenableEvent<void, SceneElement> = ...
mModel: ModelManager
mNode: TransformNode

Accessors

  • get boundingBox(): BoundingBox
  • Complete bounding box of this element inluding invisible nodes.

    Returns BoundingBox

  • get boundingBoxVisible(): BoundingBox
  • Bounding box of this element inluding only visible elements.

    Returns BoundingBox

  • get isDisposed(): boolean
  • Returns boolean

  • get isSelected(): boolean
  • Returns boolean

  • get node(): TransformNode
  • Returns TransformNode

  • get transform(): Matrix
  • Returns Matrix

  • get transformInverted(): Matrix
  • Returns Matrix

  • get worldTransform(): Matrix
  • Returns Matrix

  • get worldTransformInverted(): Matrix
  • Returns Matrix

Methods

  • Returns void

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Returns boolean

  • Parameters

    • Optional pNewParent: null | TransformNode

    Returns null | SceneElement

  • Should be called if the element was removed from the scene and will never be used again.

    Returns void

  • Returns boolean

  • Parameters

    • pIncludeChildElementNodes: boolean

    Returns TransformNode[]

  • Returns this element if it is currently selectable otherwise the next parent which is selectable.

    Returns SceneElement

  • Returns the next selectable parent or this if there is no parent.

    Returns SceneElement

  • Can be overridden to define a custom bounding box for the selection highlight. Defaults to SceneElement.boundingBoxVisible (does not return a clone).

    Returns BoundingBox

  • Returns void

  • Returns void

  • Returns boolean

  • Can be overridden to disable the default selection highlight for this element. (Default: true)

    Returns boolean

  • Will be called for certain operations to load the undo data which was saved with a previous saveUndoData() call.

    Parameters

    Returns void

  • Parameters

    • pFlags: number
    • pNotifyParent: boolean = true

    Returns void

  • Parameters

    • pNewNode: TransformNode
    • pKeepTransfom: boolean
    • pKeepParent: boolean
    • pNotifyParent: boolean = true

    Returns void

  • Can be used to provide additional undo related data for certain operations. Will be called before the operation is performed.

    Parameters

    Returns null | object

  • Parameters

    • pNode: TransformNode

    Returns void

  • Parameters

    • pTransform: Matrix

    Returns boolean

  • Parameters

    • pShow: boolean

    Returns void

  • Should be called after the transformation of this.node was modified directly instead of using this.setTransform(). This function updates frozen world matrices and calls notifyChange with ElementChangedFlags.Transformation.

    Parameters

    • pUpdateChildNodes: boolean = true

    Returns void

  • Parameters

    • pFlag: number

    Returns boolean

  • Parameters

    • pFlag: number

    Returns boolean

  • Parameters

    • pNode: Node
    • pCheckParents: boolean

    Returns null | SceneElement

  • Parameters

    • pNode: TransformNode
    • Optional pNewParent: null | TransformNode
    • Optional pChildNodes: boolean

    Returns TransformNode

Generated using TypeDoc