public class MapperContourMeshGenerator extends AbstractContourGenerator implements IContourMeshGenerator
Mapper
, and returns it
as a ContourMesh
.Modifier and Type | Field and Description |
---|---|
static float |
LINE_STRIP_WIDTH |
protected Mapper |
mapper |
static int |
MERGE_STRIP_DIST |
static int |
PIXEL_NEIGHBOUR_THRESHOLD |
protected Range |
xrange |
protected Range |
yrange |
maxValue, minValue, NON_CONTOUR
Constructor and Description |
---|
MapperContourMeshGenerator(Mapper mapper,
Range xrange,
Range yrange) |
Modifier and Type | Method and Description |
---|---|
protected void |
computeHeightMatrix(double[][] matrix,
int xRes,
int yRes)
Calculates the Height of the surface for each point in the XY plane
|
protected ContourMesh |
computeMesh(IContourColoringPolicy policy,
int xRes,
int yRes,
double[][] contours,
float planeAxe) |
protected IntegerCoord2d |
findNext(int i,
int j,
int width,
double[][] contours,
boolean[][] processed) |
protected LineStrip |
followContourFrom(DefaultContourColoringPolicy policy,
int i,
int j,
double[][] contours,
boolean[][] processed,
float planeAxe) |
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.
|
protected Coord3d |
map(int i,
int j,
double[][] contours) |
protected Coord3d |
map(int i,
int j,
double value,
double[][] contours) |
computeContour, computeContour, computeFilledContour, computeXYColors, extractCountours, quantizeMatrix, quantizeMatrix
public static int PIXEL_NEIGHBOUR_THRESHOLD
public static float LINE_STRIP_WIDTH
public static int MERGE_STRIP_DIST
protected Mapper mapper
protected Range xrange
protected Range yrange
public ContourMesh getContourMesh(IContourColoringPolicy policy, int xRes, int yRes, int nLevels, float planeAxe, boolean writeText)
getContourMesh
in interface IContourMeshGenerator
public ContourMesh getContourMesh(IContourColoringPolicy policy, int xRes, int yRes, double[] sortedLevels, float planeAxe, boolean writeText)
getContourMesh
in interface IContourMeshGenerator
public double[][] getContourMatrix(int xRes, int yRes, int nLevels)
getContourMatrix
in interface IContourGenerator
protected ContourMesh computeMesh(IContourColoringPolicy policy, int xRes, int yRes, double[][] contours, float planeAxe)
protected LineStrip followContourFrom(DefaultContourColoringPolicy policy, int i, int j, double[][] contours, boolean[][] processed, float planeAxe)
protected IntegerCoord2d findNext(int i, int j, int width, double[][] contours, boolean[][] processed)
protected Coord3d map(int i, int j, double[][] contours)
protected Coord3d map(int i, int j, double value, double[][] contours)
protected void computeHeightMatrix(double[][] matrix, int xRes, int yRes)
computeHeightMatrix
in class AbstractContourGenerator
Copyright © 2016. All rights reserved.