DisplayedElementsModel.hpp
1 #pragma once
2 #include <Scenario/Document/DisplayedElements/DisplayedElementsContainer.hpp>
3 
4 #include <score/selection/Selection.hpp>
5 
6 #include <tuple>
7 
8 namespace Scenario
9 {
10 class IntervalModel;
11 class EventModel;
12 class StateModel;
13 class TimeSyncModel;
14 
15 class SCORE_PLUGIN_SCENARIO_EXPORT DisplayedElementsModel
16 {
17 public:
18  DisplayedElementsModel() = default;
19  bool initialized() const { return m_initialized; }
20 
21  void setSelection(const Selection&);
22 
23  void setDisplayedElements(DisplayedElementsContainer&&);
24  IntervalModel& interval() const;
25 
26  TimeSyncModel& startTimeSync() const;
27  TimeSyncModel& endTimeSync() const;
28 
29  EventModel& startEvent() const;
30  EventModel& endEvent() const;
31 
32  StateModel& startState() const;
33  StateModel& endState() const;
34 
35 private:
36  DisplayedElementsContainer m_elements;
37  bool m_initialized = false;
38 };
39 }
Definition: DisplayedElementsModel.hpp:16
Definition: EventModel.hpp:36
Definition: IntervalModel.hpp:50
Definition: StateModel.hpp:63
Definition: TimeSyncModel.hpp:34
Definition: Selection.hpp:12
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: DisplayedElementsContainer.hpp:17