C# Class YAMP.SurfacePlotValue

Contains the data for surface and mesh plots.
Inheritance: XYZPlotValue
ファイルを表示 Open project: FlorianRappl/YAMP Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddPoints ( MatrixValue m ) : void

Sets the function values given in the matrix m with generated values for x and y.

AddPoints ( MatrixValue x, MatrixValue y, MatrixValue z ) : void

Sets the z values given in the matrix m with the corresponding x and y values.

Deserialize ( byte content ) : Value

Converts a set of bytes to a new instance.

Serialize ( ) : byte[]

Converts the given instance to an array of bytes.

SurfacePlotValue ( ) : System

Creates a new SurfacePlot.

this ( int index ) : Points

Gets one particular series of the surface plot (we only have 1 surface plot series!).

this ( int index, int point ) : Vertex

Gets one particular point of the surface plot.

Method Details

AddPoints() public method

Sets the function values given in the matrix m with generated values for x and y.
public AddPoints ( MatrixValue m ) : void
m MatrixValue The values for the plot.
return void

AddPoints() public method

Sets the z values given in the matrix m with the corresponding x and y values.
public AddPoints ( MatrixValue x, MatrixValue y, MatrixValue z ) : void
x MatrixValue The matrix with the x values.
y MatrixValue The matrix with the y values.
z MatrixValue The matrix with the function values / z values.
return void

Deserialize() public method

Converts a set of bytes to a new instance.
public Deserialize ( byte content ) : Value
content byte The binary representation.
return Value

Serialize() public method

Converts the given instance to an array of bytes.
public Serialize ( ) : byte[]
return byte[]

SurfacePlotValue() public method

Creates a new SurfacePlot.
public SurfacePlotValue ( ) : System
return System

this() public method

Gets one particular series of the surface plot (we only have 1 surface plot series!).
public this ( int index ) : Points
index int Obsolete - all the same.
return Points

this() public method

Gets one particular point of the surface plot.
public this ( int index, int point ) : Vertex
index int Obsolete - all the same.
point int The vertex to get (0.. N - 1, where N is the number of points).
return Vertex