ScenarioFactory.hpp
1 #pragma once
2 #include <Process/GenericProcessFactory.hpp>
3 #include <Process/ProcessFactory.hpp>
4 #include <Process/TimeValue.hpp>
5 
6 #include <Scenario/Process/ScenarioModel.hpp>
7 
8 namespace Process
9 {
10 class LayerPresenter;
11 class LayerView;
12 class ProcessModel;
13 }
14 class QGraphicsItem;
15 class QObject;
16 struct VisitorVariant;
17 
18 namespace Scenario
19 {
20 class EditionSettings;
21 
23 
25 {
26 public:
28 
29  Process::LayerPresenter* makeLayerPresenter(
31  QObject* parent) const override;
32 
33  Process::LayerView* makeLayerView(
34  const Process::ProcessModel& viewmodel, const Process::Context& context,
35  QGraphicsItem* parent) const override;
36 
38  makeMiniLayer(const Process::ProcessModel& view, QGraphicsItem* parent) const override;
39 
40  bool matches(const UuidKey<Process::ProcessModel>& p) const override;
41  UuidKey<Process::ProcessModel> concreteKey() const noexcept override;
42 
43 private:
44  Scenario::EditionSettings& m_editionSettings;
45 };
46 }
Definition: score-lib-process/Process/ProcessFactory.hpp:58
Definition: LayerPresenter.hpp:34
Definition: LayerView.hpp:21
Definition: LayerView.hpp:95
Definition: GenericProcessFactory.hpp:15
The Process class.
Definition: score-lib-process/Process/Process.hpp:61
Definition: ScenarioEditionSettings.hpp:14
Definition: ScenarioFactory.hpp:25
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: ProcessContext.hpp:12
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26
Definition: ObjectMatches.hpp:6