|
Programming Reference for VirtualLab Fusion
2022.1
|
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Support class containing various conversions between numerical data arrays or data array based documents and other documents.
More...
Static Public Member Functions | |
| static DataArray2D | CombineTwoDataArray1DAsNewDimensionsOfDataArray2D (DataArray1D xRepresentation, DataArray1D yRepresentation) |
| Method which combines two 1D data arrays (which has to represent identical data) to one 2D data array. Each of the input parameters represents one of the two dimensions. More... | |
| static DataArray2D | ConvertDataArray1DWithSubSetsToDataArray2D (DataArray1D dataArrayToConvert, AxisDirection newDirection, double samplingDistance_new, string commentAxis_new, PhysicalProperty propertyAxis_new, double coordinateOfFirstDataPoint_new) |
| Method for creating a 2D data array with one subset from a 1D data array with more than one subset. More... | |
| static DataArray2D | ConvertDataArray1DWithSubSetsToDataArray2D (DataArray1D dataArrayToConvert, AxisDirection newDirection, List< PhysicalValue > newCoordinates) |
| Method for creating a 2D data array with one subset from a 1D data array with more than one subset. More... | |
| static DataArrayGridLess | ConvertDataArray2DToDataArrayGridless (DataArray2D dataArray2D) |
| Converts the data array2 d to data array grid less. More... | |
| static ChromaticFieldsSetBase | ConvertHarmonicFieldsSetToChromaticFieldsSet (HarmonicFieldsSet hfs) |
| Converts a Harmonic Fields Set into a Chromatic Fields Set. More... | |
| static DataArrayBase | ConvertHarmonicFieldsSetToDataArray (HarmonicFieldsSet hfs, bool complexConversion, FieldQuantity fieldQuantity, InterpolationMethod interpolationMethodX, InterpolationMethod interpolationMethodY, VectorComponentModesForConversionToDataArray vectorComponentMode=VectorComponentModesForConversionToDataArray.ScalarField_U) |
| Converts a harmonic fields set to an equidistant data array. In a first step all member fields are interpolated to have the same sampling. Then all member fields are converted to a data array. The coordinates are calculated from the SamplingParameters and the IsSpectral information of the member field. Finally the resulting subsets are "merged" into the resulting data array. More... | |
| static DataArrayBase | ConvertHarmonicFieldToDataArray (ComplexAmplitude ca, bool complexConversion, FieldQuantity fieldQuantity, InterpolationMethod interpolationMethodX, InterpolationMethod interpolationMethodY, VectorComponentModesForConversionToDataArray vectorComponentMode=VectorComponentModesForConversionToDataArray.ScalarField_U) |
| Converts a harmonic field to an equidistant data array. The coordinates are calculated from the SamplingParameters and the IsSpectral information of the field. If the harmonic field is complex / real-valued, the resulting data array is also complex / real-valued. More... | |
| static ComplexAmplitude | ConvertNumericalDataArrayToComplexAmplitudeField (DataArrayBase dataArray2Bconverted, int subsetIndexForFieldXorU, int subsetIndexForFieldY, double wavelength, VectorC jonesVector, CartesianCoordinateSystem lfo_cs, out string warnings) |
| Method for conversion a Numerical DataArray1D or DataArray2D to an old Light Field Object, i.e. ComplexAmplitudeField. More... | |
| static ComplexAmplitude | ConvertNumericalDataArrayToComplexAmplitudeField (DataArrayBase dataArray2Bconverted, int subsetIndexForFieldXorU, int subsetIndexForFieldY, out string warnings) |
| Method for conversion a Numerical DataArray1D or DataArray2D to an old Light Field Object, i.e. ComplexAmplitudeField. More... | |
| static ComplexAmplitude | ConvertNumericalDataArrayToComplexAmplitudeField (DataArrayBase dataArray2Bconverted, int subsetIndexForFieldXorU, out string warnings) |
| Method for conversion a Numerical DataArray1D or DataArray2D to an old Light Field Object, i.e. globally polarized ComplexAmplitudeField. More... | |
| static DataArrayBase | ConvertOrderCollectionToDataArray (OrderCollection oc, double distanceForPositions) |
| Converts the given Order Collection document to a data array containing all data (plotted versus order number). More... | |
| static DataArrayBase | ConvertSetOfDataArraysToDataArray (ISetOfDataArrays setOfDataArrays) |
| Converts the set of data arrays to a single data array containing all subsets (possibly resampled). More... | |
| static DataArrayBase[] | ConvertSetOfDataArraysToDataArrays (this ISetOfDataArrays setOfDataArrays) |
| Extracts the array of data arrays forming a set of data arrays. Just to simplify usage of the ISetOfDataArrays interface. More... | |
| static DataArray1D | DecomposeSingleSubset2DDataArrayToMultiSubset1DDataArray (DataArray2D dataArray2D, AxisDirection directionForDecomposition) |
| Method that decomposes a 2D data array containing a single subset into a 1D data array with several subsets More... | |
| static DataArrayBase | ExtractComponentFromHarmonicFieldsSet (HarmonicFieldsSet hfsToExtract, HarmonicFieldComponents componentToExtract) |
| public support method to extract a vectorial component from an harmonic fields set More... | |
| static void | ExtractCrossProfile (DataArray2D dataArray2D, Vector position, out DataArray1D dataArrayX, out DataArray1D dataArrayY) |
| Extracts a cross profile (= profile line along both x- and y-direction at a certain position) from a certain position. More... | |
| static DataArray2D | MakeDataArray2DSeparable (DataArray2D dataArray) |
| Method which makes all subsets of a DataArray2D separable. More... | |
| static void | SeparateDataArray2DDimensions (DataArray2D dataArray, out DataArray1D daX, out DataArray1D daY) |
| Method which separates the dimensions of a DataArray2D. More... | |
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Support class containing various conversions between numerical data arrays or data array based documents and other documents.
|
static |
Method which combines two 1D data arrays (which has to represent identical data) to one 2D data array. Each of the input parameters represents one of the two dimensions.
| xRepresentation | 1D data array which represents the x-dimension. |
| yRepresentation | 1D data array which represents the y-dimension. |
| System.ArgumentException | The dimensionalities of the 1D data arrays are not equal. |
|
static |
Method for creating a 2D data array with one subset from a 1D data array with more than one subset.
| dataArrayToConvert | 1D data array to be converted. |
| newDirection | The new direction. |
| samplingDistance_new | New sampling distance. |
| commentAxis_new | New axis description. |
| propertyAxis_new | New coordinate's property. |
| coordinateOfFirstDataPoint_new | New coordinate's start point. |
| ArgumentException | The data array to convert must contain more than one subsets. or The physical properties of the data entries do not match. The conversion is not supported. |
|
static |
Method for creating a 2D data array with one subset from a 1D data array with more than one subset.
| dataArrayToConvert | 1D data array to be converted. |
| newDirection | The new direction. |
| newCoordinates | The coordinates for each data point (= former subset) on the new axis. |
| ArgumentException | The data array to convert must contain more than one subsets. or The physical properties of the data entries do not match. The conversion is not supported. |
|
static |
Converts the data array2 d to data array grid less.
| dataArray2D | The data array2 d. |
|
static |
Converts a Harmonic Fields Set into a Chromatic Fields Set.
| hfs | The HarmonicFieldsSet object to convert. |
|
static |
Converts a harmonic fields set to an equidistant data array. In a first step all member fields are interpolated to have the same sampling. Then all member fields are converted to a data array. The coordinates are calculated from the SamplingParameters and the IsSpectral information of the member field. Finally the resulting subsets are "merged" into the resulting data array.
| hfs | The HarmonicFieldSet to convert. |
| complexConversion | If set to true the whole field is converted. Otherwise the specified field quantity is extracted. |
| fieldQuantity | The field quantity to be extracted. This optional parameter only has an effect if complexConversion is false. |
| interpolationMethodX | The interpolation method x. |
| interpolationMethodY | The interpolation method y. |
| vectorComponentMode | Optional vector component mode for correct handling of locally polarized fields. In this case you can specify whether Ex, Ey or both Ex and Ey are converted. In the latter case, the resulting data array has two subsets. |
| System.ArgumentException | Harmonic Fields Set must not be null. or HarmonicFieldsSet must have at least one member field. |
|
static |
Converts a harmonic field to an equidistant data array. The coordinates are calculated from the SamplingParameters and the IsSpectral information of the field. If the harmonic field is complex / real-valued, the resulting data array is also complex / real-valued.
| ca | The ComplexAmplitude to convert. |
| complexConversion | If set to true the whole field is converted. Otherwise the specified field quantity is extracted. |
| fieldQuantity | The field quantity to be extracted. This optional parameter only has an effect if complexConversion is false. |
| interpolationMethodX | The interpolation method for the x-direction. |
| interpolationMethodY | The interpolation method for the y-direction. |
| vectorComponentMode | Optional vector component mode for correct handling of locally polarized fields. In this case you can specify whether Ex, Ey or both Ex and Ey are converted. In the latter case, the resulting data array has two subsets. |
| System.Exception | Case not found. |
|
static |
Method for conversion a Numerical DataArray1D or DataArray2D to an old Light Field Object, i.e. ComplexAmplitudeField.
| dataArray2Bconverted | Numerical DataArray1D or DataArray2D to be converted. |
| subsetIndexForFieldXorU | Index of the subset which shall provide the complex field for FieldX. |
| subsetIndexForFieldY | Index of the subset which shall provide the complex field for FieldY. Set to -1 if the result shall be globally polarized. |
| wavelength | Wavelength of the LFO. |
| jonesVector | Jones vector of the LFO if it will be globally polarized. |
| lfo_cs | Coordinate system of the LFO. |
| warnings | Out parameter containing possible warnings. |
| System.ArgumentException | The wavelength has to be a positive value. or Data Array has to be of type DataArray1D or DataArray2D. or Data Array to be converted must be of type 'Numerical'. |
|
static |
Method for conversion a Numerical DataArray1D or DataArray2D to an old Light Field Object, i.e. ComplexAmplitudeField.
| dataArray2Bconverted | Numerical DataArray1D or DataArray2D to be converted. |
| subsetIndexForFieldXorU | Index of the subset which shall provide the complex field for FieldX. |
| subsetIndexForFieldY | Index of the subset which shall provide the complex field for FieldY. Set to -1 if the result shall be globally polarized. |
| warnings | Out parameter containing possible warnings. |
|
static |
Method for conversion a Numerical DataArray1D or DataArray2D to an old Light Field Object, i.e. globally polarized ComplexAmplitudeField.
| dataArray2Bconverted | Numerical DataArray1D or DataArray2D to be converted. |
| subsetIndexForFieldXorU | Index of the subset which shall provide the complex field for FieldX. |
| warnings | Out parameter containing possible warnings. |
|
static |
Converts the given Order Collection document to a data array containing all data (plotted versus order number).
| oc | The Order Collection. |
| distanceForPositions | The distance, required for calculating the positions of the orders. |
|
static |
Converts the set of data arrays to a single data array containing all subsets (possibly resampled).
| setOfDataArrays | The set of data arrays. |
| System.ArgumentException | Set of Data Arrays must contain at least one data array. or The physical meanings of the data arrays must be all the same. |
|
static |
Extracts the array of data arrays forming a set of data arrays. Just to simplify usage of the ISetOfDataArrays interface.
| setOfDataArrays | The set of data arrays. |
| System.ArgumentException | Set of Data Arrays must contain at least one data array. |
|
static |
Method that decomposes a 2D data array containing a single subset into a 1D data array with several subsets
| dataArray2D | Data array to decompose |
| directionForDecomposition | Shall the data array be decomposed in x- or y-direction? |
| System.ArgumentException | Input data arrays may have one subset only. or Data array can be decomposed in x or y only. |
|
static |
public support method to extract a vectorial component from an harmonic fields set
| hfsToExtract | The harmonic fields set which shall be used for the evaluation |
| componentToExtract | The harmonic field component which shall be extracted |
|
static |
Extracts a cross profile (= profile line along both x- and y-direction at a certain position) from a certain position.
| dataArray2D | The 2D data array from which the cross profile is extracted. |
| position | The (x; y) position from which the cross profile is extracted. |
| dataArrayX | Out parameter returning the profile along x-direction. |
| dataArrayY | Out parameter returning the profile along y-direction. |
|
static |
Method which makes all subsets of a DataArray2D separable.
| dataArray | Data array (2D) to be made separable. |
|
static |
Method which separates the dimensions of a DataArray2D.
| dataArray | Data array (2D) to be separated. |
| daX | DataArray1D which represents the data along the x-coordinate. |
| daY | DataArray1D which represents the data along the y-coordinate. |