Class PointPair4
The basic PointPair class holds three data values (X, Y, Z). This class extends the basic PointPair to contain four data values (X, Y, Z, T).
Inherited Members
Namespace: ZedGraph
Assembly: ZedGraph.dll
Syntax
[Serializable]
public class PointPair4 : PointPair, ICloneable, ISerializable
Constructors
| Improve this Doc View SourcePointPair4()
Default Constructor
Declaration
public PointPair4()
PointPair4(Double, Double, Double, Double)
Creates a point pair with the specified X, Y, Z, and T value.
Declaration
public PointPair4(double x, double y, double z, double t)
Parameters
Type | Name | Description |
---|---|---|
Double | x | This pair's x coordinate. |
Double | y | This pair's y coordinate. |
Double | z | This pair's z coordinate. |
Double | t | This pair's t coordinate. |
PointPair4(Double, Double, Double, Double, String)
Creates a point pair with the specified X, Y, base value, and label (Tag).
Declaration
public PointPair4(double x, double y, double z, double t, string label)
Parameters
Type | Name | Description |
---|---|---|
Double | x | This pair's x coordinate. |
Double | y | This pair's y coordinate. |
Double | z | This pair's z coordinate. |
Double | t | This pair's t coordinate. |
String | label | This pair's string label (Tag) |
PointPair4(SerializationInfo, StreamingContext)
Constructor for deserializing objects
Declaration
protected PointPair4(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | A SerializationInfo instance that defines the serialized data |
StreamingContext | context | A StreamingContext instance that contains the serialized data |
PointPair4(PointPair4)
The PointPair4 copy constructor.
Declaration
public PointPair4(PointPair4 rhs)
Parameters
Type | Name | Description |
---|---|---|
PointPair4 | rhs | The basis for the copy. |
Fields
| Improve this Doc View Sourceschema3
Current schema value that defines the version of the serialized file
Declaration
public const int schema3 = 11
Field Value
Type | Description |
---|---|
Int32 |
T
This PointPair4's T coordinate.
Declaration
public double T
Field Value
Type | Description |
---|---|
Double |
Properties
| Improve this Doc View SourceIsInvalid4D
Readonly value that determines if either the X, Y, Z, or T coordinate in this PointPair4 is an invalid (not plotable) value. It is considered invalid if it is missing (equal to System.Double.Max), Infinity, or NaN.
Declaration
public bool IsInvalid4D { get; }
Property Value
Type | Description |
---|---|
Boolean | true if any value is invalid |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo instance with the data needed to serialize the target object
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | A SerializationInfo instance that defines the serialized data |
StreamingContext | context | A StreamingContext instance that contains the serialized data |
Overrides
| Improve this Doc View SourceToString(Boolean)
Format this PointPair4 value using the default format. Example: "( 12.345, -16.876 )". The two double values are formatted with the "g" format type.
Declaration
public string ToString(bool isShowZT)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isShowZT | true to show the third "Z" and fourth "T" value coordinates |
Returns
Type | Description |
---|---|
String | A string representation of the PointPair4 |
ToString(String, Boolean)
Format this PointPair value using a general format string.
Example: a format string of "e2" would give "( 1.23e+001, -1.69e+001 )".
If
Declaration
public string ToString(string format, bool isShowZT)
Parameters
Type | Name | Description |
---|---|---|
String | format | A format string that will be used to format each of the two double type values (see ToString()). |
Boolean | isShowZT | true to show the third "Z" or low dependent value coordinate |
Returns
Type | Description |
---|---|
String | A string representation of the PointPair |
ToString(String, String, String, String)
Format this PointPair value using different general format strings for the X, Y, and Z values. Example: a format string of "e2" would give "( 1.23e+001, -1.69e+001 )".
Declaration
public string ToString(string formatX, string formatY, string formatZ, string formatT)
Parameters
Type | Name | Description |
---|---|---|
String | formatX | A format string that will be used to format the X double type value (see ToString()). |
String | formatY | A format string that will be used to format the Y double type value (see ToString()). |
String | formatZ | A format string that will be used to format the Z double type value (see ToString()). |
String | formatT | A format string that will be used to format the T double type value (see ToString()). |
Returns
Type | Description |
---|---|
String | A string representation of the PointPair |