Documentation
Reference
2.1.56 (current version)
collection
interactivityModel
Interfaces

IGeometryEditorChildModel

Extends IGeometryEditorModel.

Interface for the child data model.

Constructor | Fields | Methods

Constructor

IGeometryEditorChildModel(geometry, editor, pixels, parent)

Parameters:

ParameterDefault valueDescription
geometry *
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: IBaseGeometry

The child geometry being edited. The IBaseGeometry interface is not aware of the pixelgeometrychange event, therefore, the pixel data is retrieved from the parent data model.

editor *
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: IGeometryEditor

Link to the geometry editor.

pixels *
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Number[]

The model's pixel data.

parent *
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: IGeometryEditorModel

The parent data model.

* Mandatory parameter/option.

Fields

NameTypeDescription
editorIGeometryEditor

Geometry editor.

eventsIEventManager

Event manager.

Inherited from IEventEmitter.

geometryIBaseGeometry

Geometry of the model.

Methods

NameReturnsDescription
destroy()

Destructor.

Inherited from IGeometryEditorModel.

getParent()

IGeometryEditorModel

Returns the parent data model.

getPixels()

Number[]

Returns the model's pixel data.

Inherited from IGeometryEditorModel.

setPixels(pixels)

Sets the model's pixel data.

Fields details

editor

Geometry editor.

geometry

{IBaseGeometry} geometry

Geometry of the model.

Methods details

getParent

{IGeometryEditorModel} getParent()

Returns the parent data model.

setPixels

{} setPixels(pixels)

Sets the model's pixel data.

Parameters:

ParameterDefault valueDescription
pixels*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Number[]

Pixel data.

* Mandatory parameter/option.