IGeometryEditorChildModel

Extends IGeometryEditorModel.

Interface for the child data model.

Constructor | Fields | Methods

Constructor

IGeometryEditorChildModel(geometry, editor, pixels, parent)

Parameters:

Parameter Default value Description
geometry *

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 *

Type: IGeometryEditor

Link to the geometry editor.

pixels *

Type: Number[]

The model's pixel data.

parent *

Type: IGeometryEditorModel

The parent data model.

* Mandatory parameter/option.

Fields

Name Type Description
editor IGeometryEditor

Geometry editor.

events IEventManager

Event manager.

Inherited from IEventEmitter.

geometry IBaseGeometry

Geometry of the model.

Methods

Name Returns Description
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.

Methods details

getParent

{IGeometryEditorModel} getParent()

Returns the parent data model.

setPixels

{} setPixels(pixels)

Sets the model's pixel data.

Parameters:

Parameter Default value Description
pixels *

Type: Number[]

Pixel data.

* Mandatory parameter/option.