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 a Mapper
, and returns it
as a BufferedImage
.
- Author:
- Juan Barandiaran, Martin Pernollet
Method Summary |
protected BufferedImage |
buildImage(int xRes,
int yRes,
double[][] contours,
IContourColoringPolicy policy)
|
protected void |
computeHeightMatrix(double[][] matrix,
int xRes,
int yRes)
Calculates the Height of the surface for each point in the XY plane |
BufferedImage |
getContourImage(IContourColoringPolicy policy,
int xRes,
int yRes,
double[] sortedLevels)
|
BufferedImage |
getContourImage(IContourColoringPolicy policy,
int xRes,
int yRes,
int nLevels)
|
double[][] |
getContourMatrix(int xRes,
int yRes,
int nLevels)
|
BufferedImage |
getFilledContourImage(IContourColoringPolicy policy,
int xRes,
int yRes,
int nLevels)
|
BufferedImage |
getHeightMap(IContourColoringPolicy policy,
int xRes,
int yRes,
int nLevels)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PIXEL_NEIGHBOUR_THRESHOLD
public static int PIXEL_NEIGHBOUR_THRESHOLD
LINE_STRIP_WIDTH
public static float LINE_STRIP_WIDTH
MERGE_STRIP_DIST
public static int MERGE_STRIP_DIST
mapper
protected Mapper mapper
xrange
protected Range xrange
yrange
protected Range yrange
MapperContourPictureGenerator
public MapperContourPictureGenerator(Mapper mapper,
Range xrange,
Range yrange)
getContourMatrix
public double[][] getContourMatrix(int xRes,
int yRes,
int nLevels)
- Specified by:
getContourMatrix
in interface IContourGenerator
getContourImage
public BufferedImage getContourImage(IContourColoringPolicy policy,
int xRes,
int yRes,
int nLevels)
- Specified by:
getContourImage
in interface IContourPictureGenerator
getContourImage
public BufferedImage getContourImage(IContourColoringPolicy policy,
int xRes,
int yRes,
double[] sortedLevels)
- Specified by:
getContourImage
in interface IContourPictureGenerator
getFilledContourImage
public BufferedImage getFilledContourImage(IContourColoringPolicy policy,
int xRes,
int yRes,
int nLevels)
- Specified by:
getFilledContourImage
in interface IContourPictureGenerator
getHeightMap
public BufferedImage getHeightMap(IContourColoringPolicy policy,
int xRes,
int yRes,
int nLevels)
- Specified by:
getHeightMap
in interface IContourPictureGenerator
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:
computeHeightMatrix
in class AbstractContourGenerator
Copyright © 2013. All rights reserved.