Home Reference Source Test
public class | source

Feature

This class represents a Feature. Each feature belongs to one Aesthetic element.

Constructor Summary

Public Constructor
public

constructor(id: number, properties: {fx: string, _gisplayid: number}, triangles: {itemSize: number, numItems: number}, borders: {itemSize: number, numItems: number}, points: number[])

Creates an instance of Feature.

Member Summary

Private Members
private

_borders: {itemSize: number, numItems: number}

Number of borders associated with this Feature.

private

This Feature id.

private

_points: {itemSize: number, numItems: number}

The points that belong to this Feature.

private

_properties: {fx: string, _gisplayid: number}

Properties associated with this Feature.

private

_triangles: {itemSize: number, numItems: number}

Number of triangles associated with this Feature.

Method Summary

Public Methods
public

Returns all borders that belong to the Feature.

public

Returns all points that belong to the Feature.

public

Returns all properties that belong to the Feature.

public

Returns all triangles that belong to the Feature.

Public Constructors

public constructor(id: number, properties: {fx: string, _gisplayid: number}, triangles: {itemSize: number, numItems: number}, borders: {itemSize: number, numItems: number}, points: number[]) source

Creates an instance of Feature.

Params:

NameTypeAttributeDescription
id number

This Feature id.

properties {fx: string, _gisplayid: number}

Properties associated with this Feature.

triangles {itemSize: number, numItems: number}

Number of triangles associated with this Feature.

borders {itemSize: number, numItems: number}

Number of borders associated with this Feature.

points number[]

The points that belong to this Feature.

Example:

1-> {"id":0,"properties":{"f1":"Alabama","f2":"Autauga","f3":150,"_gisplayid":0},
"triangles":[{"itemSize":2,"numItems":417}],"borders":[{"itemSize":2,"numItems":141}],"points":[]}

Private Members

private _borders: {itemSize: number, numItems: number} source

Number of borders associated with this Feature. The Object that contains the itemSize and numItems is a WebGLBuffer.

private _id: number source

This Feature id.

private _points: {itemSize: number, numItems: number} source

The points that belong to this Feature. The Object that contains the itemSize and numItems is a WebGLBuffer.

private _properties: {fx: string, _gisplayid: number} source

Properties associated with this Feature.

private _triangles: {itemSize: number, numItems: number} source

Number of triangles associated with this Feature. The Object that contains the itemSize and numItems is a WebGLBuffer.

Public Methods

public getBorders(): _borders source

Returns all borders that belong to the Feature.

Return:

_borders

All borders that belong to the Feature.

public getPoints(): _points source

Returns all points that belong to the Feature.

Return:

_points

All points that belong to the Feature.

public getProperties(): _properties source

Returns all properties that belong to the Feature.

Return:

_properties

public getTriangles(): _triangles source

Returns all triangles that belong to the Feature.

Return:

_triangles

All triangles that belong to the Feature.