MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / SaveLayout

Method SaveLayout

Source/EffectChain.cpp:596–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596void EffectChain::SaveLayout(ofxJSONElement& moduleInfo)
597{
598 moduleInfo["effects"].resize((unsigned int)mEffects.size());
599 for (int i = 0; i < mEffects.size(); ++i)
600 {
601 ofxJSONElement save;
602 mEffects[i]->SaveLayoutBase(save);
603 moduleInfo["effects"][i] = save;
604 moduleInfo["effects"][i]["type"] = mEffects[i]->GetType();
605 }
606}

Callers

nothing calls this directly

Calls 4

resizeMethod · 0.80
sizeMethod · 0.80
SaveLayoutBaseMethod · 0.80
GetTypeMethod · 0.45

Tested by

no test coverage detected