Spectro2

open class Spectro2(val status: Byte, scanBytes: ByteArray, val mode: ScanMode, val tRef: Float, val tScan: Float, val tCompEnabled: Boolean, val tileEnabled: Boolean, val deviceType: DeviceType = DeviceType.SPECTRO2) : IMeasurementData

Class describing measurement data from a DeviceType.SPECTRO2 device

Inheritors

Constructors

Link copied to clipboard
constructor(status: Byte, scanBytes: ByteArray, mode: ScanMode, tRef: Float, tScan: Float, tCompEnabled: Boolean, tileEnabled: Boolean, deviceType: DeviceType = DeviceType.SPECTRO2)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
override val deviceType: DeviceType

Device type that was used to make this measurement.

Link copied to clipboard
override val mode: ScanMode

Scan mode for this measurement (one of ScanMode.M0, ScanMode.M1, or ScanMode.M2)

Link copied to clipboard

Flag indicating if this measurement provides absolute density values. This value depends on both the deviceType and LicenseManager supporting the LicenseFeature.DENSITY_DATA feature. See also DeviceType.isFeatureSupported and LicenseManager.Shared.isFeatureEnabled.

Link copied to clipboard

Flag indicating if this measurement provides spectral values. This value depends on both the deviceType and availability of the LicenseFeature.SPECTRAL_DATA feature. See also DeviceType.isFeatureSupported and LicenseManager.Shared.isFeatureEnabled.

Link copied to clipboard
open override val raw: String

Raw data for a measurement. Can be used for measurement object reconstruction.

Link copied to clipboard
open override val spectralData: ISpectralData?

Provides a spectral data object from this measurement, or null if spectral data is not available. See also providesSpectral.

Link copied to clipboard
override val status: Byte

Scan status byte. A value of 0x01 indicates success, all other values indicate error states.

Link copied to clipboard

Array describing all reference white points that are available when requesting color data from this measurement using IMeasurementData.toColorData

Link copied to clipboard
override val tCompEnabled: Boolean

Flag indicating if temperature compensation was applied to the calibrated output for this measurement. Value is null if the device did not support temperature measurements.

Link copied to clipboard
open override val tileDelta: Double?

Delta E value between this measurement and factory reference. Value is non-null for measurement values from IDeviceCompat.runFieldCalibration and null in all other cases.

Link copied to clipboard
override val tileEnabled: Boolean

Flag indicating if in-field profiling corrections / white reference tile measurements were applied to the calibrated output data. Value is null if the device did not support in-field profiling.

Link copied to clipboard
open override val tReal: Boolean? = true

Flag describing the units for the reported temperature measurement. When true, temperature values are 'real' (floating point, degrees C). When false, temperatures are reported on an arbitrary raw scale. Value is null if the device did not support temperature measurements.

Link copied to clipboard
override val tRef: Float

Baseline reference temperature for this measurement, or null if the device did not support temperature measurements.

Link copied to clipboard
override val tScan: Float

Temperature of the Nix device at the time of this measurement, or null if the device did not support temperature measurements.

Functions

Link copied to clipboard
open fun providesColor(illuminant: Illuminant, observer: Observer): Boolean
open override fun providesColor(reference: ReferenceWhite): Boolean

Returns true if color data for the selected combination of illuminant and observer are available for this measurement.

Link copied to clipboard
open fun toColorData(illuminant: Illuminant = Illuminant.D50, observer: Observer = Observer.CIE1931, type: IColorData.ColorType = CIEXYZ): IColorData?
open override fun toColorData(reference: ReferenceWhite, type: IColorData.ColorType): IColorData?

Provides color data from this measurement for the specified illuminant and observer white point. Result is null if the specified white point is not available for this measurement.

Link copied to clipboard
open fun toColorInt(reference: ReferenceWhite = ReferenceWhite.D50_2): Int?
open fun toColorInt(illuminant: Illuminant = Illuminant.D50, observer: Observer = Observer.CIE1931): Int?

Provides an sRGB value (as a ColorInt) for this measurement for the specified illuminant and observer white point. Result is null if the specified white point is not available for this measurement.

Link copied to clipboard
open override fun toDensityData(status: DensityStatus): IDensityData?

Provides absolute density values for this measurement for the specified density status evaluated as per ISO 5-3:2009, or null if density data is not available. See also providesDensity.

Link copied to clipboard
open fun toRgbValue(reference: ReferenceWhite = ReferenceWhite.D50_2): IntArray?
open fun toRgbValue(illuminant: Illuminant = Illuminant.D50, observer: Observer = Observer.CIE1931): IntArray?

Provides an sRGB value for this measurement for the specified illuminant and observer white point. Result is null if the specified white point is not available for this measurement.