Class ChromaticFieldsSet
- Namespace
- VirtualLabAPI.Core.FieldRepresentations
- Assembly
- VirtualLabAPI.dll
Class for a two-dimensional Chromatic Fields Set.
[Serializable]
public class ChromaticFieldsSet : ChromaticFieldsSetBase, ISerializable, IDeserializationCallback, IDocument, IEquatable<IObjectBase>, ICloneable
- Inheritance
-
ObjectBaseSerializableObjectBaseManualSerializationDocumentBaseChromaticFieldsSet
- Implements
-
IEquatable<IObjectBase>
- Inherited Members
- Extension Methods
Constructors
ChromaticFieldsSet(ChromaticFieldsSet)
Copy constructor
public ChromaticFieldsSet(ChromaticFieldsSet chromaticFieldsSet)
Parameters
chromaticFieldsSetChromaticFieldsSetChromaticFieldsSet to copy
ChromaticFieldsSet(DataArray2D, List<double>, ChromaticFieldsSetType, bool)
standard constructor
public ChromaticFieldsSet(DataArray2D datasets, List<double> wavelengths, ChromaticFieldsSetType typeOfChromaticFieldsSet = ChromaticFieldsSetType.Unspecified, bool spectrumIsDiscrete = true)
Parameters
datasetsDataArray2Dthe dataset which shall be stores within the ChromaticFieldsSet
wavelengthsList<double>the list of wavelength which shall be stores within the ChromaticFieldsSet
typeOfChromaticFieldsSetChromaticFieldsSetTypeadditional information of the type of the chromatic fields set
spectrumIsDiscretebooladditional information to define whether the wavelengths information within the chromatic fields set shall be interpreted discrete or continuous
Exceptions
- NotEquidistantException
- ArgumentException
Chromatic Fields Sets that shall represent intensities may not contain complex or negative values.
Properties
Stored2DDataSets
public get property for the internal stored DataArray2D
public virtual DataArray2D Stored2DDataSets { get; }
Property Value
StoredDataSets
The underlying data as DataArrayBase.
public override DataArrayBase StoredDataSets { get; }
Property Value
Methods
Clone()
Deep copy
public override object Clone()
Returns
- object
Deep copy of this
Equals(object, EqualityIntent)
Determines whether the specified object is equal to this instance.
public override bool Equals(object otherObject, EqualityIntent equalityIntent)
Parameters
otherObjectobjectThe object to compare with this instance.
equalityIntentEqualityIntentDefines what kind of equality you want to check when comparing two objects, for example all values or just physical equality.
Returns
GetNewDocumentWindow(Form, string)
Gets a new document window containing this document.
public override FormDocument GetNewDocumentWindow(Form formMain, string fileName)
Parameters
formMainFormReference to the main form (= MDI parent). Can be
nullif this form will not be shown (e.g. if it is generated just to get the view settings.fileNamestringFile name from which the document was opened for inserting into window caption. If this string is empty, the default document name is used.
Returns
- FormDocument
A VirtualLabAPI.UI.BasicUI.FormDocument containing this document.
GetSumOfAllSubsets()
Calculates a DataArray with a single subset containing the sum of all subsets of this
public override DataArrayBase GetSumOfAllSubsets()
Returns
- DataArrayBase
DataArray with a single subset containing the sum of all subsets of this
Load(string)
Loads the specified file name. Works independently from whether the document has been saved without view settings (as prior to VirtualLab 6.0) or with view settings.
public static ChromaticFieldsSet Load(string fileName)
Parameters
fileNamestringName of the file.
Returns
- ChromaticFieldsSet
The specified document.
ToString()
overridden to string method of the chromatic fields set class
public override string ToString()
Returns
- string
the string description of the chromatic fields set class