public class MeshPortrayal extends QuadPortrayal
Bug in MeshPortrayal. It appears that if values in MeshPortrayals cause "bends" in the angle of the underlying squares that are too severe (we've seen over 45 degrees), then when Java3D tries to pick the square you've double-clicked on, the "bent" squares will insist on being included in the pick collection. We believe this to be a bug in Sun's Java3D code. You'll see this happen when you double-click on a MeshPortrayal and the wrong-coordinate object pops up.
QuadPortrayal.DoubleFilter, QuadPortrayal.Filter, QuadPortrayal.IntFilter, QuadPortrayal.ObjectFilter
Constructor and Description |
---|
MeshPortrayal(ColorMap colorDispenser) |
MeshPortrayal(ColorMap colorDispenser,
double zScale) |
Modifier and Type | Method and Description |
---|---|
Int2D |
getCellForIntersection(com.sun.j3d.utils.picking.PickIntersection pi,
Grid2D field) |
void |
setData(ValueGridCellInfo gridCell,
float[] coordinates,
float[] colors,
int quadIndex,
int gridWidth,
int gridHeight) |
getInspector, getMap, getName, getStatus, getZScale, setMap, setSelected, setZScale
public MeshPortrayal(ColorMap colorDispenser)
public MeshPortrayal(ColorMap colorDispenser, double zScale)
public void setData(ValueGridCellInfo gridCell, float[] coordinates, float[] colors, int quadIndex, int gridWidth, int gridHeight)
setData
in class QuadPortrayal
public Int2D getCellForIntersection(com.sun.j3d.utils.picking.PickIntersection pi, Grid2D field)
getCellForIntersection
in class QuadPortrayal