| 2389 | } // TrackerContext::computeCornerParamsFromTracks |
| 2390 | |
| 2391 | void |
| 2392 | TrackerContextPrivate::resetTransformParamsAnimation() |
| 2393 | { |
| 2394 | { |
| 2395 | // Revert animation on the corner pin |
| 2396 | boost::shared_ptr<KnobDouble> toPointsKnob[4]; |
| 2397 | boost::shared_ptr<KnobBool> enabledPointsKnob[4]; |
| 2398 | for (int i = 0; i < 4; ++i) { |
| 2399 | toPointsKnob[i] = toPoints[i].lock(); |
| 2400 | enabledPointsKnob[i] = enableToPoint[i].lock(); |
| 2401 | } |
| 2402 | |
| 2403 | |
| 2404 | for (int i = 0; i < 4; ++i) { |
| 2405 | toPointsKnob[i]->resetToDefaultValueWithoutSecretNessAndEnabledNess(0); |
| 2406 | toPointsKnob[i]->resetToDefaultValueWithoutSecretNessAndEnabledNess(1); |
| 2407 | enabledPointsKnob[i]->resetToDefaultValueWithoutSecretNessAndEnabledNess(0); |
| 2408 | } |
| 2409 | } |
| 2410 | boost::shared_ptr<KnobDouble> centerKnob = center.lock(); |
| 2411 | |
| 2412 | centerKnob->resetToDefaultValueWithoutSecretNessAndEnabledNess(0); |
| 2413 | centerKnob->resetToDefaultValueWithoutSecretNessAndEnabledNess(1); |
| 2414 | { |
| 2415 | // Revert animation on the transform |
| 2416 | boost::shared_ptr<KnobDouble> translationKnob = translate.lock(); |
| 2417 | boost::shared_ptr<KnobDouble> scaleKnob = scale.lock(); |
| 2418 | boost::shared_ptr<KnobDouble> rotationKnob = rotate.lock(); |
| 2419 | |
| 2420 | translationKnob->resetToDefaultValueWithoutSecretNessAndEnabledNess(0); |
| 2421 | translationKnob->resetToDefaultValueWithoutSecretNessAndEnabledNess(1); |
| 2422 | |
| 2423 | scaleKnob->resetToDefaultValueWithoutSecretNessAndEnabledNess(0); |
| 2424 | scaleKnob->resetToDefaultValueWithoutSecretNessAndEnabledNess(1); |
| 2425 | |
| 2426 | rotationKnob->resetToDefaultValueWithoutSecretNessAndEnabledNess(0); |
| 2427 | } |
| 2428 | } |
| 2429 | |
| 2430 | void |
| 2431 | TrackerContextPrivate::computeTransformParamsFromTracksEnd(double refTime, |
no test coverage detected