Package org.jzy3d.contour
Class MapperContourPictureGenerator
- java.lang.Object
-
- org.jzy3d.contour.AbstractContourGenerator
-
- org.jzy3d.contour.MapperContourPictureGenerator
-
- All Implemented Interfaces:
IContourGenerator,IContourPictureGenerator
public class MapperContourPictureGenerator extends AbstractContourGenerator implements IContourPictureGenerator
Computes the contour matrix of aMapper, and returns it as aBufferedImage.- Author:
- Juan Barandiaran, Martin Pernollet
-
-
Field Summary
Fields Modifier and Type Field Description static floatLINE_STRIP_WIDTHprotected Mappermapperstatic intMERGE_STRIP_DISTstatic intPIXEL_NEIGHBOUR_THRESHOLDprotected Rangexrangeprotected Rangeyrange-
Fields inherited from class org.jzy3d.contour.AbstractContourGenerator
maxValue, minValue, NON_CONTOUR
-
-
Constructor Summary
Constructors Constructor Description MapperContourPictureGenerator(Mapper mapper, Range xrange, Range yrange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BufferedImagebuildImage(int xRes, int yRes, double[][] contours, IContourColoringPolicy policy)protected voidcomputeHeightMatrix(double[][] matrix, int xRes, int yRes)Calculates the Height of the surface for each point in the XY planeBufferedImagegetContourImage(IContourColoringPolicy policy, int xRes, int yRes, double[] sortedLevels)BufferedImagegetContourImage(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)double[][]getContourMatrix(int xRes, int yRes, int nLevels)BufferedImagegetFilledContourImage(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)BufferedImagegetHeightMap(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)-
Methods inherited from class org.jzy3d.contour.AbstractContourGenerator
computeContour, computeContour, computeFilledContour, computeXYColors, extractCountours, quantizeMatrix, quantizeMatrix
-
-
-
-
Method Detail
-
getContourMatrix
public double[][] getContourMatrix(int xRes, int yRes, int nLevels)- Specified by:
getContourMatrixin interfaceIContourGenerator
-
getContourImage
public BufferedImage getContourImage(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)
- Specified by:
getContourImagein interfaceIContourPictureGenerator
-
getContourImage
public BufferedImage getContourImage(IContourColoringPolicy policy, int xRes, int yRes, double[] sortedLevels)
- Specified by:
getContourImagein interfaceIContourPictureGenerator
-
getFilledContourImage
public BufferedImage getFilledContourImage(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)
- Specified by:
getFilledContourImagein interfaceIContourPictureGenerator
-
getHeightMap
public BufferedImage getHeightMap(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)
- Specified by:
getHeightMapin interfaceIContourPictureGenerator
-
buildImage
protected BufferedImage buildImage(int xRes, int yRes, double[][] contours, IContourColoringPolicy policy)
-
computeHeightMatrix
protected void computeHeightMatrix(double[][] matrix, int xRes, int yRes)Calculates the Height of the surface for each point in the XY plane- Specified by:
computeHeightMatrixin classAbstractContourGenerator
-
-