MCPcopy Create free account
hub / github.com/christophhart/HISE / perform

Method perform

hi_scripting/scripting/api/ScriptModulationMatrix.cpp:1917–1943  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1915
1916
1917bool ScriptModulationMatrix::MatrixUndoAction::perform()
1918{
1919 if (matrix == nullptr)
1920 return false;
1921
1922 switch (type)
1923 {
1924 case ActionType::Clear:
1925 matrix->clearConnectionsInternal();
1926 break;
1927 case ActionType::Add:
1928 return matrix->connectInternal(source, target, true);
1929 case ActionType::Remove:
1930 return matrix->connectInternal(source, target, false);
1931 case ActionType::Intensity:
1932 return matrix->updateIntensityInternal(source, target, newValue);
1933 case ActionType::ValueMode:
1934 return matrix->updateValueModeInternal(source, target, newValue);
1935 case ActionType::Update:
1936 matrix->updateConnectionDataInternal(newValue);
1937 return true;
1938 default:
1939 break;
1940 }
1941
1942 return true;
1943}
1944
1945bool ScriptModulationMatrix::MatrixUndoAction::undo()
1946{

Callers 8

getDragImageMethod · 0.45
connectMethod · 0.45
updateConnectionDataMethod · 0.45
updateIntensityMethod · 0.45
updateValueModeMethod · 0.45
clearAllConnectionsMethod · 0.45
paintMethod · 0.45
callWithGraphicsMethod · 0.45

Calls 5

connectInternalMethod · 0.80

Tested by

no test coverage detected