ASM #15700 - Warngen issues an error and toggles off on Radar update
Change-Id: I51085cd1bb9c7286719f1bff4e04abe5a7a2363b Former-commit-id:49d40dcaad
[formerlybd03ec7a6f
] [formerly3cc94603a2
] [formerly3cc94603a2
[formerlyfb92838427
]] [formerly2157a4aa3b
[formerly3cc94603a2
[formerlyfb92838427
] [formerly2157a4aa3b
[formerly b8a4741b2519e8c02a1b80ba8544be9b1c26d35c]]]] Former-commit-id:2157a4aa3b
Former-commit-id: 5f5d6357d66ace0188b5112e5d26c63e0c2e9d4e [formerly 0f8e6a12a3a39382b7066fa24db8ef861b31c909] [formerly787f157850
[formerly3037a17366
]] Former-commit-id:787f157850
Former-commit-id:2cde7ae918
This commit is contained in:
parent
f75f6b4be6
commit
2c9cefb7cc
1 changed files with 6 additions and 5 deletions
|
@ -104,6 +104,7 @@ import com.vividsolutions.jts.geom.LineString;
|
|||
* 06-03-14 3191 njensen Fix postData to not retrieve
|
||||
* 06-17-2014 DR17409 mgamazaychikov Fix futurePoints calculation in generateNewTrackInfo()
|
||||
* and generateExistingTrackInfo()
|
||||
* 08-21-2014 DR 17500 Qinglu Lin handle the situation where frameTime is null in paintTrack().
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -690,11 +691,12 @@ public class StormTrackDisplay implements IRenderable {
|
|||
return;
|
||||
}
|
||||
|
||||
if (state.geomChanged) {
|
||||
DataTime frameTime = paintProps.getDataTime();
|
||||
if (frameTime != null && state.geomChanged) {
|
||||
if (cachedTrack != null) {
|
||||
cachedTrack.dispose();
|
||||
}
|
||||
generateTrackInfo(state, paintProps);
|
||||
generateTrackInfo(state, paintProps, frameTime);
|
||||
if (state.mode == Mode.TRACK) {
|
||||
createTrack(target, paintProps);
|
||||
}
|
||||
|
@ -714,7 +716,7 @@ public class StormTrackDisplay implements IRenderable {
|
|||
* @param currentState
|
||||
*/
|
||||
private void generateTrackInfo(StormTrackState currentState,
|
||||
PaintProperties paintProps) throws VizException {
|
||||
PaintProperties paintProps, DataTime frameTime) throws VizException {
|
||||
int frameCount = trackUtil.getFrameCount(paintProps.getFramesInfo());
|
||||
int currFrame = trackUtil.getCurrentFrame(paintProps.getFramesInfo());
|
||||
try {
|
||||
|
@ -727,7 +729,6 @@ public class StormTrackDisplay implements IRenderable {
|
|||
&& currentState.timePoints.length != frameCount) {
|
||||
// need to set theAnchorPoint and theAnchorIndex here
|
||||
// because timePoints get erased before we get to updateAnchorPoint
|
||||
DataTime frameTime = paintProps.getDataTime();
|
||||
for (int j=0;j<currentState.timePoints.length;j++){
|
||||
if (frameTime.equals(currentState.timePoints[j].time)) {
|
||||
theAnchorPoint = currentState.timePoints[j].coord;
|
||||
|
@ -774,7 +775,7 @@ public class StormTrackDisplay implements IRenderable {
|
|||
generateNewTrackInfo(currentState, currFrame, paintProps);
|
||||
currentDisplayedTimes = trackUtil.getDataTimes(paintProps
|
||||
.getFramesInfo());
|
||||
generateTrackInfo(currentState, paintProps);
|
||||
generateTrackInfo(currentState, paintProps, frameTime);
|
||||
} else {
|
||||
|
||||
if (currentState.pointMoved) {
|
||||
|
|
Loading…
Add table
Reference in a new issue