Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces

geometryEditor.model.ChildLinearRing

Note. The constructor of the geometryEditor.model.ChildLinearRing class is hidden, as this class is not intended for autonomous initialization.

Extends geometryEditor.model.ChildLineString.

Model for a child closed contour. The constructor is not available in the package.full (a standard set of modules). This module is loaded on demand.

Fields | Methods

Fields

NameTypeDescription
editorIGeometryEditor

Geometry editor.

Inherited from IGeometryEditorChildModel.

eventsIEventManager

Event manager.

Inherited from IEventEmitter.

geometryIBaseGeometry

Geometry of the model.

Inherited from IGeometryEditorChildModel.

Methods

NameReturnsDescription
destroy()

Destructor.

Inherited from IGeometryEditorModel.

getAllVerticesNumber()

Integer

Returns the total number of vertexes in the geometry being edited.

Inherited from geometryEditor.model.ChildLineString.

getEdgeModels()

geometryEditor.model.Edge[]

Returns an array of models for interim placemarks.

Inherited from geometryEditor.model.ChildLineString.

getIndex()

Integer

Returns the index of the child polyline in the parent model.

Inherited from geometryEditor.model.ChildLineString.

getParent()

IGeometryEditorModel

Returns the parent data model.

Inherited from IGeometryEditorChildModel.

getPixels()

Number[]

Returns the model's pixel data.

Inherited from IGeometryEditorModel.

getVertexModels()

geometryEditor.model.ChildVertex[]

Returns an array of models for child vertexes.

Inherited from geometryEditor.model.ChildLineString.

setIndex(index)

Sets the index of the child polyline in the parent model.

Inherited from geometryEditor.model.ChildLineString.

setPixels(pixels)

Sets the model's pixel data.

Inherited from IGeometryEditorChildModel.

spliceVertices(start, deleteCount)

Number[][]

Deletes a defined number of polyline vertexes, starting from the specified index. New vertexes can be added in place of the deleted ones. Global pixel coordinates of the new vertexes can be passed as additional arguments after the "deleteCount" parameter.

Inherited from geometryEditor.model.ChildLineString.