Issue #3542 fixed lightning count clipping issue

Change-Id: I40aa62558542d3da9b3abd8f82de9e5d8244870b

Former-commit-id: 9e33cf1f5f [formerly 78796c3f6e] [formerly 9e33cf1f5f [formerly 78796c3f6e] [formerly fc2e7f52b9 [formerly 937c656ba2a9fc98bfa5655a5020d470f83b898f]]]
Former-commit-id: fc2e7f52b9
Former-commit-id: f6a9a13142 [formerly f593f8a78d]
Former-commit-id: a087a5c028
This commit is contained in:
Brian Clements 2014-08-19 08:59:35 -05:00
parent 25262fca56
commit 9dacb7a696

View file

@ -95,6 +95,7 @@ import com.raytheon.uf.viz.core.rsc.capabilities.MagnificationCapability;
* Feb 27, 2013 DCS 152 jgerth/elau Support for WWLLN and multiple sources
* Jan 21, 2014 2667 bclement renamed record's lightSource field to source
* Jun 6, 2014 DR 17367 D. Friedman Fix cache object usage.
* Aug 19, 2014 3542 bclement fixed strike count clipping issue
*
* </pre>
*
@ -378,7 +379,13 @@ public class LightningResource extends
if (magnification == 0.0) magnification=(float) 0.01;
IExtent extent = paintProps.getView().getExtent();
/*
* we only want strikes that are visible so we have to filter any
* strikes that aren't in both the clipping pane and the view
*/
IExtent viewExtent = paintProps.getView().getExtent();
IExtent clipExtent = paintProps.getClippingPane();
IExtent extent = viewExtent.intersection(clipExtent);
CacheObject<LightningFrameMetadata, LightningFrame> cacheObject = cacheObjectMap
.get(this.lastPaintedTime);