|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart3djava.ChartObj
com.quinncurtis.chart3djava.ChartDataset
com.quinncurtis.chart3djava.SimpleDataset
com.quinncurtis.chart3djava.SimpleDataset3D
com.quinncurtis.chart3djava.ContourDataset
public class ContourDataset
The ContourDataset class extends the SimpleDataset class, adding a third dimension (z-values) needed to produce a contour plot.
Field Summary |
---|
Fields inherited from class com.quinncurtis.chart3djava.ChartDataset |
---|
initialCondition, markLookaheadLimit |
Constructor Summary | |
---|---|
ContourDataset()
The default ContourDataset constructor. |
|
ContourDataset(CSV csv,
java.lang.String filename,
int rowskip,
int columnskip)
This constructor creates a new ContourDataset object from a file consisting of comma separated values. |
|
ContourDataset(java.lang.String sname,
ChartPoint3D[] grid)
This constructor creates a new ContourDataset object that will be placed in the specified coordinate system. |
|
ContourDataset(java.lang.String sname,
ChartPoint3D[] grid,
int rows,
int columns)
This constructor creates a new ContourDataset object that will be placed in the specified coordinate system. |
|
ContourDataset(java.lang.String sname,
double[] x,
double[] y,
double z)
This constructor creates a new ContourDataset object that will be placed in the specified coordinate system. |
|
ContourDataset(java.lang.String sname,
double[] x,
double[] y,
double[] z)
This constructor creates a new ContourDataset object that will be placed in the specified coordinate system. |
|
ContourDataset(java.lang.String sname,
int rows,
int columns,
double x1,
double y1,
double x2,
double y2,
SurfaceFunction sf)
This constructor creates a new ContourDataset object that will be placed in the specified coordinate system. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns an object that is a clone of this ContourDataset object. |
void |
copy(ContourDataset source)
Copies the source dataset. |
int |
errorCheck(int nerror)
Checks the current dataset object for common errors. |
Polysurface |
getPolysurface()
Returns the private Polysurface structure used to organize the dataset data points as a polysurface suitable for contour plot analysis. |
void |
resetBuffer()
This method resets the buffer back to its original state. |
int |
resize(int n)
Resizes the dataset, maintaining the original data. |
Methods inherited from class com.quinncurtis.chart3djava.SimpleDataset3D |
---|
calcNearestPoint, compressSimpleDataset3D, copy, getDataPoint, getDataPoint3D, getDatasetMax, getDatasetMin, getFastClipDataset, getFirstValidIndex, getimplicitZValue, getNumberGroups, getZData, getZDataObj, getZDataValue, isDataPointGood, readSimpleDataset3D, ResetBuffer, Resize, setDataPoint, setDataPoint, setimplicitZValue, setZData, setZDataValue, swapCoordinate, writeSimpleDataset3D |
Methods inherited from class com.quinncurtis.chart3djava.SimpleDataset |
---|
addDataPoint, addDataPoint, checkValidData, checkValidDataX, checkValidDataY, combineDataset, compressSimpleDataset, convertToMovingAverage, copy, deleteDataPoint, getAverageY, getGroupDatasetSumMax, getGroupDatasetSumMin, getSumY, getYData, getYDataObj, getYDataValue, getYDataValue, initDataset, initDataset, initDataset, initializeData, initializeData, insertDataPoint, insertDataPoint, insertDatapointsAtCrossover, readSimpleDataset, setDataPoint, setYData, setYData, setYDataValue, setYDataValue, sortByX, writeSimpleDataset, writeSimpleDataset |
Methods inherited from class com.quinncurtis.chart3djava.ChartObj |
---|
copy, getChartObjIDCntr, getChartObjType, getThisChartObjID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContourDataset(java.lang.String sname, ChartPoint3D[] grid, int rows, int columns)
sname
- Specifies the name of the dataset.grid
- An array, size [rows columns] of ChartPoint3D points, that specifies the xyz
values of a dataset. The data points must form an regular grid in the xy plane. A regular grid is
one where the x-increment between adjacent x values is fixed, as is the y-increment. The x-increment
and the y-increment do not have to be the same.rows
- Specifies the number of rows (in the y direction) in the regular grid.columns
- Specifies the number of columns (in the x direction) in the regular grid.public ContourDataset(java.lang.String sname, ChartPoint3D[] grid)
sname
- Specifies the name of the dataset.grid
- An array of ChartPoint3D points, that specifies the xyz values of a dataset.
The data points do not have to form an regular grid in the xy plane. A triangularization function is
run on the data points to define a surface.public ContourDataset(java.lang.String sname, double[] x, double[] y, double[] z)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of the dataset.y
- An array that specifies the y-values of the dataset.z
- An array that specifies the z-values of the dataset. The data points do not have to
form an regular grid in the xy plane. A triangularization function is run on the data points to define a surface.public ContourDataset(java.lang.String sname, double[] x, double[] y, double z)
sname
- Specifies the name of the dataset.x
- An array that specifies the x-values of the dataset.y
- An array that specifies the y-values of the dataset.z
- A single value used to initialize the z-values of the dataset. The data points do not have to
form an regular grid in the xy plane. A triangularization function is run on the data points to define a surface.public ContourDataset(java.lang.String sname, int rows, int columns, double x1, double y1, double x2, double y2, SurfaceFunction sf)
sname
- Specifies the name of the dataset.rows
- Specifies the number of rows (or y-values) to evaluate the function over.columns
- Specifies the number of columns (or x-values) to evaluate the function over.x1
- y1
- x2
- y2
- The Surface function sf is evaluated for the range x1,y1 to x2, y2.sf
- The dataset data points are created by evaluating the SurfaceFunction across
the range x1,y1 to x2, y2.
public ContourDataset(CSV csv, java.lang.String filename, int rowskip, int columnskip)
csv
- An instance of an CSV object.filename
- The name of the file.rowskip
- Skip this many rows before starting the read operation.columnskip
- For each row of data, skip this many columns before reading the first
value from the row.public ContourDataset()
Method Detail |
---|
public int errorCheck(int nerror)
errorCheck
in class SimpleDataset3D
nerror
- Current error state.
public void copy(ContourDataset source)
source
- The source dataset object.public java.lang.Object clone()
clone
in class SimpleDataset3D
public int resize(int n)
resize
in class SimpleDataset
n
- The new size of the dataset.
public void resetBuffer()
resetBuffer
in class SimpleDataset
public Polysurface getPolysurface()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |