ZOSAPI.SystemData.IWavelengths Interface Reference
Last update: 17.07.2025System Explorer - Wavelengths Data. This interface can be accessed via the ISystemData interface. More...
Public Member Functions | |
| IWavelength | GetWavelength (int position) |
| Gets the specified wavelength."/>. | |
| IWavelength | AddWavelength (double Wavelength, double Weight) |
| Add a new wavelengths, after all the current wavelengths. | |
| bool | RemoveWavelength (int position) |
| Removes the specified wavelength. | |
| bool | SelectWavelengthPreset (WavelengthPreset preset) |
| Replaces all system wavelengths with a preset definition. | |
| bool | GaussianQuadrature (double minWave, double maxWave, QuadratureSteps numSteps) |
| Generates a new set of system wavelengths based on a Gaussian Quadrature method. | |
Properties | |
| int | NumberOfWavelengths [get] |
| Gets the number of wavelengths currently defined in the system. | |
Detailed Description
System Explorer - Wavelengths Data. This interface can be accessed via the ISystemData interface.
Member Function Documentation
◆ AddWavelength()
| IWavelength ZOSAPI.SystemData.IWavelengths.AddWavelength | ( | double | Wavelength, |
| double | Weight | ||
| ) |
Add a new wavelengths, after all the current wavelengths.
- Parameters
-
Wavelength The wavelength (um). Weight The weight.
- Returns
- The new IWavelength if there were less than twelve wavelengths; otherwise, .null
◆ GaussianQuadrature()
| bool ZOSAPI.SystemData.IWavelengths.GaussianQuadrature | ( | double | minWave, |
| double | maxWave, | ||
| QuadratureSteps | numSteps | ||
| ) |
Generates a new set of system wavelengths based on a Gaussian Quadrature method.
Usage (see Example 12 for a full sample)
C#
C++
Matlab
Python
- Parameters
-
minWave The starting wavelength (microns). maxWave The ending wavelength (microns). numSteps The total number of wavelengths (2-24).
- Returns
◆ GetWavelength()
| IWavelength ZOSAPI.SystemData.IWavelengths.GetWavelength | ( | int | position | ) |
Gets the specified wavelength."/>.
Usage (see Example 19 for a full sample)
C#
C++
Matlab
Python
- Parameters
-
position The wavelength * to retrieve (1-24).
- Returns
- The specified IWavelength, if the position is valid; otherwise,
null.
◆ RemoveWavelength()
| bool ZOSAPI.SystemData.IWavelengths.RemoveWavelength | ( | int | position | ) |
Removes the specified wavelength.
- Parameters
-
position The wavelength # to remove (1-24).
- Returns
- if the position is valid and there were at least two wavelengths in the system; otherwise,true.false
◆ SelectWavelengthPreset()
| bool ZOSAPI.SystemData.IWavelengths.SelectWavelengthPreset | ( | WavelengthPreset | preset | ) |
Replaces all system wavelengths with a preset definition.
Usage (see Example 15 for a full sample)
C#
C++
Matlab
Python
- Parameters
-
preset The new preset.
- Returns
Property Documentation
◆ NumberOfWavelengths
|
get |
Gets the number of wavelengths currently defined in the system.
Usage (see Example 22 for a full sample)
C#
C++
Matlab
Python
The number of wavelengths.