MCPcopy Create free account
hub / github.com/clementgallet/libTAS / columnFactor

Method columnFactor

src/program/ui/InputEditorModel.cpp:1077–1096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1075}
1076
1077void 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
1098bool InputEditorModel::isLockedUniqueInput(int column)
1099{

Callers 1

factorInputColumnMethod · 0.80

Calls 3

nbFramesMethod · 0.80
paintInputMethod · 0.80
getInputMethod · 0.45

Tested by

no test coverage detected