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.
|
| |
| new void | DeserializationPostProcessing (ref List< FieldInfo > unfindableFields, RemainingData remainingData) |
| | Method for some post processing after deserialization.
|
| |
| | DetectorResultObject (IDocument data, string detectorName, string subDetector="") |
| | Constructor if the detector returns an IDocument object (for example a DataArrayBase object).
|
| |
| | DetectorResultObject (List< PhysicalValue > data, string description) |
| | Constructor if the detector returns a list of PhysicalValue objects.
|
| |
| | DetectorResultObject (List< PhysicalValueBase > data, string description) |
| | Constructor if the detector returns a list of PhysicalValueBase objects.
|
| |
| override bool | Equals (object? otherObject, EqualityIntent equalityIntent) |
| | Determines whether the specified Object is equal to this instance.
|
| |
| IDocument | GetDataAsDocument () |
| | Gets the data as document.
|
| |
|
override int | GetHashCode () |
| |
| bool | IsCalculated () |
| | Flag which determines whether results are already inserted to the DetectorResultObject.
|
| |
| void | Show (DetectingDeviceBaseOSE generatingDetectingDevice, SnippetWithSourceCode? snippet=null, string caption="", LightPathLog? logger=null) |
| | Shows the specified generating detecting device. Shows a reference.
|
| |
| void | Show (Lightpath parentSetup, string caption="", LightPathLog logger=null) |
| | Shows the specified generating detecting device. Shows a reference.
|
| |
|
| string | CompleteTitle [get] |
| | Gets the complete title (description [= detector name] + sub-detector.
|
| |
|
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.
|
| |
|
string | SubDetector [get, set] |
| | Gets and sets the name of the sub-detector to which this result belongs.
|
| |
|
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/3]
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/3]
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() [3/3]
Constructor if the detector returns a list of PhysicalValueBase objects.
- 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.
◆ DeserializationPostProcessing()
| new void DeserializationPostProcessing |
( |
ref List< FieldInfo > | unfindableFields, |
|
|
RemainingData | remainingData ) |
Method for some post processing after deserialization.
- Parameters
-
| unfindableFields | Fields which could not be deserialized. |
| remainingData | Field data which are left and couldn't be matched to existing fields. |
◆ 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.
◆ GetDataAsDocument()
Gets the data as document.
- Returns
- The data as document.
null of the data is a list of physical values.
◆ IsCalculated()
Flag which determines whether results are already inserted to the DetectorResultObject.
- Returns
- TRUE: Results have already been added.
◆ Show() [1/2]
| void Show |
( |
DetectingDeviceBaseOSE | generatingDetectingDevice, |
|
|
SnippetWithSourceCode? | snippet = null, |
|
|
string | caption = "", |
|
|
LightPathLog? | logger = null ) |
Shows the specified generating detecting device. Shows a reference.
- Parameters
-
| generatingDetectingDevice | The generating detecting device. |
| snippet | Optional snippet that generated the result. |
| caption | The caption of the resulting document window. if this optional parameter is not specified, "{subDetectorString} � {detectorString}" is used. |
| logger | Optional logger (for Classic Field Tracing). |
◆ Show() [2/2]
| void Show |
( |
Lightpath | parentSetup, |
|
|
string | caption = "", |
|
|
LightPathLog | logger = null ) |
Shows the specified generating detecting device. Shows a reference.
- Parameters
-
| parentSetup | The parent Optical containing the detector (and maybe detector add-on) which generated the result. |
| caption | The caption of the resulting document window. if this optional parameter is not specified, "{subDetectorString} � {detectorString}" is used. |
| logger | Optional logger (for Classic Field Tracing). |
◆ CompleteTitle
Gets the complete title (description [= detector name] + sub-detector.
Only the Description if SubDetector is empty or null, "{SubDetector} � {Description}" otherwise.