Options
All
  • Public
  • Public/Protected
  • All
Menu

Attrib abstract class. An class that represents a semantic attribute. An attribute is data that is attached to either: entities (points and objects) or topological components (vertices, edges, wires, faces). An instance of this class stores a list of attributes values.

Hierarchy

Implements

Index

Constructors

constructor

  • Creates an instance of the Attrib class. The attribute data must already exists in the model. Do not use this constructor if you want to add a new attribute to the model. Instead, you should use the "addAttrib()" methdod in the model class.

    Parameters

    Returns Attrib

    The Attrib object.

Properties

Protected _geom_type

_geom_type: EGeomType

Protected _kernel

_kernel: Kernel

Protected _name

_name: string

Methods

count

  • count(): number
  • Get the number of attribute values.

    Returns number

    The number of attribute values.

exists

  • exists(): boolean

getDataType

getGeom

getGeomType

getLabels

  • getLabels(): string[]
  • Get all the attribute labels for this attribte.

    Returns string[]

    The array of attribute labels.

getModel

getName

  • getName(): string

getValues

  • getValues(): any[]
  • Get all the attribute values for this attribte.

    Returns any[]

    The array of attribute values.

setName

  • setName(name: string): string
  • Set the name of the attribute.

    Parameters

    • name: string

      The new name.

    Returns string

    The old name.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • 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

Generated using TypeDoc