org.jzy3d.contour
Class MapperContourPictureGenerator

java.lang.Object
  extended by org.jzy3d.contour.AbstractContourGenerator
      extended by 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

Field Summary
static float LINE_STRIP_WIDTH
           
static int MERGE_STRIP_DIST
           
static int PIXEL_NEIGHBOUR_THRESHOLD
           
 
Constructor Summary
MapperContourPictureGenerator(Mapper mapper, Range xrange, Range yrange)
           
 
Method Summary
 java.awt.image.BufferedImage getContourImage(IContourColoringPolicy policy, int xRes, int yRes, double[] sortedLevels)
           
 java.awt.image.BufferedImage getContourImage(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)
           
 double[][] getContourMatrix(int xRes, int yRes, int nLevels)
           
 java.awt.image.BufferedImage getFilledContourImage(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)
           
 java.awt.image.BufferedImage getHeightMap(IContourColoringPolicy policy, int xRes, int yRes, int nLevels)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MapperContourPictureGenerator

public MapperContourPictureGenerator(Mapper mapper,
                                     Range xrange,
                                     Range yrange)
Method Detail

getContourMatrix

public double[][] getContourMatrix(int xRes,
                                   int yRes,
                                   int nLevels)
Specified by:
getContourMatrix in interface IContourGenerator

getContourImage

public java.awt.image.BufferedImage getContourImage(IContourColoringPolicy policy,
                                                    int xRes,
                                                    int yRes,
                                                    int nLevels)
Specified by:
getContourImage in interface IContourPictureGenerator

getContourImage

public java.awt.image.BufferedImage getContourImage(IContourColoringPolicy policy,
                                                    int xRes,
                                                    int yRes,
                                                    double[] sortedLevels)
Specified by:
getContourImage in interface IContourPictureGenerator

getFilledContourImage

public java.awt.image.BufferedImage getFilledContourImage(IContourColoringPolicy policy,
                                                          int xRes,
                                                          int yRes,
                                                          int nLevels)
Specified by:
getFilledContourImage in interface IContourPictureGenerator

getHeightMap

public java.awt.image.BufferedImage getHeightMap(IContourColoringPolicy policy,
                                                 int xRes,
                                                 int yRes,
                                                 int nLevels)
Specified by:
getHeightMap in interface IContourPictureGenerator