2 #include <Scenario/Commands/Interval/Rack/AddSlotToRack.hpp>
3 #include <Scenario/Commands/Scenario/ShowRackInViewModel.hpp>
4 #include <Scenario/Commands/ScenarioCommandFactory.hpp>
5 #include <Scenario/Document/Interval/IntervalModel.hpp>
7 #include <score/command/AggregateCommand.hpp>
8 #include <score/tools/IdentifierGeneration.hpp>
10 #include <ossia/detail/algorithms.hpp>
22 "Add processes to intervals")
29 "Add processes to interval")
32 auto& commands() {
return m_cmds; }
33 auto&& takeCommands() {
return std::move(m_cmds); }
42 slotsToUse.push_back({cstpath, 0});
49 if(interval.smallView().empty())
53 slotsToUse.push_back({interval, 0});
58 = ossia::find_if(interval.smallView(), [](
auto& slt) { return !slt.nodal; });
59 if(it != interval.smallView().end())
61 int slot_index = it - interval.smallView().begin();
62 slotsToUse.push_back({interval, slot_index});
68 slotsToUse.push_back({interval, (int)interval.smallView().size()});
74 std::vector<SlotPath> slotsToUse;
78 makeAddProcessMacro(
const IntervalModel& interval,
int num_processes)
The Path class is a typesafe wrapper around ObjectPath.
Definition: Path.hpp:52
Definition: InterpolateMacro.hpp:26
Definition: InterpolateMacro.hpp:19
The AddSlotToRack class.
Definition: AddSlotToRack.hpp:26
Definition: IntervalModel.hpp:50
Allows for grouping of multiple commands in a single one.
Definition: AggregateCommand.hpp:15
void addCommand(score::Command *cmd)
Add a command to be redone after the others.
Definition: AggregateCommand.cpp:37
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14