C# Class YAMP.PlotValue

Abstract base class for any plot.
Inheritance: Value
显示文件 Open project: FlorianRappl/YAMP Class Usage Examples

Private Properties

Property Type Description
RaisePlotChanged void

Public Methods

Method Description
Copy ( ) : Value

Passes a reference (not a copy!) to the current object.

PlotValue ( ) : System

Creates a new instance.

Update ( ) : void

Updates the data region, i.e. the complete plot.

UpdateLayout ( ) : void

Updates the layout of the plot, i.e. the properties of the plot itself.

UpdateProperties ( ) : void

Updates the properties of the plot series.

Protected Methods

Method Description
Convert ( MatrixValue m, Int32 offset, Int32 length ) : Double[]

Converts a given matrixvalue (seen as a vector) into a double array.

ConvertX ( MatrixValue m, Int32 dx, Int32 length, Int32 dy ) : Double[]

Converts only column values of the matrix into a double array.

ConvertY ( MatrixValue m, Int32 dy, Int32 length, Int32 dx ) : Double[]

Converts only row values of the matrix into a double array.

Generate ( Double minValue, Double step, Int32 count ) : Double[]

Generates an array of double values.

MakeArrayPeriodic ( Double values, Int32 n ) : Double[]

Increases the size of an array to n elements, repeating the containing elements.

Private Methods

Method Description
RaisePlotChanged ( String property ) : void

Invokes the OnPlotChanged event if it has been set.

Method Details

Convert() protected method

Converts a given matrixvalue (seen as a vector) into a double array.
protected Convert ( MatrixValue m, Int32 offset, Int32 length ) : Double[]
m MatrixValue The MatrixValue to convert.
offset System.Int32 The offset in the matrix (0 = start with 1st element).
length System.Int32 The number of elements to convert.
return Double[]

ConvertX() protected method

Converts only column values of the matrix into a double array.
protected ConvertX ( MatrixValue m, Int32 dx, Int32 length, Int32 dy ) : Double[]
m MatrixValue The MatrixValue to convert.
dx System.Int32 The offset in columns.
length System.Int32 The number of rows to consider.
dy System.Int32 The offset in rows.
return Double[]

ConvertY() protected method

Converts only row values of the matrix into a double array.
protected ConvertY ( MatrixValue m, Int32 dy, Int32 length, Int32 dx ) : Double[]
m MatrixValue The MatrixValue to convert.
dy System.Int32 The offset in rows.
length System.Int32 The number of columns to consider.
dx System.Int32 The offset in columns.
return Double[]

Copy() public method

Passes a reference (not a copy!) to the current object.
public Copy ( ) : Value
return Value

Generate() protected method

Generates an array of double values.
protected Generate ( Double minValue, Double step, Int32 count ) : Double[]
minValue Double The first value in the array.
step Double The difference between each element.
count System.Int32 The number of elements in the array.
return Double[]

MakeArrayPeriodic() protected method

Increases the size of an array to n elements, repeating the containing elements.
protected MakeArrayPeriodic ( Double values, Int32 n ) : Double[]
values Double The current array.
n System.Int32 The desired size of the array.
return Double[]

PlotValue() public method

Creates a new instance.
public PlotValue ( ) : System
return System

Update() public method

Updates the data region, i.e. the complete plot.
public Update ( ) : void
return void

UpdateLayout() public method

Updates the layout of the plot, i.e. the properties of the plot itself.
public UpdateLayout ( ) : void
return void

UpdateProperties() public method

Updates the properties of the plot series.
public UpdateProperties ( ) : void
return void