| 1075 | } |
| 1076 | |
| 1077 | void InputEditorModel::columnFactor(int column, double factor) |
| 1078 | { |
| 1079 | if (column < COLUMN_SPECIAL_SIZE) |
| 1080 | return; |
| 1081 | |
| 1082 | if (column == columnCount() - 1) |
| 1083 | return; |
| 1084 | |
| 1085 | SingleInput si = movie->editor->input_set[column-COLUMN_SPECIAL_SIZE]; |
| 1086 | |
| 1087 | std::vector<int> new_values; |
| 1088 | |
| 1089 | for (unsigned int f = context->framecount; f < movie->inputs->nbFrames(); f++) { |
| 1090 | const AllInputs& ai = movie->inputs->getInputs(f); |
| 1091 | int value = ai.getInput(si); |
| 1092 | new_values.push_back(factor*value); |
| 1093 | } |
| 1094 | |
| 1095 | movie->inputs->paintInput(si, new_values, context->framecount); |
| 1096 | } |
| 1097 | |
| 1098 | bool InputEditorModel::isLockedUniqueInput(int column) |
| 1099 | { |
no test coverage detected