public class GeoSelection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
STRIDE_BASE
No stride value
|
static int |
STRIDE_NONE
No stride value
|
| Constructor and Description |
|---|
GeoSelection()
ctor
|
GeoSelection(GeoLocationInfo boundingBox)
ctor
|
GeoSelection(GeoLocationInfo boundingBox,
boolean useFullBounds,
int xStride,
int yStride,
int zStride,
visad.Real level)
ctor.
|
GeoSelection(GeoLocationInfo boundingBox,
boolean useFullBounds,
int xStride,
int yStride,
int zStride,
visad.Real level,
java.awt.geom.Rectangle2D screenBoundRect)
Construct a GeoSelection
|
GeoSelection(GeoLocationInfo boundingBox,
boolean useFullBounds,
int xStride,
int yStride,
int zStride,
visad.Real level,
java.awt.geom.Rectangle2D screenBoundRect,
boolean useViewBounds)
Construct a GeoSelection
|
GeoSelection(GeoLocationInfo boundingBox,
int stride)
ctor
|
GeoSelection(GeoLocationInfo boundingBox,
int xStride,
int yStride,
int zStride)
ctor.
|
GeoSelection(GeoLocationInfo boundingBox,
int xStride,
int yStride,
int zStride,
visad.Real level)
ctor.
|
GeoSelection(GeoSelection that)
Copy ctor
|
GeoSelection(visad.Real level)
ctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearStride()
Clear the stride settings
|
boolean |
equals(java.lang.Object obj)
equals
|
GeoLocationInfo |
getBoundingBox()
Get the BoundingBox property.
|
static GeoLocationInfo |
getDefaultBoundingBox()
Get the default bbox
|
boolean |
getHasNonOneStride()
Does this selection have any stride other than NONE and BASE
|
boolean |
getHasValidState()
Do we have either a bounding box or any valid strides
|
ucar.unidata.geoloc.LatLonRect |
getLatLonRect()
Utility to get a lat lon rect if we have one.
|
visad.Real |
getLevel()
Get the Level property.
|
java.awt.geom.Rectangle2D |
getScreenBound()
_more_
|
boolean |
getUseFullBounds()
Get the UseFullBounds property.
|
boolean |
getUseViewBounds()
Get the UseViewBounds property.
|
int |
getXStride()
Get the XStride property.
|
int |
getXStrideToUse()
Get the XStride property if it is valid.
|
int |
getYStride()
Get the YStride property.
|
int |
getYStrideToUse()
Get the YStride property if it is valid.
|
int |
getZStride()
Get the ZStride property.
|
int |
getZStrideToUse()
Get the ZStride property if it is valid.
|
int |
hashCode()
hash me
|
boolean |
hasSpatialSubset()
Is there a spatial subset defined
|
boolean |
hasStride()
Do we have any stride defined
|
boolean |
hasXStride()
Do we have a stride defined
|
boolean |
hasYStride()
Do we have a stride defined
|
boolean |
hasZStride()
Do we have a stride defined
|
static GeoSelection |
merge(GeoSelection highPriority,
GeoSelection lowPriority)
Create a new GeoSelection by merging the two subsets.
|
void |
setBoundingBox(GeoLocationInfo value)
Set the BoundingBox property.
|
static void |
setDefaultBoundingBox(GeoLocationInfo defaultBox)
Define the global bounding box that is used as the default
|
void |
setLatLonRect(java.awt.geom.Rectangle2D rect)
Set the bounds using the rectangle
|
void |
setLevel(visad.Real value)
Set the Level property.
|
void |
setScreenBound(java.awt.geom.Rectangle2D screenBoundRect)
_more_
|
void |
setStride(int value)
Set the Stride property.
|
void |
setUseFullBounds(boolean value)
Set the UseFullBounds property.
|
void |
setUseViewBounds(boolean value)
Set the UseViewBounds property.
|
void |
setXStride(int value)
Set the XStride property.
|
void |
setYStride(int value)
Set the YStride property.
|
void |
setZStride(int value)
Set the ZStride property.
|
java.lang.String |
toString()
tostring
|
public static final int STRIDE_NONE
public static final int STRIDE_BASE
public GeoSelection()
public GeoSelection(visad.Real level)
level - The level to usepublic GeoSelection(GeoSelection that)
that - The object to copypublic GeoSelection(GeoLocationInfo boundingBox)
boundingBox - The bounding box. May be null.public GeoSelection(GeoLocationInfo boundingBox, int stride)
boundingBox - The bounding box. May be null.stride - The stride for x, y and zpublic GeoSelection(GeoLocationInfo boundingBox, int xStride, int yStride, int zStride)
boundingBox - The bounding box. May be null.xStride - X strideyStride - Y stridezStride - Z stridepublic GeoSelection(GeoLocationInfo boundingBox, int xStride, int yStride, int zStride, visad.Real level)
boundingBox - The bounding box. May be null.xStride - X strideyStride - Y stridezStride - Z stridelevel - The level to usepublic GeoSelection(GeoLocationInfo boundingBox, boolean useFullBounds, int xStride, int yStride, int zStride, visad.Real level)
boundingBox - The bounding box. May be null.useFullBounds - Use full boundsxStride - X strideyStride - Y stridezStride - Z stridelevel - The level to usepublic GeoSelection(GeoLocationInfo boundingBox, boolean useFullBounds, int xStride, int yStride, int zStride, visad.Real level, java.awt.geom.Rectangle2D screenBoundRect)
boundingBox - _more_useFullBounds - _more_xStride - _more_yStride - _more_zStride - _more_level - _more_screenBoundRect - _more_public GeoSelection(GeoLocationInfo boundingBox, boolean useFullBounds, int xStride, int yStride, int zStride, visad.Real level, java.awt.geom.Rectangle2D screenBoundRect, boolean useViewBounds)
boundingBox - _more_useFullBounds - _more_xStride - _more_yStride - _more_zStride - _more_level - _more_screenBoundRect - _more_useViewBounds - _more_public static GeoLocationInfo getDefaultBoundingBox()
public static void setDefaultBoundingBox(GeoLocationInfo defaultBox)
defaultBox - default boxpublic void setLatLonRect(java.awt.geom.Rectangle2D rect)
rect - rectpublic ucar.unidata.geoloc.LatLonRect getLatLonRect()
public boolean getHasValidState()
public boolean hasSpatialSubset()
public boolean getHasNonOneStride()
public static GeoSelection merge(GeoSelection highPriority, GeoSelection lowPriority)
highPriority - Take state from this first if definedlowPriority - Use this statepublic void setStride(int value)
value - The new value for Stridepublic void clearStride()
public boolean hasXStride()
public boolean hasYStride()
public boolean hasZStride()
public boolean hasStride()
public void setXStride(int value)
value - The new value for XStridepublic int getXStride()
public int getXStrideToUse()
public void setYStride(int value)
value - The new value for YStridepublic int getYStride()
public int getYStrideToUse()
public void setZStride(int value)
value - The new value for ZStridepublic int getZStride()
public int getZStrideToUse()
public void setBoundingBox(GeoLocationInfo value)
value - The new value for BoundingBoxpublic GeoLocationInfo getBoundingBox()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setLevel(visad.Real value)
value - The new value for Levelpublic visad.Real getLevel()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - objpublic void setUseFullBounds(boolean value)
value - The new value for UseFullBoundspublic boolean getUseFullBounds()
public void setUseViewBounds(boolean value)
value - The new value for UseViewBoundspublic boolean getUseViewBounds()
public void setScreenBound(java.awt.geom.Rectangle2D screenBoundRect)
screenBoundRect - _more_public java.awt.geom.Rectangle2D getScreenBound()