|
|
|
@ -102,6 +102,8 @@ TransectStyleComplexItem::TransectStyleComplexItem(Vehicle* vehicle, bool flyVie
@@ -102,6 +102,8 @@ TransectStyleComplexItem::TransectStyleComplexItem(Vehicle* vehicle, bool flyVie
|
|
|
|
|
connect(&_cameraCalc, &CameraCalc::distanceToSurfaceRelativeChanged, this, &TransectStyleComplexItem::coordinateHasRelativeAltitudeChanged); |
|
|
|
|
connect(&_cameraCalc, &CameraCalc::distanceToSurfaceRelativeChanged, this, &TransectStyleComplexItem::exitCoordinateHasRelativeAltitudeChanged); |
|
|
|
|
|
|
|
|
|
connect(&_hoverAndCaptureFact, &Fact::rawValueChanged, this, &TransectStyleComplexItem::_handleHoverAndCaptureEnabled); |
|
|
|
|
|
|
|
|
|
connect(this, &TransectStyleComplexItem::visualTransectPointsChanged, this, &TransectStyleComplexItem::complexDistanceChanged); |
|
|
|
|
connect(this, &TransectStyleComplexItem::visualTransectPointsChanged, this, &TransectStyleComplexItem::greatestDistanceToChanged); |
|
|
|
|
|
|
|
|
@ -769,3 +771,11 @@ void TransectStyleComplexItem::_followTerrainChanged(bool followTerrain)
@@ -769,3 +771,11 @@ void TransectStyleComplexItem::_followTerrainChanged(bool followTerrain)
|
|
|
|
|
_hoverAndCaptureFact.setRawValue(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void TransectStyleComplexItem::_handleHoverAndCaptureEnabled(QVariant enabled) |
|
|
|
|
{ |
|
|
|
|
if (enabled.toBool() && _cameraTriggerInTurnAroundFact.rawValue().toBool()) { |
|
|
|
|
qDebug() << "_handleHoverAndCaptureEnabled"; |
|
|
|
|
_cameraTriggerInTurnAroundFact.setRawValue(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|