Last updated

API / geotoolkit3d / shapes / IntersectionCell2D / IntersectionCell2D

Class: IntersectionCell2D

shapes.IntersectionCell2D.IntersectionCell2D

Cell projection to 2D plane

Table of contents

Constructors
Methods

Contents

Constructors

new IntersectionCell2D(options)

new IntersectionCell2D(options?)

Parameters

Name Type
Optional optionsOptions
Methods

addTriangle

addTriangle(triangle): IntersectionCell2D

Add triangle

Parameters

Name Type Description
trianglePolyShapetriangle to add

Returns

IntersectionCell2D

this


clearTriangles

clearTriangles(): IntersectionCell2D

Clear inner triangles

Returns

IntersectionCell2D

this


clone

clone(): IntersectionCell2D

Return clone

Returns

IntersectionCell2D

clone


copyConstructor

copyConstructor(src): IntersectionCell2D

Copy data from specified source

Parameters

Name Type Description
srcIntersectionCell2Dsource to copy from

Returns

IntersectionCell2D

this


getBounds

getBounds(): Rect

Returns cell bounds

Returns

Rect

cell bounds


getClassName

getClassName(): string

Returns

string


getCoordinates

getCoordinates(): Object

Return cell path coordinates (combined from triangles)

Returns

Object

x and y coordinates

NameType
xnumber[]
ynumber[]

getFillStyle

getFillStyle(): FillStyle

Returns associated fill style

Returns

FillStyle

fill style


getIndex

getIndex(): number

Returns index

Returns

number

index


getLineStyle

getLineStyle(): LineStyle

Returns associated line style

Returns

LineStyle

line style


getTriangles

getTriangles(): Iterator<PolyShape>

Return iterator with inner triangles

Returns

Iterator<PolyShape>

iterator with triangles


getTrianglesCount

getTrianglesCount(): number

Clear inner triangles

Returns

number

triangles count


getValue

getValue(): number

Returns value

Returns

number

value


setFillStyle

setFillStyle(fillStyle): IntersectionCell2D

Set fill style

Parameters

Name Type Description
fillStyleFillStylefill style

Returns

IntersectionCell2D

this


setLineStyle

setLineStyle(lineStyle): IntersectionCell2D

Set line style

Parameters

Name Type Description
lineStyleLineStyleline style

Returns

IntersectionCell2D

this


getClassName

Static getClassName(): string

Returns

string