ZOSAPI.Editors.NCE.ISCS_BlackBodySpectrum Interface Reference
Last update: 17.07.2025Source Color Mode - Black Body Spectrum. This interface can be accessed via the INCESourcesData interface. More...
Inheritance diagram for ZOSAPI.Editors.NCE.ISCS_BlackBodySpectrum:

Properties | |
| double | TemperatureK [get, set] |
| int | SpectrumCount [get, set] |
| double | WavelengthFrom [get, set] |
| double | WavelengthTo [get, set] |
| string | Fit [get] |
Properties inherited from ZOSAPI.Editors.NCE.ISourceColorSettings | |
| SourceColorMode | Mode [get] |
| bool | IsValid [get] |
| ISCS_SystemWavelengths | _S_SystemWavelengths [get] |
| ISCS_CIE1931Tristimulus | _S_CIE1931Tristimulus [get] |
| ISCS_CIE1931Chromaticity | _S_CIE1931Chromaticity [get] |
| ISCS_CIE1931RGB | _S_CIE1931RGB [get] |
| ISCS_UniformPowerSpectrum | _S_UniformPowerSpectrum [get] |
| ISCS_D65White | _S_D65White [get] |
| ISCS_ColorTemperature | _S_ColorTemperature [get] |
| ISCS_BlackBodySpectrum | _S_BlackBodySpectrum [get] |
| ISCS_SpectrumFile | _S_SpectrumFile [get] |
| ISCS_CIE1976 | _S_CIE1976 [get] |
Detailed Description
Source Color Mode - Black Body Spectrum. This interface can be accessed via the INCESourcesData interface.
Usage (see Example 25 for a full sample)
C#
// Changes sourcecolor to Blackbody, sets temperature, min/ max wavelength
o1.SourcesData.SourceColorSettings._S_BlackBodySpectrum.TemperatureK = 6000;
o1.SourcesData.SourceColorSettings._S_BlackBodySpectrum.WavelengthFrom = 0.45;
o1.SourcesData.SourceColorSettings._S_BlackBodySpectrum.WavelengthTo = 0.65;
Definition: InterfacesNCE.cs:19
Definition: InterfacesEditors.cs:12
The ZOSAPI namespace contains classes for initially connecting to zemax. See also ZOSAPI_Connection,...
Definition: IAS_FieldCurvatureAndDistortion.cs:5
C++
// Changes sourcecolor to Blackbody, sets temperature, min / max wavelength
o1->SourcesData->SourceColor = SourceColorMode_BlackBodySpectrum;
o1->SourcesData->SourceColorSettings->_S_BlackBodySpectrum->TemperatureK = 6000;
o1->SourcesData->SourceColorSettings->_S_BlackBodySpectrum->WavelengthFrom = 0.45;
o1->SourcesData->SourceColorSettings->_S_BlackBodySpectrum->WavelengthTo = 0.65;
Matlab
% Changes sourcecolor to Blackbody, sets temperature, min/max wavelength
o1.SourcesData.SourceColorSettings.TemperatureK = 6000;
o1.SourcesData.SourceColorSettings.WavelengthFrom = 0.45;
o1.SourcesData.SourceColorSettings.WavelengthTo = 0.65;
Python
# Changes sourcecolor to Blackbody, sets temperature, min/max wavelength
o1.SourcesData.SourceColor = ZOSAPI.Editors.NCE.SourceColorMode.BlackBodySpectrum
o1.SourcesData.SourceColorSettings._S_BlackBodySpectrum.TemperatureK = 6000
o1.SourcesData.SourceColorSettings._S_BlackBodySpectrum.WavelengthFrom = 0.45
o1.SourcesData.SourceColorSettings._S_BlackBodySpectrum.WavelengthTo = 0.65
Property Documentation
◆ Fit
|
get |
◆ SpectrumCount
|
getset |
◆ TemperatureK
|
getset |
◆ WavelengthFrom
|
getset |
◆ WavelengthTo
|
getset |
Properties inherited from