Issue #1575 apply persisted colormap attributes to grid resources
Former-commit-id:07d053bb3c
[formerly 4bb77ee1763890a355a0ac5eefb8c14c12e13780] Former-commit-id:1884c77278
This commit is contained in:
parent
8a2ee0ce90
commit
a2a95a17aa
1 changed files with 8 additions and 0 deletions
|
@ -51,6 +51,7 @@ import com.raytheon.uf.viz.core.IGraphicsTarget;
|
|||
import com.raytheon.uf.viz.core.VizApp;
|
||||
import com.raytheon.uf.viz.core.drawables.ColorMapLoader;
|
||||
import com.raytheon.uf.viz.core.drawables.ColorMapParameters;
|
||||
import com.raytheon.uf.viz.core.drawables.ColorMapParameters.PersistedParameters;
|
||||
import com.raytheon.uf.viz.core.drawables.IRenderable;
|
||||
import com.raytheon.uf.viz.core.drawables.PaintProperties;
|
||||
import com.raytheon.uf.viz.core.exception.VizException;
|
||||
|
@ -595,6 +596,13 @@ public abstract class AbstractGridResource<T extends AbstractResourceData>
|
|||
// reuse the old parameters. This is useful when the resource is
|
||||
// sharing capabilities, for example in an FFGVizGroupResource.
|
||||
newParameters = oldParameters;
|
||||
} else if (oldParameters != null) {
|
||||
newParameters.setColorMapName(oldParameters.getColorMapName());
|
||||
newParameters.setColorMap(oldParameters.getColorMap());
|
||||
PersistedParameters persisted = oldParameters.getPersisted();
|
||||
if (persisted != null) {
|
||||
newParameters.applyPersistedParameters(persisted);
|
||||
}
|
||||
}
|
||||
return newParameters;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue