org.jzy3d.maths
Class GridLoader

java.lang.Object
  extended by org.jzy3d.maths.GridLoader
All Implemented Interfaces:
IColorMappable

Deprecated.

@Deprecated
public class GridLoader
extends java.lang.Object
implements IColorMappable

The GridLoader utility offers a way to convert coordinates mode. When input data is made of lists of x, y, and z points, and that these lists actually contain data that regularly lie on a squared grid (orthonormal grid), the GridLoader allows a smart retrieving of data by providing:


If some data are missing for representing this grid, missing data will be considered as NaN. The actual management of missing values is thus left to the object that loads these data.
In the following example, the o represent a NaN Z value, meaning that there was no (x[i],y[i],z[i]) triplet for representing it correctly:
11111111 y
11111111
11o11111
11111111
 
x


If some points are missing in the input list to generate a complete grid, the output grid will contain Z=NaN values for missing coordinates.

Author:
Martin Pernollet

Field Summary
 float[] x
          Deprecated.  
 float[] y
          Deprecated.  
 float[][] z
          Deprecated.  
 
Constructor Summary
GridLoader(float[] x, float[] y, float[] z)
          Deprecated. Initialize a GridLoader by parsing the square grid directly.
 
Method Summary
 void extrapolate(int n)
          Deprecated. Add extrapolated points on the grid.
 BoundingBox3d getBoundingBox()
          Deprecated. Return a BoundingBox indicating the bounds of the loaded data.
 java.util.List<Polygon> getExtrapolatedRingPolygons(float ringMax, IColorMap cmap, Color colorFactor)
          Deprecated.  
 java.util.List<Polygon> getInterpolatedRingPolygons(float ringMin, float ringMax, IColorMap cmap, Color colorFactor)
          Deprecated. Load data standing on an orthonormal grid.
 java.util.Vector<Polygon> getSquarePolygons(IColorMap cmap, Color colorFactor)
          Deprecated.  
 float getZMax()
          Deprecated. Retrieve the upper value boundary for a IColorMap.
 float getZMin()
          Deprecated. Retrieve the lower value boundary for a IColorMap.
 void setZMax(float zmax)
          Deprecated. Set the upper value boundary for a IColorMap.
 void setZMin(float zmin)
          Deprecated. Set the lower value boundary for a IColorMap.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public float[] x
Deprecated. 

y

public float[] y
Deprecated. 

z

public float[][] z
Deprecated. 
Constructor Detail

GridLoader

public GridLoader(float[] x,
                  float[] y,
                  float[] z)
Deprecated. 
Initialize a GridLoader by parsing the square grid directly. When the grid is parsed, the GridLoader may return either:
Method Detail

getBoundingBox

public BoundingBox3d getBoundingBox()
Deprecated. 
Return a BoundingBox indicating the bounds of the loaded data.

Returns:
a bounding box.

getSquarePolygons

public java.util.Vector<Polygon> getSquarePolygons(IColorMap cmap,
                                                   Color colorFactor)
Deprecated. 

getExtrapolatedRingPolygons

public java.util.List<Polygon> getExtrapolatedRingPolygons(float ringMax,
                                                           IColorMap cmap,
                                                           Color colorFactor)
Deprecated. 

extrapolate

public void extrapolate(int n)
Deprecated. 
Add extrapolated points on the grid. If the grid is too small for extrapolation, the arrays are maximized


getInterpolatedRingPolygons

public java.util.List<Polygon> getInterpolatedRingPolygons(float ringMin,
                                                           float ringMax,
                                                           IColorMap cmap,
                                                           Color colorFactor)
Deprecated. 
Load data standing on an orthonormal grid.
Each input point (i.e. the association of x[i], y[j], z[i][j]) will be represented by a polygon centered on this point. The default coordinates of this polygon will be: There are thus three types of polygons:

getZMin

public float getZMin()
Deprecated. 
Description copied from interface: IColorMappable
Retrieve the lower value boundary for a IColorMap.

Specified by:
getZMin in interface IColorMappable
Returns:
the minimum Z value

getZMax

public float getZMax()
Deprecated. 
Description copied from interface: IColorMappable
Retrieve the upper value boundary for a IColorMap.

Specified by:
getZMax in interface IColorMappable
Returns:
the maximum Z value

setZMin

public void setZMin(float zmin)
Deprecated. 
Description copied from interface: IColorMappable
Set the lower value boundary for a IColorMap.

Specified by:
setZMin in interface IColorMappable
Parameters:
zmin - the minimum Z value

setZMax

public void setZMax(float zmax)
Deprecated. 
Description copied from interface: IColorMappable
Set the upper value boundary for a IColorMap.

Specified by:
setZMax in interface IColorMappable
Parameters:
zmax - the maximum Z value