Last updated

API / geotoolkit / contour / faults / ContourFaultList / ContourFaultList

Class: ContourFaultList

faults.ContourFaultList.ContourFaultList

The ContourFaultList object is used to pass the fault data to the contour shape ready for rendering. It also performs some basic pre-processing calculations on the faults (validation/etc)

Table of contents

Constructors
Methods

Contents

Constructors

new ContourFaultList()

new ContourFaultList()

Methods

addFault

addFault(xCoordinates, yCoordinates, left, right, closed): void

Adds a fault with explicit data to this fault list

Throws

Error fault has less than 2 point

Parameters

Name Type Description
xCoordinatesFloat64Arrayarray of x coordinates
yCoordinatesFloat64Arrayarray of y coordinates
leftFloat64Arrayarray of left values or boolean indicating if closed
rightFloat64Arrayarray of right values
closedbooleanis fault closed or not

Returns

void

addFault(xCoordinates, yCoordinates, closed): void

Adds a fault with explicit data to this fault list

Throws

Error fault has less than 2 point

Parameters

Name Type Description
xCoordinatesFloat64Arrayarray of x coordinates
yCoordinatesFloat64Arrayarray of y coordinates
closedbooleanis fault closed or not

Returns

void


getClassName

getClassName(): string

Returns

string


getFault

getFault(index): ContourFault

Gets a Fault from the fault list

Parameters

Name Type Description
indexnumberThe index of the fault in the fault list

Returns

ContourFault

fault The fault


getSize

getSize(): number

Number of faults in list

Returns

number


removeAll

removeAll(): void

Removes all of the fault data from this fault list

Returns

void


getClassName

Static getClassName(): string

Returns

string