Package hec.map.nettin
Class NetTinGlyph
java.lang.Object
hec.map.MapGlyph
hec.map.nettin.NetTinGlyph
- All Implemented Interfaces:
ElevationGlyph
,Comparable<MapGlyph>
-
Nested Class Summary
Nested classes/interfaces inherited from class hec.map.MapGlyph
MapGlyph.Selection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WorldRect
protected double
static final int
static final int
static final int
static final int
static final int
Fields inherited from class hec.map.MapGlyph
_changeEvent, _glyphLevel, _listenerList, _map, _mapIdentifier, _mapPanel, _paintOk, _parentGlyph, maxPtArraySz, needsRepaint, xarray, XOR_COLOR, yarray
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
aspectShadeElevation
(Graphics g, MapScale scl, ColorContour cc) aspect shading onlyprotected void
computeShading
(boolean aspectEnabled, double aspectAngle) protected void
contourElevation
(Graphics g, MapScale scl, ColorContour cc) do color contouring for each triangle in tinprotected void
contourTriangle
(Graphics g, LocalPt[] lpt, double[] val, double[] conval, int ncon, double cmin, double cmax, ColorContour cc, double lafc) void
temp(?) method to crop a tin to the current viewportvoid
draw this MapGlyph to graphics using the MapScale sclvoid
drawElevationStats
(Graphics g, LocalRegion region) Compute and draw max min and average elevation for the given regionvoid
fillMap
(boolean shown) have the _map load or unload its data.Gets the DefaultDataRecord of the MapGlyph objectfloat
getElevationAt
(int ix, int iy) get depth at a point.double
double
double
protected void
scaleNodes
(MapScale scl) Methods inherited from class hec.map.MapGlyph
addChangeListener, addGlyphSelectionListener, checkXYArraySize, clearSelection, clearSelection, close, compareTo, containsSelection, drawConformingString, drawConformingString2, drawLine, drawLine, drawLine, drawLine, drawLine2D, drawRegion, drawRegion, findGlyphOfClass, findObject, fireGlyphSelectionChanged, fireStateChanged, getAttributeSet, getBounds, getDataRecord, getDescription, getGlyphLevel, getMap, getMapPanel, getMaximumScale, getMinimumScale, getName, getParentGlyph, getSelectedObject, getSelections, getToolTipText, glyphVector, hasChildGlyphs, hasMap, init, intersects, isAltDown, isAttributeAvailable, isControlDown, isMetaDown, isPaintOk, isRepaintNeeded, isShiftDown, isShown, isWriteLocked, objectDoubleClick, objectPopupMenu, objectSelect, reInit, removeChangeListener, removeGlyphSelectionListener, setDataRecord, setGlyphLevel, setMap, setMapPanel, setMaximumScale, setMinimumScale, setPaintOk, setParentGlyph, setRepaintNeeded, setShown, shouldReturn, showMapElement, toString, transformArrays, transformLocalToWorldArrays, transformLookup, transformPoint, transformPointToLocal, transformPointToWorld, transformRect, transformRect, transformRectToLocal, transformWorldToLocalArrays
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface hec.map.ElevationGlyph
getDataRecord, getMap, getMaximumScale, getMinimumScale, getName, setDataRecord, setMaximumScale, setMinimumScale
-
Field Details
-
contourNONE
public static final int contourNONE- See Also:
-
contourELEV
public static final int contourELEV- See Also:
-
contourDEPTH
public static final int contourDEPTH- See Also:
-
contourINUNDATION
public static final int contourINUNDATION- See Also:
-
contourEDGE_ELEVATION
public static final int contourEDGE_ELEVATION- See Also:
-
_curWR
-
_curZoom
protected double _curZoom
-
-
Constructor Details
-
NetTinGlyph
public NetTinGlyph() -
NetTinGlyph
-
-
Method Details
-
fillMap
public void fillMap(boolean shown) Description copied from class:MapGlyph
have the _map load or unload its data. -
getMaximumElevation
public double getMaximumElevation()- Specified by:
getMaximumElevation
in interfaceElevationGlyph
-
getMinimumElevation
public double getMinimumElevation()- Specified by:
getMinimumElevation
in interfaceElevationGlyph
-
scaleNodes
-
draw
Description copied from class:MapGlyph
draw this MapGlyph to graphics using the MapScale scl -
aspectShadeElevation
aspect shading only -
contourElevation
do color contouring for each triangle in tin -
contourTriangle
protected void contourTriangle(Graphics g, LocalPt[] lpt, double[] val, double[] conval, int ncon, double cmin, double cmax, ColorContour cc, double lafc) -
computeShading
protected void computeShading(boolean aspectEnabled, double aspectAngle) -
getNoDataValue
public double getNoDataValue()- Specified by:
getNoDataValue
in interfaceElevationGlyph
-
getElevationAt
public float getElevationAt(int ix, int iy) get depth at a point. assume nodes have already been scaled for this viewport- Specified by:
getElevationAt
in interfaceElevationGlyph
-
cropToViewPort
public void cropToViewPort()temp(?) method to crop a tin to the current viewport -
drawElevationStats
Compute and draw max min and average elevation for the given region- Specified by:
drawElevationStats
in interfaceElevationGlyph
-
getDefaultDataRecord
Description copied from class:MapGlyph
Gets the DefaultDataRecord of the MapGlyph object- Overrides:
getDefaultDataRecord
in classMapGlyph
- Returns:
- null unless overridden to return something else
-