long numSecs = pair.getMinSeconds();
correlatePhoto = (numSecs <= timeLimit.getTotalSeconds());
}
- if (angDistLimit > 0.0 && correlatePhoto) {
+ if (angDistLimit > 0.0 && correlatePhoto)
+ {
final double angDistPair = DataPoint.calculateRadiansBetween(pair.getPointBefore(), pair.getPointAfter());
- //System.out.println("(dist between pair is " + angDistPair + ") which means "
- // + Distance.convertRadiansToDistance(angDistPair, Distance.UNITS_METRES) + "m");
double frac = pair.getFraction();
if (frac > 0.5) {frac = 1 - frac;}
final double angDistPhoto = angDistPair * frac;
{
PhotoSelectionTableRow row = inModel.getRow(i);
set.add(new TimeIndexPair(row.getTimeDiff().getTotalSeconds(), i));
- //System.out.println("pair " + i + " has time " + row.getTimeDiff().getTotalSeconds());
}
// pull out middle entry and return index
TimeIndexPair pair = null;
for (i=0; i<(numRows+1)/2; i++)
{
pair = (TimeIndexPair) iterator.next();
- //System.out.println("After sorting, pair " + i + " has index " + pair.getIndex());
}
return pair.getIndex();
}
*/
public void disableOkButton()
{
- if (_okButton != null)
- {
+ if (_okButton != null) {
_okButton.setEnabled(false);
}
}