📄 omdtedgrid.java
字号:
// **********************************************************************// // <copyright>// // BBN Technologies// 10 Moulton Street// Cambridge, MA 02138// (617) 873-8000// // Copyright (C) BBNT Solutions LLC. All rights reserved.// // </copyright>// **********************************************************************// // $Source: /cvs/distapps/openmap/src/openmap/com/bbn/openmap/dataAccess/dted/OMDTEDGrid.java,v $// $RCSfile: OMDTEDGrid.java,v $// $Revision: 1.2.2.1 $// $Date: 2004/10/14 18:26:41 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.dataAccess.dted;import com.bbn.openmap.omGraphics.OMGrid;import com.bbn.openmap.omGraphics.grid.*;/** * The OMDTEDGrid is an extended OMGrid with information about the * lat/lons of the corners of the grids, so the generators can use * OMScalingRasters for precise alignment. */public class OMDTEDGrid extends OMGrid { /** * The starting latitude point of the grid. Only relevant when the * data points are laid out in a lat/lon grid, or when an x/y grid * is anchored to a lat/lon location. DOES NOT follow the OpenMap * convention where area object locations are defined by the upper * left location - the location of the grid is noted by the lower * left corner, because grid data is usually defined by the lower * left location. Makes it easier to deal with overlap rows and * columns, and to calculate the locations of the rows and * columns. */ protected float latitude1; /** * The starting longitude point of the grid. Only relevant when * the data points are laid out in a lat/lon grid, or when an x/y * grid is anchored to a lat/lon location. DOES NOT follow the * OpenMap convention where area object locations are defined by * the upper left location - the location of the grid is noted by * the lower left corner, because grid data is usually defined by * the lower left location. Makes it easier to deal with overlap * rows and columns, and to calculate the locations of the rows * and columns. */ protected float longitude1; public OMDTEDGrid(float lllat, float lllon, float urlat, float urlon, float vResolution, float hResolution, GridData.Short data) { super(lllat, lllon, vResolution, hResolution, data); latitude1 = urlat; longitude1 = urlon; } /** * Change the upper latitude attribute. * * @param value latitude in decimal degrees. */ public void setLowerLat(float value) { setLatitude(value); } /** * Get the upper latitude. * * @return the latitude in decimal degrees. */ public float getLowerLat() { return getLatitude(); } /** * Change the western longitude attribute. * * @param value the longitude in decimal degrees. */ public void setLeftLon(float value) { setLongitude(value); } /** * Get the western longitude. * * @return longitude in decimal degrees. */ public float getLeftLon() { return getLongitude(); } /** * Change the southern latitude attribute. * * @param value latitude in decimal degrees. */ public void setUpperLat(float value) { if (latitude1 == value) return; latitude1 = value; setNeedToRegenerate(true); } /** * Get the southern latitude. * * @return the latitude in decimal degrees. */ public float getUpperLat() { return latitude1; } /** * Change the eastern longitude attribute. * * @param value the longitude in decimal degrees. */ public void setRightLon(float value) { if (longitude1 == value) return; longitude1 = value; setNeedToRegenerate(true); } /** * Get the eastern longitude. * * @return longitude in decimal degrees. */ public float getRightLon() { return longitude1; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -