org.jzy3d.contour
Class MapperContourMeshGenerator

java.lang.Object
  extended by org.jzy3d.contour.AbstractContourGenerator
      extended by org.jzy3d.contour.MapperContourMeshGenerator
All Implemented Interfaces:
IContourGenerator, IContourMeshGenerator

public class MapperContourMeshGenerator
extends AbstractContourGenerator
implements IContourMeshGenerator

Computes the contour matrix of a Mapper, and returns it as a ContourMesh.

Author:
Juan Barandiaran, Martin Pernollet

Field Summary
static float LINE_STRIP_WIDTH
           
static int MERGE_STRIP_DIST
           
static int PIXEL_NEIGHBOUR_THRESHOLD
           
 
Constructor Summary
MapperContourMeshGenerator(Mapper mapper, Range xrange, Range yrange)
           
 
Method Summary
 double[][] getContourMatrix(int xRes, int yRes, int nLevels)
           
 ContourMesh getContourMesh(IContourColoringPolicy policy, int xRes, int yRes, double[] sortedLevels, float planeAxe, boolean writeText)
          Extracts contour lines from the contour dots matrix of contours at user-defined Heigths in sortedLevels
 ContourMesh getContourMesh(IContourColoringPolicy policy, int xRes, int yRes, int nLevels, float planeAxe, boolean writeText)
          Extracts contour lines from the contour dots matrix of nLevels number of contours.
 
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

MapperContourMeshGenerator

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

getContourMesh

public ContourMesh getContourMesh(IContourColoringPolicy policy,
                                  int xRes,
                                  int yRes,
                                  int nLevels,
                                  float planeAxe,
                                  boolean writeText)
Extracts contour lines from the contour dots matrix of nLevels number of contours. Return a MeshContour that cleanly describes

Specified by:
getContourMesh in interface IContourMeshGenerator

getContourMesh

public ContourMesh getContourMesh(IContourColoringPolicy policy,
                                  int xRes,
                                  int yRes,
                                  double[] sortedLevels,
                                  float planeAxe,
                                  boolean writeText)
Extracts contour lines from the contour dots matrix of contours at user-defined Heigths in sortedLevels

Specified by:
getContourMesh in interface IContourMeshGenerator

getContourMatrix

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