Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a vector data object with a shape. It may include application specific properties.

Hierarchy

Overview

Constructors

Accessors

Methods

Constructors

constructor

  • Creates a new feature with the given geometry and properties. Represents a vector data object with a shape. It may include application specific properties.

    Parameters

    • shape: Shape | null

      the feature's shape.

    • Optional properties: FeatureProperties

      an object hash containing the Feature's properties.

    • Optional id: number | string

      the identifier of the Feature. This id may be omitted when instantiating a new feature: for example, before adding a Feature to a MemoryStore. However, note that features which are part of the result of a model query must have an id.

    Returns Feature

Accessors

id

  • get id(): string | number
  • set id(value: number | string): void
  • The unique identifier of the Feature. This unique id must uniquely identify the Feature within the context of a model, ie.within the context of a luciad.model.feature.FeatureModel.

    Returns string | number

  • The unique identifier of the Feature. This unique id must uniquely identify the Feature within the context of a model, ie.within the context of a luciad.model.feature.FeatureModel.

    Parameters

    • value: number | string

    Returns any

properties

  • The properties of the data object. This is optional and may be left undefined. Usually, this object is a key/value pair object.

    Returns FeatureProperties

  • The properties of the data object. This is optional and may be left undefined. Usually, this object is a key/value pair object.

    Parameters

    Returns any

shape

  • get shape(): Shape | null
  • set shape(shape: Shape | null): void
  • The shape of the feature

    Returns Shape | null

  • The shape of the feature

    Parameters

    Returns any

Methods

copy

  • Makes a deep clone of this feature.

    Returns Feature

    a copy of this feature

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method