ZOSAPI.Editors.NCE.INCESourcesData Interface Reference
Last update: 17.07.2025Object properties Sources tab. This interface can be accessed via the INCERow interface. More...
Properties | |
| bool | IsSourcesAvailable [get] |
| bool | RandomPolarization [get, set] |
| double | InitialPhaseDeg [get, set] |
| double | CoherenceLength [get, set] |
| double | Jx [get, set] |
| double | Jy [get, set] |
| double | XPhase [get, set] |
| double | YPhase [get, set] |
| bool | ReverseRays [get, set] |
| double | PrePropagation [get, set] |
| SourceBulkScatterMode | BulkScatter [get, set] |
| SourceSamplingMethod | SamplingMethod [get, set] |
| ArrayMode | ArrayType [get, set] |
| int | ArrayNumberX [get, set] |
| int | ArrayNumberY [get, set] |
| double | ArraySpacingX [get, set] |
| double | ArraySpacingY [get, set] |
| int | ArrayNumber [get, set] |
| double | ArrayRadius [get, set] |
| int | ArrayRings [get, set] |
| double | ArraySpacing [get, set] |
| SourceColorMode | SourceColor [get, set] |
| ISourceColorSettings | SourceColorSettings [get] |
Detailed Description
Object properties Sources tab. This interface can be accessed via the INCERow interface.
Usage (see Example 21 for a full sample)
C#
// Edit source data of object 1
// SourcesData includes all the settings in Object Properties > Sources
Object_1.SourcesData.PrePropagation = -0.2;
Object_1.SourcesData.ArrayType = ArrayMode.Rectangular;
Object_1.SourcesData.ArrayNumberX = 5;
Object_1.SourcesData.ArrayNumberY = 5;
C++
// Edit source data of object 1
// SourcesData includes all the settings in Object Properties > Sources
Object_1->SourcesData->PrePropagation = -0.2;
Object_1->SourcesData->ArrayType = ArrayMode_Rectangular;
Object_1->SourcesData->ArrayNumberX = 5;
Object_1->SourcesData->ArrayNumberY = 5;
Matlab
% Edit source data of object 1
% SourcesData includes all the settings in Object Properties > Sources
Object_1.SourcesData.PrePropagation = -0.2;
Object_1.SourcesData.ArrayNumberX = 5;
Object_1.SourcesData.ArrayNumberY = 5;
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
Python
# Edit source data of object 1
# SourcesData includes all the settings in Object Properties > Sources
Object_1.SourcesData.PrePropagation = -0.2
Object_1.SourcesData.ArrayType = ZOSAPI.Editors.NCE.ArrayMode.Rectangular
Object_1.SourcesData.ArrayNumberX = 5
Object_1.SourcesData.ArrayNumberY = 5
Property Documentation
◆ ArrayNumber
|
getset |
◆ ArrayNumberX
|
getset |
◆ ArrayNumberY
|
getset |
◆ ArrayRadius
|
getset |
◆ ArrayRings
|
getset |
◆ ArraySpacing
|
getset |
◆ ArraySpacingX
|
getset |
◆ ArraySpacingY
|
getset |
◆ ArrayType
|
getset |
◆ BulkScatter
|
getset |
◆ CoherenceLength
|
getset |
◆ InitialPhaseDeg
|
getset |
◆ IsSourcesAvailable
|
get |
◆ Jx
|
getset |
◆ Jy
|
getset |
◆ PrePropagation
|
getset |
◆ RandomPolarization
|
getset |
◆ ReverseRays
|
getset |
◆ SamplingMethod
|
getset |
◆ SourceColor
|
getset |
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;
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
◆ SourceColorSettings
|
get |
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;
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
◆ XPhase
|
getset |
◆ YPhase
|
getset |