Group3D localiser dialog

Small fix to group3d localiser to correctly enable settings button in
dialog when the dialog is reopened
This commit is contained in:
Douglas Gillespie 2023-06-09 12:26:42 +01:00
parent 62148351c6
commit 8274f00db4
3 changed files with 12 additions and 5 deletions

View File

@ -810,6 +810,9 @@ public class TMGroupLocInfo implements GroupLocInfo {
for (int i = 0; i < nSubDetections; i++) {
localisation = getParentDetection().getSubDetection(i).getLocalisation();
if (localisation == null) {
continue;
}
angles = localisation.getAngles();
angleErrors = localisation.getAngleErrors();
@ -879,6 +882,10 @@ public class TMGroupLocInfo implements GroupLocInfo {
totalVectors += nVectors;
}
if (totalVectors == 0) {
return;
}
//now create the separate arrays for different ambiguities.
/**
*

View File

@ -31,7 +31,7 @@ public class PamguardVersionInfo {
* Version number, major version.minorversion.sub-release.
* Note: can't go higher than sub-release 'f'
*/
static public final String version = "2.02.08";
static public final String version = "2.02.08a";
/**
* Release date

View File

@ -173,6 +173,9 @@ public class GroupLocSettingPaneFX extends SettingsPane<Group3DParams>{
algoOptsButton.setDisable(true);
return;
}
// also enable / disable the more options button ...
algoOptsButton.setDisable(localiserAlgorithm.hasParams() == false);
/**
* Need to immediately tell the algorithm which input we're using so that it can
* show the correct settings...
@ -208,10 +211,7 @@ public class GroupLocSettingPaneFX extends SettingsPane<Group3DParams>{
// newPane.setDetectionSource(sourcePanel.getSource());
}
algorithmSourcePane = newPane;
// also enable / disable the more options button ...
algoOptsButton.setDisable(localiserAlgorithm.hasParams() == false);
repackDialog();
}