| 609 | } |
| 610 | |
| 611 | void IDrawableModule::SetUpPatchCables(std::string targets) |
| 612 | { |
| 613 | PatchCableSource* source = GetPatchCableSource(); |
| 614 | assert(source != nullptr); |
| 615 | std::vector<std::string> targetVec = ofSplitString(targets, ","); |
| 616 | if (targetVec.empty() || targets == "") |
| 617 | { |
| 618 | source->Clear(); |
| 619 | } |
| 620 | else |
| 621 | { |
| 622 | for (int i = 0; i < targetVec.size(); ++i) |
| 623 | { |
| 624 | IClickable* target = dynamic_cast<IClickable*>(TheSynth->FindModule(targetVec[i])); |
| 625 | if (target) |
| 626 | source->AddPatchCable(target); |
| 627 | } |
| 628 | } |
| 629 | } |
| 630 | |
| 631 | void IDrawableModule::AddPatchCableSource(PatchCableSource* source) |
| 632 | { |
nothing calls this directly
no test coverage detected