Class ComplexAmplitudeView
- Namespace
- VirtualLabAPI.Core.FieldRepresentations
- Assembly
- VirtualLabAPI.dll
Class which combines a complex amplitude with view settings.
[Serializable]
public class ComplexAmplitudeView : ManualSerialization, IEquatable<IObjectBase>, ISerializable, IDeserializationCallback, IDisposable, ICloneable
- Inheritance
-
ObjectBaseSerializableObjectBaseManualSerializationComplexAmplitudeView
- Implements
-
IEquatable<IObjectBase>
- Inherited Members
Constructors
ComplexAmplitudeView(ComplexAmplitude)
Constructor using default view settings.
public ComplexAmplitudeView(ComplexAmplitude complexAmplitude)
Parameters
complexAmplitudeComplexAmplitudeThe complex amplitude with which the class shall be initialized.
ComplexAmplitudeView(ComplexAmplitude, ViewProperties)
Default constructor
public ComplexAmplitudeView(ComplexAmplitude complexAmplitude, ViewProperties viewSettings)
Parameters
complexAmplitudeComplexAmplitudeThe complex amplitude with which the class shall be initialized.
viewSettingsViewPropertiesThe view properties with which the class shall be initialized.
ComplexAmplitudeView(ComplexAmplitude, ViewProperties, string)
Default constructor
public ComplexAmplitudeView(ComplexAmplitude complexAmplitude, ViewProperties viewSettings, string comment)
Parameters
complexAmplitudeComplexAmplitudeThe complex amplitude with which the class shall be initialized.
viewSettingsViewPropertiesThe view properties with which the class shall be initialized.
commentstringComment being displayed in parameter run (subdetector)
Fields
Comment
Comment to be displayed.
public string Comment
Field Value
ComplexAmplitude
The underlying complex amplitude.
public ComplexAmplitude ComplexAmplitude
Field Value
Properties
ViewSettings
Gets and sets the view settings which shall be applied to the complex amplitude.
public ViewProperties ViewSettings { get; set; }
Property Value
- ViewProperties
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override object Clone()
Returns
- object
A new object that is a copy of this instance.
Dispose()
Dispose functionality
public void Dispose()
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
ManualSerializationExceptionHandling(SerializationInfo, StreamingContext, FieldInfo)
This method normally has to be overridden by derived classes by their own exception handling. Especially version problems due to late changes on a VL class has to be handled THERE by
- check if fInfo.DeclaringType == typeof({Classname}), if so : 2a. proper handling of the missing or spare or renamed value, (sometimes (for PROTECTED variables?) you have to add the class name as a prefix: "classname+variablename") if not: 2b. call of the base class implementation of this method.
public override void ManualSerializationExceptionHandling(SerializationInfo sInfo, StreamingContext context, FieldInfo fInfo)
Parameters
sInfoSerializationInfoSerialization info containing the data.(see also .Net documentation)
contextStreamingContextSerialization context (see also .Net documentation).
fInfoFieldInfoField that failed during deserialization.
Show(string, bool, Action<FormDocument>)
Shows the complex amplitude with the corresponding view settings.
public void Show(string caption, bool cloneDocument = true, Action<FormDocument> changeFormAfterShow = null)
Parameters
captionstringThe caption of the shown document.
cloneDocumentboolIf set this optional parameter is set to
falsethis document is shown. Otherwise a cloned copy of this document is shown.changeFormAfterShowAction<FormDocument>Optional method which is called after the document window is shown. In this way you can change view settings of the form if required.
ToString()
overridden ToString() function. Used for parameter run.
public override string ToString()
Returns
- string
The name of the object as string.