public class MarchingSquares
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
MarchingSquares.ContourVertex |
private class |
MarchingSquares.Triangle |
Modifier and Type | Field and Description |
---|---|
static int |
CONTOUR_POINT |
private boolean |
contourFromZero |
(package private) float |
contourPlaneMaximumValue |
(package private) float |
contourPlaneMinimumValue |
private float[] |
contoursDiscrete |
private int |
contourType |
private float[] |
contourValuesUsed |
int |
contourVertexCount |
(package private) MarchingSquares.ContourVertex[] |
contourVertexes |
static int |
defaultContourCount |
static int |
EDGE_POINT |
(package private) java.util.Hashtable |
htPts |
private static int |
nContourMax |
private int |
nContourSegments |
(package private) javax.vecmath.Point3f |
pointA |
(package private) javax.vecmath.Point3f |
pointB |
(package private) javax.vecmath.Point3f |
ptTemp |
(package private) VertexDataServer |
surfaceReader |
(package private) int |
thisContour |
private int |
triangleCount |
private MarchingSquares.Triangle[] |
triangles |
private float |
valueMax |
private float |
valueMin |
static int |
VERTEX_POINT |
(package private) VolumeData |
volumeData |
Constructor and Description |
---|
MarchingSquares(VertexDataServer surfaceReader,
VolumeData volumeData,
javax.vecmath.Point4f thePlane,
float[] contoursDiscrete,
int nContours,
int thisContour,
boolean contourFromZero) |
Modifier and Type | Method and Description |
---|---|
private void |
addAllTriangles() |
int |
addContourVertex(int x,
int y,
int z,
javax.vecmath.Point3i offsets,
javax.vecmath.Point3f vertexXYZ,
float value) |
int |
addTriangle(int iA,
int iB,
int iC,
int check,
int check2) |
(package private) float |
calcContourPoint(float cutoff,
float valueA,
float valueB,
javax.vecmath.Point3f pt) |
private boolean |
createContours(float min,
float max,
float zeroOffset) |
int |
generateContourData(boolean haveData,
float zeroOffset) |
int |
getContourType() |
float[] |
getContourValues() |
float[] |
getMinMax() |
private void |
getVertexValues(boolean haveData) |
void |
setContourData(int i,
float value) |
void |
setMinMax(float valueMin,
float valueMax) |
public static final int CONTOUR_POINT
public static final int VERTEX_POINT
public static final int EDGE_POINT
VertexDataServer surfaceReader
VolumeData volumeData
private static final int nContourMax
public static final int defaultContourCount
private int nContourSegments
private int contourType
int thisContour
private float valueMin
private float valueMax
final javax.vecmath.Point3f pointA
final javax.vecmath.Point3f pointB
private boolean contourFromZero
private float[] contoursDiscrete
public int contourVertexCount
MarchingSquares.ContourVertex[] contourVertexes
float contourPlaneMinimumValue
float contourPlaneMaximumValue
private float[] contourValuesUsed
final javax.vecmath.Point3f ptTemp
private int triangleCount
private MarchingSquares.Triangle[] triangles
java.util.Hashtable htPts
public MarchingSquares(VertexDataServer surfaceReader, VolumeData volumeData, javax.vecmath.Point4f thePlane, float[] contoursDiscrete, int nContours, int thisContour, boolean contourFromZero)
surfaceReader
- volumeData
- thePlane
- NOT USEDcontoursDiscrete
- nContours
- thisContour
- contourFromZero
- public int getContourType()
public void setMinMax(float valueMin, float valueMax)
public int addContourVertex(int x, int y, int z, javax.vecmath.Point3i offsets, javax.vecmath.Point3f vertexXYZ, float value)
public void setContourData(int i, float value)
public float[] getContourValues()
float calcContourPoint(float cutoff, float valueA, float valueB, javax.vecmath.Point3f pt)
public int addTriangle(int iA, int iB, int iC, int check, int check2)
iA
- iB
- iC
- check
- check2
- public int generateContourData(boolean haveData, float zeroOffset)
private void getVertexValues(boolean haveData)
private boolean createContours(float min, float max, float zeroOffset)
public float[] getMinMax()
private void addAllTriangles()