|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jzy3d.contour.AbstractContourGenerator
public abstract class AbstractContourGenerator
The AbstractContourGenerator provides various utility fonctions
to compute core contour matrices.
A concrete generator should implement computeHeightMatrix()
according to the input object on which one desire to compute a contour
(Mapper
s, Shape
s, etc).
Field Summary | |
---|---|
protected double |
maxValue
|
protected double |
minValue
|
protected static double |
NON_CONTOUR
|
Constructor Summary | |
---|---|
AbstractContourGenerator()
|
Method Summary | |
---|---|
protected double[][] |
computeContour(int xRes,
int yRes,
double[] sortedLevels)
Calculates the points in the XY plane that belong to a contour whose height is defined by the user in an array |
protected double[][] |
computeContour(int xRes,
int yRes,
int nLevels)
Calculates the points in the XY plane that belong to a contour |
protected double[][] |
computeFilledContour(int xRes,
int yRes,
int nLevels)
To paint the contours in the XY plane filling with color between contour and contour |
protected abstract void |
computeHeightMatrix(double[][] matrix,
int xRes,
int yRes)
|
protected double[][] |
computeXYColors(int xRes,
int yRes,
int nLevels)
Having the colors of the surface on the XY plane gives a lot of info in some surfaces |
protected void |
extractCountours(double[][] contours,
double[][] matrix,
int xSpan,
int ySpan)
A point belongs to the contour if it is bigger than anyone of the surrounding points of the Quantized matrix It is NOT part of the contour if it is equal (or smaller) to all the surrounding points |
protected void |
quantizeMatrix(double[][] matrix,
double[] sortedLevels)
Force the input matrix to have the minimum bigger value of the user provided sortedLevels list |
protected void |
quantizeMatrix(double[][] matrix,
double min,
double max,
int n)
Force the input matrix to have values rounded to one of the N steps in the range [min;max]. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static double NON_CONTOUR
protected double minValue
protected double maxValue
Constructor Detail |
---|
public AbstractContourGenerator()
Method Detail |
---|
protected abstract void computeHeightMatrix(double[][] matrix, int xRes, int yRes)
protected double[][] computeContour(int xRes, int yRes, int nLevels)
protected double[][] computeContour(int xRes, int yRes, double[] sortedLevels)
protected double[][] computeFilledContour(int xRes, int yRes, int nLevels)
protected double[][] computeXYColors(int xRes, int yRes, int nLevels)
protected void quantizeMatrix(double[][] matrix, double[] sortedLevels)
protected void quantizeMatrix(double[][] matrix, double min, double max, int n)
protected void extractCountours(double[][] contours, double[][] matrix, int xSpan, int ySpan)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |