| 9730 | } |
| 9731 | |
| 9732 | void |
| 9733 | Node::getAllKnobsKeyframes(std::list<SequenceTime>* keyframes) |
| 9734 | { |
| 9735 | assert(keyframes); |
| 9736 | const KnobsVec & knobs = getKnobs(); |
| 9737 | |
| 9738 | for (U32 i = 0; i < knobs.size(); ++i) { |
| 9739 | if ( knobs[i]->getIsSecret() || !knobs[i]->getIsPersistent() ) { |
| 9740 | continue; |
| 9741 | } |
| 9742 | if ( !knobs[i]->canAnimate() ) { |
| 9743 | continue; |
| 9744 | } |
| 9745 | int dim = knobs[i]->getDimension(); |
| 9746 | KnobFile* isFile = dynamic_cast<KnobFile*>( knobs[i].get() ); |
| 9747 | if (isFile) { |
| 9748 | ///skip file knobs |
| 9749 | continue; |
| 9750 | } |
| 9751 | for (int j = 0; j < dim; ++j) { |
| 9752 | if ( knobs[i]->canAnimate() && knobs[i]->isAnimated( j, ViewIdx(0) ) ) { |
| 9753 | KeyFrameSet kfs = knobs[i]->getCurve(ViewIdx(0), j)->getKeyFrames_mt_safe(); |
| 9754 | for (KeyFrameSet::iterator it = kfs.begin(); it != kfs.end(); ++it) { |
| 9755 | keyframes->push_back( it->getTime() ); |
| 9756 | } |
| 9757 | } |
| 9758 | } |
| 9759 | } |
| 9760 | } |
| 9761 | |
| 9762 | ImageBitDepthEnum |
| 9763 | Node::getClosestSupportedBitDepth(ImageBitDepthEnum depth) |
no test coverage detected