This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Class representing a the result of a detector. The result can be either a list of physical values or a single physical value, a VirtualLab document type, or a special object combining field data and view properties (ComplexAmplitudeView or HarmonicFieldsSetView).
More...
|
| override object | Clone () |
| | Creates a new object that is a copy of the current instance. More...
|
| |
| | DetectorResultObject (ComplexAmplitude data, string detectorName, string subDetector="") |
| | Constructor if the detector returns a ComplexAmplitude object. This constructor creates internally a ComplexAmplitudeView to set as data as the parameter run provides nice Combined Outputs only for a ComplexAmplitudeView, not a ComplexAmplitude. More...
|
| |
| | DetectorResultObject (HarmonicFieldsSet data, string detectorName, string subDetector="") |
| | Constructor if the detector returns a HarmonicFieldsSet object. This constructor creates internally a HarmonicFieldsSetView to set as data as the parameter run provides nice Combined Outputs only for a HarmonicFieldsSetView, not a HarmonicFieldsSet. More...
|
| |
| | DetectorResultObject (IDocument data, string detectorName, string subDetector="") |
| | Constructor if the detector returns an IDocument object (for example a DataArrayBase object). More...
|
| |
| | DetectorResultObject (List< PhysicalValue > data, string description) |
| | Constructor if the detector returns a list of PhysicalValue objects. More...
|
| |
| | DetectorResultObject (List< PhysicalValueBase > data, string description) |
| | Constructor if the detector returns a list of PhysicalValueBase objects. More...
|
| |
| | DetectorResultObject (PhysicalValueBase data, string description) |
| | Constructor if the detector returns a single PhysicalValueBase object. More...
|
| |
| override bool | Equals (object otherObject, EqualityIntent equalityIntent) |
| | Determines whether the specified Object is equal to this instance. More...
|
| |
| bool | IsCalculated () |
| | Flag which determines whether results are already inserted to the DetectorResultObject. More...
|
| |
| int | Show (LightPathLog logger) |
| | Shows the DetectorResultObject either in the "Detector Results" panel of the main window or as separate document. More...
|
| |
|
| string | CompleteTitle [get] |
| | Gets the complete title (description [= detector name] + sub-detector. More...
|
| |
|
object | Data [get] |
| | Gets the result data of the detector.
|
| |
| string | Description [get, set] |
| | Gets and sets the name of the detector to which this result belongs. More...
|
| |
| string | SubDetector [get, set] |
| | Gets and sets the name of the sub-detector to which this result belongs. More...
|
| |
|
Type | Type [get] |
| | Gets the type of the result data.
|
| |
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Class representing a the result of a detector. The result can be either a list of physical values or a single physical value, a VirtualLab document type, or a special object combining field data and view properties (ComplexAmplitudeView or HarmonicFieldsSetView).
◆ DetectorResultObject() [1/6]
Constructor if the detector returns an IDocument object (for example a DataArrayBase object).
- Parameters
-
| data | The result data of the detector. |
| detectorName | The name of the detector to which this result belongs. |
| subDetector | Optional name of the sub-detector to which this result belongs. |
- Exceptions
-
| System.ArgumentException | The given document is not serializable. |
◆ DetectorResultObject() [2/6]
Constructor if the detector returns a ComplexAmplitude object. This constructor creates internally a ComplexAmplitudeView to set as data as the parameter run provides nice Combined Outputs only for a ComplexAmplitudeView, not a ComplexAmplitude.
- Parameters
-
| data | The result data of the detector. |
| detectorName | The name of the detector to which this result belongs. |
| subDetector | Optional name of the sub-detector to which this result belongs. |
◆ DetectorResultObject() [3/6]
Constructor if the detector returns a HarmonicFieldsSet object. This constructor creates internally a HarmonicFieldsSetView to set as data as the parameter run provides nice Combined Outputs only for a HarmonicFieldsSetView, not a HarmonicFieldsSet.
- Parameters
-
| data | The result data of the detector. |
| detectorName | The name of the detector to which this result belongs. |
| subDetector | Optional name of the sub-detector to which this result belongs. |
◆ DetectorResultObject() [4/6]
Constructor if the detector returns a list of PhysicalValue objects.
- Parameters
-
| data | The result data of the detector. |
| description | The description of the detector. |
◆ DetectorResultObject() [5/6]
Constructor if the detector returns a list of PhysicalValueBase objects.
- Parameters
-
| data | The result data of the detector. |
| description | The description of the detector. |
◆ DetectorResultObject() [6/6]
Constructor if the detector returns a single PhysicalValueBase object.
- Parameters
-
| data | The result data of the detector. |
| description | The description of the detector. |
◆ Clone()
| override object Clone |
( |
| ) |
|
Creates a new object that is a copy of the current instance.
- Returns
- A new object that is a copy of this instance.
◆ Equals()
| override bool Equals |
( |
object |
otherObject, |
|
|
EqualityIntent |
equalityIntent |
|
) |
| |
Determines whether the specified Object is equal to this instance.
- Parameters
-
| otherObject | The Object to compare with this instance. |
| equalityIntent | Defines what kind of equality you want to check when comparing two objects, for example all values or just physical equality. |
- Returns
true if the specified Object is equal to this instance; otherwise, false.
◆ IsCalculated()
Flag which determines whether results are already inserted to the DetectorResultObject.
- Returns
- TRUE: Results have already been added.
◆ Show()
| int Show |
( |
LightPathLog |
logger | ) |
|
Shows the DetectorResultObject either in the "Detector Results" panel of the main window or as separate document.
- Parameters
-
| logger | The logger of the parent light path. If you use this function for an analyzer, insert "null" as there is no logging concept for analyzers. |
- Returns
- The index of the resulting document window if there is one. Otherwise -1 is returned.
◆ CompleteTitle
Gets the complete title (description [= detector name] + sub-detector.
Only the Description if SubDetector is empty or null, "{SubDetector} � {Description}" otherwise.
◆ Description
Gets and sets the name of the detector to which this result belongs.
◆ SubDetector
Gets and sets the name of the sub-detector to which this result belongs.