Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ResidueindexColormaker

Color by residue index

Hierarchy

Index

Constructors

constructor

Properties

Optional atomProxy

atomProxy: AtomProxy

parameters

scalePerChain

scalePerChain: {}

Type declaration

Methods

atomColor

atomColorToArray

  • atomColorToArray(atom: AtomProxy, array: NumberArray, offset: number): Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]

bondColor

  • bondColor(bond: BondProxy, fromTo: boolean): number

bondColorToArray

  • bondColorToArray(bond: BondProxy, fromTo: boolean, array: NumberArray, offset: number): Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
  • safe a bond color to an array

    Parameters

    • bond: BondProxy

      bond to get color for

    • fromTo: boolean

      whether to use the first or second atom of the bond

    • array: NumberArray

      destination

    • offset: number

      index into the array

    Returns Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]

    the destination array

colorToArray

  • colorToArray(color: number, array?: NumberArray, offset?: number): Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
  • safe a color to an array

    Parameters

    • color: number

      hex color value

    • Default value array: NumberArray = []

      destination

    • Default value offset: number = 0

      index into the array

    Returns Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]

    the destination array

getScale

Optional positionColor

  • positionColor(position: Vector3): number

positionColorToArray

  • positionColorToArray(coords: Vector3, array: NumberArray, offset: number): Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
  • safe a color for coordinates in space to an array

    Parameters

    • coords: Vector3

      xyz coordinates

    • array: NumberArray

      destination

    • offset: number

      index into the array

    Returns Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]

    the destination array

Optional volumeColor

  • volumeColor(index: number): number

volumeColorToArray

  • volumeColorToArray(index: number, array: NumberArray, offset: number): Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
  • safe a volume cell color to an array

    Parameters

    • index: number

      volume cell index

    • array: NumberArray

      destination

    • offset: number

      index into the array

    Returns Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]

    the destination array

Generated using TypeDoc