| 44 | { |
| 45 | |
| 46 | CameraPtr interpolateCamera( const Camera *c0, const Camera *c1, double x ) |
| 47 | { |
| 48 | CameraPtr result = c0->copy(); |
| 49 | |
| 50 | // Blind data |
| 51 | |
| 52 | CompoundDataPtr interpolatedBlindData = boost::static_pointer_cast<CompoundData>( |
| 53 | linearObjectInterpolation( c0->blindData(), c1->blindData(), x ) |
| 54 | ); |
| 55 | result->blindData()->writable() = interpolatedBlindData->readable(); |
| 56 | |
| 57 | // Parameters |
| 58 | |
| 59 | CompoundDataPtr interpolatedParameters = boost::static_pointer_cast<CompoundData>( |
| 60 | linearObjectInterpolation( c0->parametersData(), c1->parametersData(), x ) |
| 61 | ); |
| 62 | result->parameters() = interpolatedParameters->readable(); |
| 63 | |
| 64 | return result; |
| 65 | } |
| 66 | |
| 67 | IECore::InterpolatorDescription<IECoreScene::Camera> g_description( interpolateCamera ); |
| 68 |
nothing calls this directly
no test coverage detected