Omaha #3492 Replace Raytheon plugin calls to deprecated IGraphicsTarget.createWireframeShape()
Change-Id: I68c4757365ad1bcb6254f78fe26b98b333cf7b5a Former-commit-id:385805dbcd
[formerlyae58a69d25
] [formerlyf7205e8a31
] [formerlyf7205e8a31
[formerlydd85085986
]] [formerly3ef2459491
[formerlyf7205e8a31
[formerlydd85085986
] [formerly3ef2459491
[formerly fbebe6213718025ecf2288c0d57627df53e4bc5e]]]] Former-commit-id:3ef2459491
Former-commit-id: 3e5d3bf1c51c2d57dc2c93ddf0352e69370b4999 [formerly 77028ea35beac3cc3a8e907417a53549d2087517] [formerly09c8f1f35e
[formerly5ad8c291e7
]] Former-commit-id:09c8f1f35e
Former-commit-id:1a7974a437
This commit is contained in:
parent
6dcd42fdb1
commit
b62509f3a1
3 changed files with 12 additions and 51 deletions
|
@ -67,6 +67,7 @@ import com.vividsolutions.jts.geom.LineString;
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Apr 16, 2012 mschenke Initial creation
|
* Apr 16, 2012 mschenke Initial creation
|
||||||
* Mar 05, 2014 2826 njensen Fixed null pointer in renderShadedShapes
|
* Mar 05, 2014 2826 njensen Fixed null pointer in renderShadedShapes
|
||||||
|
* Aug 07, 2014 3492 mapeters Updated deprecated createWireframeShape() calls.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -82,17 +83,8 @@ public class ShapeRenderingHandler extends CollaborationRenderingHandler {
|
||||||
int shapeId = event.getObjectId();
|
int shapeId = event.getObjectId();
|
||||||
IWireframeShape shape = null;
|
IWireframeShape shape = null;
|
||||||
if (event.getSimplificationLevel() != null) {
|
if (event.getSimplificationLevel() != null) {
|
||||||
if (event.isSpatialChopFlag() != null) {
|
|
||||||
shape = target.createWireframeShape(event.isMutable(),
|
shape = target.createWireframeShape(event.isMutable(),
|
||||||
event.getGridGeometry(),
|
event.getGridGeometry(), event.getSimplificationLevel());
|
||||||
event.getSimplificationLevel(),
|
|
||||||
event.isSpatialChopFlag(), event.getIExtent());
|
|
||||||
} else {
|
|
||||||
shape = target
|
|
||||||
.createWireframeShape(event.isMutable(),
|
|
||||||
event.getGridGeometry(),
|
|
||||||
event.getSimplificationLevel());
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
shape = target.createWireframeShape(event.isMutable(),
|
shape = target.createWireframeShape(event.isMutable(),
|
||||||
event.getGridGeometry());
|
event.getGridGeometry());
|
||||||
|
|
|
@ -37,7 +37,6 @@ import org.eclipse.swt.widgets.Event;
|
||||||
import org.eclipse.swt.widgets.Listener;
|
import org.eclipse.swt.widgets.Listener;
|
||||||
import org.geotools.coverage.grid.GeneralGridGeometry;
|
import org.geotools.coverage.grid.GeneralGridGeometry;
|
||||||
|
|
||||||
import com.raytheon.uf.common.colormap.IColorMap;
|
|
||||||
import com.raytheon.uf.common.colormap.image.ColorMapData;
|
import com.raytheon.uf.common.colormap.image.ColorMapData;
|
||||||
import com.raytheon.uf.common.colormap.prefs.ColorMapParameters;
|
import com.raytheon.uf.common.colormap.prefs.ColorMapParameters;
|
||||||
import com.raytheon.uf.common.status.IUFStatusHandler;
|
import com.raytheon.uf.common.status.IUFStatusHandler;
|
||||||
|
@ -59,7 +58,6 @@ import com.raytheon.uf.viz.core.data.IDataPreparer;
|
||||||
import com.raytheon.uf.viz.core.data.IImageDataPreparer;
|
import com.raytheon.uf.viz.core.data.IImageDataPreparer;
|
||||||
import com.raytheon.uf.viz.core.data.IRenderedImageCallback;
|
import com.raytheon.uf.viz.core.data.IRenderedImageCallback;
|
||||||
import com.raytheon.uf.viz.core.data.resp.NumericImageData;
|
import com.raytheon.uf.viz.core.data.resp.NumericImageData;
|
||||||
import com.raytheon.uf.viz.core.drawables.ColorMapLoader;
|
|
||||||
import com.raytheon.uf.viz.core.drawables.IDescriptor;
|
import com.raytheon.uf.viz.core.drawables.IDescriptor;
|
||||||
import com.raytheon.uf.viz.core.drawables.IFont;
|
import com.raytheon.uf.viz.core.drawables.IFont;
|
||||||
import com.raytheon.uf.viz.core.drawables.IFont.FontType;
|
import com.raytheon.uf.viz.core.drawables.IFont.FontType;
|
||||||
|
@ -116,6 +114,9 @@ import com.raytheon.uf.viz.remote.graphics.objects.DispatchingWireframeShape;
|
||||||
* May 16, 2014 3163 bsteffen Remove references to deprecated
|
* May 16, 2014 3163 bsteffen Remove references to deprecated
|
||||||
* {@link IGraphicsTarget} methods.
|
* {@link IGraphicsTarget} methods.
|
||||||
* Jul 28, 2014 3429 mapeters Updated deprecated drawLine() calls.
|
* Jul 28, 2014 3429 mapeters Updated deprecated drawLine() calls.
|
||||||
|
* Aug 07, 2014 3492 mapeters Updated deprecated createWireframeShape() calls
|
||||||
|
* and removed unused setUseBuiltinColorbar(),
|
||||||
|
* drawFilledCircle(), and buildColorMap() methods.
|
||||||
*
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -802,8 +803,7 @@ public class DispatchGraphicsTarget extends DispatchingObject<IGraphicsTarget>
|
||||||
boolean spatialChopFlag, IExtent extent) {
|
boolean spatialChopFlag, IExtent extent) {
|
||||||
// Create original
|
// Create original
|
||||||
IWireframeShape targetShape = wrappedObject.createWireframeShape(
|
IWireframeShape targetShape = wrappedObject.createWireframeShape(
|
||||||
mutable, descriptor, simplificationLevel, spatialChopFlag,
|
mutable, descriptor, simplificationLevel);
|
||||||
extent);
|
|
||||||
// Create wrapped
|
// Create wrapped
|
||||||
DispatchingWireframeShape dispatching = new DispatchingWireframeShape(
|
DispatchingWireframeShape dispatching = new DispatchingWireframeShape(
|
||||||
targetShape, getDispatcher(), descriptor.getGridGeometry());
|
targetShape, getDispatcher(), descriptor.getGridGeometry());
|
||||||
|
@ -853,7 +853,7 @@ public class DispatchGraphicsTarget extends DispatchingObject<IGraphicsTarget>
|
||||||
boolean spatialChopFlag, IExtent extent) {
|
boolean spatialChopFlag, IExtent extent) {
|
||||||
// Create original
|
// Create original
|
||||||
IWireframeShape targetShape = wrappedObject.createWireframeShape(
|
IWireframeShape targetShape = wrappedObject.createWireframeShape(
|
||||||
mutable, geom, simplificationLevel, spatialChopFlag, extent);
|
mutable, geom, simplificationLevel);
|
||||||
// Create wrapped
|
// Create wrapped
|
||||||
DispatchingWireframeShape dispatching = new DispatchingWireframeShape(
|
DispatchingWireframeShape dispatching = new DispatchingWireframeShape(
|
||||||
targetShape, getDispatcher(), geom);
|
targetShape, getDispatcher(), geom);
|
||||||
|
@ -1027,16 +1027,6 @@ public class DispatchGraphicsTarget extends DispatchingObject<IGraphicsTarget>
|
||||||
wrappedObject.setBackgroundColor(backgroundColor);
|
wrappedObject.setBackgroundColor(backgroundColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated: This method has no effect. IGraphicsTargets are not
|
|
||||||
* responsible to drawing a colorbar. Use method drawColorRamp
|
|
||||||
* to draw a color ramp
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public void setUseBuiltinColorbar(boolean isColorbarDisplayed) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param colorMap
|
* @param colorMap
|
||||||
* @throws VizException
|
* @throws VizException
|
||||||
|
@ -1235,28 +1225,6 @@ public class DispatchGraphicsTarget extends DispatchingObject<IGraphicsTarget>
|
||||||
drawCircle(circle);
|
drawCircle(circle);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #drawCircle(DrawableCircle...)}
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public void drawFilledCircle(double x, double y, double z, double radius,
|
|
||||||
RGB color) throws VizException {
|
|
||||||
DrawableCircle circle = new DrawableCircle();
|
|
||||||
circle.setCoordinates(x, y, z);
|
|
||||||
circle.basics.color = color;
|
|
||||||
circle.radius = new Double(radius);
|
|
||||||
circle.filled = true;
|
|
||||||
drawCircle(circle);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link ColorMapLoader#loadColorMap(String)}
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public IColorMap buildColorMap(String name) throws VizException {
|
|
||||||
return ColorMapLoader.loadColorMap(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated Use {@link #drawLine(DrawableLine...)}
|
* @deprecated Use {@link #drawLine(DrawableLine...)}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -46,6 +46,7 @@ import com.raytheon.uf.common.dataplugin.satellite.units.counts.DerivedWVPixel;
|
||||||
import com.raytheon.uf.common.dataplugin.satellite.units.generic.GenericPixel;
|
import com.raytheon.uf.common.dataplugin.satellite.units.generic.GenericPixel;
|
||||||
import com.raytheon.uf.common.dataplugin.satellite.units.goes.PolarPrecipWaterPixel;
|
import com.raytheon.uf.common.dataplugin.satellite.units.goes.PolarPrecipWaterPixel;
|
||||||
import com.raytheon.uf.common.dataplugin.satellite.units.water.BlendedTPWPixel;
|
import com.raytheon.uf.common.dataplugin.satellite.units.water.BlendedTPWPixel;
|
||||||
|
import com.raytheon.uf.common.derivparam.library.DerivedParameterRequest;
|
||||||
import com.raytheon.uf.common.geospatial.ISpatialEnabled;
|
import com.raytheon.uf.common.geospatial.ISpatialEnabled;
|
||||||
import com.raytheon.uf.common.geospatial.ISpatialObject;
|
import com.raytheon.uf.common.geospatial.ISpatialObject;
|
||||||
import com.raytheon.uf.common.geospatial.MapUtil;
|
import com.raytheon.uf.common.geospatial.MapUtil;
|
||||||
|
@ -74,7 +75,6 @@ import com.raytheon.uf.viz.core.rsc.LoadProperties;
|
||||||
import com.raytheon.uf.viz.core.rsc.ResourceProperties;
|
import com.raytheon.uf.viz.core.rsc.ResourceProperties;
|
||||||
import com.raytheon.uf.viz.core.rsc.capabilities.ColorMapCapability;
|
import com.raytheon.uf.viz.core.rsc.capabilities.ColorMapCapability;
|
||||||
import com.raytheon.uf.viz.core.rsc.capabilities.ImagingCapability;
|
import com.raytheon.uf.viz.core.rsc.capabilities.ImagingCapability;
|
||||||
import com.raytheon.uf.common.derivparam.library.DerivedParameterRequest;
|
|
||||||
import com.raytheon.viz.core.gl.IGLTarget;
|
import com.raytheon.viz.core.gl.IGLTarget;
|
||||||
import com.raytheon.viz.core.rsc.hdf5.AbstractTileSet;
|
import com.raytheon.viz.core.rsc.hdf5.AbstractTileSet;
|
||||||
import com.raytheon.viz.core.rsc.hdf5.FileBasedTileSet;
|
import com.raytheon.viz.core.rsc.hdf5.FileBasedTileSet;
|
||||||
|
@ -117,6 +117,9 @@ import com.vividsolutions.jts.geom.Coordinate;
|
||||||
* 05/20/2013 862 ghull implement IAreaProviderCapable
|
* 05/20/2013 862 ghull implement IAreaProviderCapable
|
||||||
* Nov 14, 2013 2393 bclement changed how numLevels is calculated for mcidas
|
* Nov 14, 2013 2393 bclement changed how numLevels is calculated for mcidas
|
||||||
* 03/12/2014 920 pswamy Implemented changes to fix GINI VIS image display problems.
|
* 03/12/2014 920 pswamy Implemented changes to fix GINI VIS image display problems.
|
||||||
|
* 08/07/2014 3492 mapeters Removed IGraphicsTarget.setUseBuiltinColorbar() call from initResource()
|
||||||
|
* as it had no effect and has been removed from IGraphicsTarget.
|
||||||
|
*
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @author chammack
|
* @author chammack
|
||||||
|
@ -566,8 +569,6 @@ public abstract class AbstractSatelliteResource extends
|
||||||
this.viewType = target.getViewType();
|
this.viewType = target.getViewType();
|
||||||
this.grphTarget = target;
|
this.grphTarget = target;
|
||||||
|
|
||||||
grphTarget.setUseBuiltinColorbar(false);
|
|
||||||
|
|
||||||
// create the colorBar Resource and add it to the resourceList for
|
// create the colorBar Resource and add it to the resourceList for
|
||||||
// this descriptor.
|
// this descriptor.
|
||||||
cbarRscPair = ResourcePair
|
cbarRscPair = ResourcePair
|
||||||
|
|
Loading…
Add table
Reference in a new issue