Skip to main content

T8GIStyleDTO

Index

Constructors

constructor

Properties

colors

colors: Uint8Array<ArrayBufferLike>

diffuseColorIndices

diffuseColorIndices: TypedArray

diffuseFactors

diffuseFactors: Float32Array<ArrayBufferLike>

diffuseTransmissionColorIndices

diffuseTransmissionColorIndices: TypedArray

diffuseTransmissionFactors

diffuseTransmissionFactors: Float32Array<ArrayBufferLike>

index

index: number = 0

nameIndices

nameIndices: TypedArray

reflectionColorIndices

reflectionColorIndices: TypedArray

reflectionFactors

reflectionFactors: Float32Array<ArrayBufferLike>

specularColorIndices

specularColorIndices: TypedArray

specularExponents

specularExponents: Float32Array<ArrayBufferLike>

specularFactors

specularFactors: Float32Array<ArrayBufferLike>

specularRoughnesses

specularRoughnesses: Float32Array<ArrayBufferLike>

styleNames

styleNames: string[]

surfaceColorIndices

surfaceColorIndices: TypedArray

transmissionColorIndices

transmissionColorIndices: TypedArray

transmissionFactors

transmissionFactors: Float32Array<ArrayBufferLike>

Methods

getDiffuseColor

  • getDiffuseColor(): undefined | Uint8Array<ArrayBufferLike>
  • Returns undefined | Uint8Array<ArrayBufferLike>

getDiffuseFactor

  • getDiffuseFactor(): undefined | number
  • Returns undefined | number

getDiffuseTransmissionColor

  • getDiffuseTransmissionColor(): undefined | Uint8Array<ArrayBufferLike>
  • Returns undefined | Uint8Array<ArrayBufferLike>

getDiffuseTransmissionFactor

  • getDiffuseTransmissionFactor(): undefined | number
  • Returns undefined | number

getName

  • getName(): string
  • Returns string

getReflectionColor

  • getReflectionColor(): undefined | Uint8Array<ArrayBufferLike>
  • Returns undefined | Uint8Array<ArrayBufferLike>

getReflectionFactor

  • getReflectionFactor(): undefined | number
  • Returns undefined | number

getSpecularColor

  • getSpecularColor(): undefined | Uint8Array<ArrayBufferLike>
  • Returns undefined | Uint8Array<ArrayBufferLike>

getSpecularExponent

  • getSpecularExponent(): undefined | number
  • Returns undefined | number

getSpecularFactor

  • getSpecularFactor(): undefined | number
  • Returns undefined | number

getSpecularRoughness

  • getSpecularRoughness(): undefined | number
  • Returns undefined | number

getSurfaceColor

  • getSurfaceColor(): Uint8Array<ArrayBufferLike>
  • Returns Uint8Array<ArrayBufferLike>

getTransmissionColor

  • getTransmissionColor(): undefined | Uint8Array<ArrayBufferLike>
  • Returns undefined | Uint8Array<ArrayBufferLike>

getTransmissionFactor

  • getTransmissionFactor(): undefined | number
  • Returns undefined | number

init

  • init(styleNames: string[], colors: Uint8Array<ArrayBufferLike>, surfaceColorIndices: TypedArray, diffuseColorIndices: TypedArray, specularColorIndices: TypedArray, reflectionColorIndices: TypedArray, transmissionColorIndices: TypedArray, diffuseTransmissionColorIndices: TypedArray, nameIndices: TypedArray, diffuseFactors: Float32Array<ArrayBufferLike>, specularFactors: Float32Array<ArrayBufferLike>, reflectionFactors: Float32Array<ArrayBufferLike>, transmissionFactors: Float32Array<ArrayBufferLike>, diffuseTransmissionFactors: Float32Array<ArrayBufferLike>, specularExponents: Float32Array<ArrayBufferLike>, specularRoughnesses: Float32Array<ArrayBufferLike>): this
  • Parameters

    • styleNames: string[]
    • colors: Uint8Array<ArrayBufferLike>
    • surfaceColorIndices: TypedArray
    • diffuseColorIndices: TypedArray
    • specularColorIndices: TypedArray
    • reflectionColorIndices: TypedArray
    • transmissionColorIndices: TypedArray
    • diffuseTransmissionColorIndices: TypedArray
    • nameIndices: TypedArray
    • diffuseFactors: Float32Array<ArrayBufferLike>
    • specularFactors: Float32Array<ArrayBufferLike>
    • reflectionFactors: Float32Array<ArrayBufferLike>
    • transmissionFactors: Float32Array<ArrayBufferLike>
    • diffuseTransmissionFactors: Float32Array<ArrayBufferLike>
    • specularExponents: Float32Array<ArrayBufferLike>
    • specularRoughnesses: Float32Array<ArrayBufferLike>

    Returns this