Verovio
Source code documentation
preparedatafunctor.h
1 // Name: preparedatafunctor.h
3 // Author: David Bauer
4 // Created: 2022
5 // Copyright (c) Authors and others. All rights reserved.
7 
8 #ifndef __VRV_PREPAREDATAFUNCTOR_H__
9 #define __VRV_PREPAREDATAFUNCTOR_H__
10 
11 #include "functor.h"
12 
13 namespace vrv {
14 
15 class Facsimile;
16 class SystemMilestoneInterface;
17 class SymbolTable;
18 
19 //----------------------------------------------------------------------------
20 // PrepareDataInitializationFunctor
21 //----------------------------------------------------------------------------
22 
27 public:
33  virtual ~PrepareDataInitializationFunctor() = default;
35 
36  /*
37  * Abstract base implementation
38  */
39  bool ImplementsEndInterface() const override { return false; }
40 
41  /*
42  * Functor interface
43  */
45  FunctorCode VisitAccid(Accid *accid) override;
46  FunctorCode VisitDiv(Div *div) override;
47  FunctorCode VisitChord(Chord *chord) override;
48  FunctorCode VisitFloatingObject(FloatingObject *floatingObject) override;
49  FunctorCode VisitKeySig(KeySig *keySig) override;
50  FunctorCode VisitMSpace(MSpace *mSpace) override;
51  FunctorCode VisitRepeatMark(RepeatMark *repeatMark) override;
52  FunctorCode VisitScoreOrPartElement(ScoreOrPartElement *scoreOrPart) override;
53  FunctorCode VisitSpace(Space *space) override;
54  FunctorCode VisitTextLayoutElement(TextLayoutElement *textLayoutElement) override;
56 
57 protected:
58  //
59 private:
60  //
61 public:
62  //
63 private:
64  //
65 };
66 
67 //----------------------------------------------------------------------------
68 // PrepareCueSizeFunctor
69 //----------------------------------------------------------------------------
70 
75 public:
81  virtual ~PrepareCueSizeFunctor() = default;
83 
84  /*
85  * Abstract base implementation
86  */
87  bool ImplementsEndInterface() const override { return false; }
88 
89  /*
90  * Functor interface
91  */
93  FunctorCode VisitLayerElement(LayerElement *layerElement) override;
95 
96 protected:
97  //
98 private:
99  //
100 public:
101  //
102 private:
103  //
104 };
105 
106 //----------------------------------------------------------------------------
107 // PrepareCrossStaffFunctor
108 //----------------------------------------------------------------------------
109 
114 public:
120  virtual ~PrepareCrossStaffFunctor() = default;
122 
123  /*
124  * Abstract base implementation
125  */
126  bool ImplementsEndInterface() const override { return true; }
127 
128  /*
129  * Functor interface
130  */
132  FunctorCode VisitLayerElement(LayerElement *layerElement) override;
133  FunctorCode VisitLayerElementEnd(LayerElement *layerElement) override;
134  FunctorCode VisitMeasure(Measure *measure) override;
136 
137 protected:
138  //
139 private:
140  //
141 public:
142  //
143 private:
144  // The current measure
145  Measure *m_currentMeasure;
146  // The current cross staff
147  Staff *m_currentCrossStaff;
148  // The current cross layer
149  Layer *m_currentCrossLayer;
150 };
151 
152 //----------------------------------------------------------------------------
153 // PrepareAltSymFunctor
154 //----------------------------------------------------------------------------
155 
160 public:
166  virtual ~PrepareAltSymFunctor() = default;
168 
169  /*
170  * Abstract base implementation
171  */
172  bool ImplementsEndInterface() const override { return false; }
173 
174  /*
175  * Getter for the symbol table
176  */
177  SymbolTable *GetSymbolTable() const { return m_symbolTable; }
178 
179  /*
180  * Functor interface
181  */
183  FunctorCode VisitObject(Object *object) override;
185 
186 protected:
187  //
188 private:
189  //
190 public:
191  //
192 private:
193  // The SymbolTable in the current scoreDef
194  SymbolTable *m_symbolTable;
195 };
196 
197 //----------------------------------------------------------------------------
198 // PrepareFacsimileFunctor
199 //----------------------------------------------------------------------------
200 
205 public:
211  virtual ~PrepareFacsimileFunctor() = default;
213 
214  /*
215  * Abstract base implementation
216  */
217  bool ImplementsEndInterface() const override { return false; }
218 
219  /*
220  * Getter for the zoneless syllables
221  */
222  const ListOfObjects &GetZonelessSyls() const { return m_zonelessSyls; }
223 
224  /*
225  * Getter for the facsimile
226  */
227  Facsimile *GetFacsimile() const { return m_facsimile; }
228 
229  /*
230  * Functor interface
231  */
233  FunctorCode VisitObject(Object *object) override;
235 
236 protected:
237  //
238 private:
239  //
240 public:
241  //
242 private:
243  // The facsimile
244  Facsimile *m_facsimile;
245  // List of zoneless syllables
246  ListOfObjects m_zonelessSyls;
247 };
248 
249 //----------------------------------------------------------------------------
250 // PrepareLinkingFunctor
251 //----------------------------------------------------------------------------
252 
257 public:
263  virtual ~PrepareLinkingFunctor() = default;
265 
266  /*
267  * Abstract base implementation
268  */
269  bool ImplementsEndInterface() const override { return false; }
270 
271  /*
272  * Getter for the interface / id pairs
273  */
275  const MapOfLinkingInterfaceIDPairs &GetNextIDPairs() const { return m_nextIDPairs; }
276  const MapOfLinkingInterfaceIDPairs &GetSameasIDPairs() const { return m_sameasIDPairs; }
277  const MapOfNoteIDPairs &GetStemSameasIDPairs() const { return m_stemSameasIDPairs; }
279 
280  /*
281  * Insert interface / id pairs
282  */
284  void InsertNextIDPair(const std::string &nextID, LinkingInterface *interface);
285  void InsertSameasIDPair(const std::string &sameasID, LinkingInterface *interface);
287 
288  /*
289  * Functor interface
290  */
292  FunctorCode VisitObject(Object *object) override;
294 
295 protected:
296  //
297 private:
304  void ResolveStemSameas(Note *note);
305 
306 public:
307  //
308 private:
309  // Holds the interface / id pairs to match for links
310  MapOfLinkingInterfaceIDPairs m_nextIDPairs;
311  // Holds the interface / id pairs to match for sameas
312  MapOfLinkingInterfaceIDPairs m_sameasIDPairs;
313  // Holds the note / id pairs to match for stem.sameas
314  MapOfNoteIDPairs m_stemSameasIDPairs;
315 };
316 
317 //----------------------------------------------------------------------------
318 // PreparePlistFunctor
319 //----------------------------------------------------------------------------
320 
325 public:
331  virtual ~PreparePlistFunctor() = default;
333 
334  /*
335  * Abstract base implementation
336  */
337  bool ImplementsEndInterface() const override { return false; }
338 
339  /*
340  * Getter and modifier for the interface / id pairs
341  */
343  const ArrayOfPlistObjectIDPairs &GetInterfaceIDPairs() const { return m_plistObjectIDPairs; }
344  void InsertInterfaceObjectIDPair(Object *objectWithPlist, const std::string &elementID);
346 
347  /*
348  * Functor interface
349  */
351  FunctorCode VisitObject(Object *object) override;
353 
354 protected:
355  //
356 private:
357  //
358 public:
359  //
360 private:
361  // Holds the object with plist / id pairs to match
362  ArrayOfPlistObjectIDPairs m_plistObjectIDPairs;
363 };
364 
365 //----------------------------------------------------------------------------
366 // PrepareDurationFunctor
367 //----------------------------------------------------------------------------
368 
373 public:
379  virtual ~PrepareDurationFunctor() = default;
381 
382  /*
383  * Abstract base implementation
384  */
385  bool ImplementsEndInterface() const override { return false; }
386 
387  /*
388  * Functor interface
389  */
391  FunctorCode VisitLayerElement(LayerElement *layerElement) override;
392  FunctorCode VisitScoreOrPartElement(ScoreOrPartElement *scoreOrPart) override;
393  FunctorCode VisitScoreDef(ScoreDef *scoreDef) override;
394  FunctorCode VisitStaffDef(StaffDef *staffDef) override;
396 
397 protected:
398  //
399 private:
400  //
401 public:
402  //
403 private:
404  // The current scoreDef default duration
405  data_DURATION m_durDefault;
406  // The current staffDef default durations
407  std::map<int, data_DURATION> m_durDefaultForStaffN;
408 };
409 
410 //----------------------------------------------------------------------------
411 // PrepareTimePointingFunctor
412 //----------------------------------------------------------------------------
413 
418 public:
424  virtual ~PrepareTimePointingFunctor() = default;
426 
427  /*
428  * Abstract base implementation
429  */
430  bool ImplementsEndInterface() const override { return true; }
431 
432  /*
433  * Getter and modifier for the interface / id tuples
434  */
436  void InsertInterfaceIDTuple(ClassId classID, TimePointInterface *interface);
438 
439  /*
440  * Functor interface
441  */
443  FunctorCode VisitF(F *f) override;
444  FunctorCode VisitFloatingObject(FloatingObject *floatingObject) override;
445  FunctorCode VisitLayerElement(LayerElement *layerElement) override;
446  FunctorCode VisitMeasureEnd(Measure *measure) override;
448 
449 protected:
450  //
451 private:
452  //
453 public:
454  //
455 private:
456  // The interface list that holds the current elements to match
457  ListOfPointingInterClassIdPairs m_timePointingInterfaces;
458 };
459 
460 //----------------------------------------------------------------------------
461 // PrepareTimeSpanningFunctor
462 //----------------------------------------------------------------------------
463 
470 public:
476  virtual ~PrepareTimeSpanningFunctor() = default;
478 
479  /*
480  * Abstract base implementation
481  */
482  bool ImplementsEndInterface() const override { return true; }
483 
484  /*
485  * Getter and modifier for the interface / owner pairs
486  */
488  const ListOfSpanningInterOwnerPairs &GetInterfaceOwnerPairs() const { return m_timeSpanningInterfaces; }
489  void InsertInterfaceOwnerPair(Object *owner, TimeSpanningInterface *interface);
491 
492  /*
493  * Functor interface
494  */
496  FunctorCode VisitF(F *f) override;
497  FunctorCode VisitFloatingObject(FloatingObject *floatingObject) override;
498  FunctorCode VisitLayerElement(LayerElement *layerElement) override;
499  FunctorCode VisitMeasure(Measure *measure) override;
500  FunctorCode VisitMeasureEnd(Measure *measure) override;
502 
503 protected:
504  //
505 private:
506  // Delegates to the pseudo functor of the interface
507  FunctorCode CallPseudoFunctor(Object *timeSpanningObject);
508 
509 public:
510  //
511 private:
512  // The interface list that holds the current elements to match
513  ListOfSpanningInterOwnerPairs m_timeSpanningInterfaces;
514  // Indicates whether we currently traverse a measure
515  bool m_insideMeasure;
516 };
517 
518 //----------------------------------------------------------------------------
519 // PrepareTimestampsFunctor
520 //----------------------------------------------------------------------------
521 
528 public:
534  virtual ~PrepareTimestampsFunctor() = default;
536 
537  /*
538  * Abstract base implementation
539  */
540  bool ImplementsEndInterface() const override { return true; }
541 
542  /*
543  * Getter and modifier for the interface / object lists
544  */
546  const ListOfSpanningInterClassIdPairs &GetInterfaceIDPairs() const { return m_timeSpanningInterfaces; }
547  void InsertInterfaceIDPair(ClassId classID, TimeSpanningInterface *interface);
548  void InsertObjectBeatPair(Object *object, const data_MEASUREBEAT &beat);
550 
551  /*
552  * Functor interface
553  */
555  FunctorCode VisitDocEnd(Doc *doc) override;
556  FunctorCode VisitF(F *f) override;
557  FunctorCode VisitFloatingObject(FloatingObject *floatingObject) override;
558  FunctorCode VisitMeasureEnd(Measure *measure) override;
560 
561 protected:
562  //
563 private:
564  //
565 public:
566  //
567 private:
568  // The interface list that holds the current elements to match
569  ListOfSpanningInterClassIdPairs m_timeSpanningInterfaces;
570  // The list of tstamp2 elements to attach at the measure end
571  ListOfObjectBeatPairs m_tstamps;
572 };
573 
574 //----------------------------------------------------------------------------
575 // PreparePedalsFunctor
576 //----------------------------------------------------------------------------
577 
582 public:
588  virtual ~PreparePedalsFunctor() = default;
590 
591  /*
592  * Abstract base implementation
593  */
594  bool ImplementsEndInterface() const override { return false; }
595 
596  /*
597  * Functor interface
598  */
600  FunctorCode VisitPedal(Pedal *pedal) override;
601  FunctorCode VisitScoreDef(ScoreDef *scoreDef) override;
602  FunctorCode VisitScoreOrPartElement(ScoreOrPartElement *scoreOrPart) override;
603  FunctorCode VisitStaffDef(StaffDef *staffDef) override;
605 
606 protected:
607  //
608 private:
609  struct ActivePedalSegment {
610  Pedal *pedal = NULL;
611  int grpId = 0;
612  };
613  using PedalKey = std::pair<std::vector<int>, std::string>;
614 
615 public:
616  //
617 private:
618  // The currently active pedal segment per (staff list, @func)
619  std::map<PedalKey, ActivePedalSegment> m_activePedals;
620  // Next auto-generated positive drawingGrpId for continuous pedal chains
621  int m_nextGrpId;
622  // The current scoreDef pedal style
623  data_PEDALSTYLE m_drawingPedalStyle;
624  // The current staffDef pedal styles
625  std::map<int, data_PEDALSTYLE> m_drawingPedalStyleForStaffN;
626 };
627 
628 //----------------------------------------------------------------------------
629 // PreparePointersByLayerFunctor
630 //----------------------------------------------------------------------------
631 
637 public:
643  virtual ~PreparePointersByLayerFunctor() = default;
645 
646  /*
647  * Abstract base implementation
648  */
649  bool ImplementsEndInterface() const override { return true; }
650 
651  /*
652  * Functor interface
653  */
655  FunctorCode VisitDot(Dot *dot) override;
656  FunctorCode VisitLayerElement(LayerElement *layerElement) override;
657  FunctorCode VisitMeasureEnd(Measure *measure) override;
659 
660 protected:
661  //
662 private:
663  //
664 public:
665  //
666 private:
667  // The current note, rest etc.
668  LayerElement *m_currentElement;
669  // The last dot
670  Dot *m_lastDot;
671 };
672 
673 //----------------------------------------------------------------------------
674 // PrepareLyricsFunctor
675 //----------------------------------------------------------------------------
676 
683 public:
688  PrepareLyricsFunctor(int voltaTrack = 0);
689  virtual ~PrepareLyricsFunctor() = default;
691 
692  /*
693  * Abstract base implementation
694  */
695  bool ImplementsEndInterface() const override { return true; }
696 
697  /*
698  * Functor interface
699  */
701  FunctorCode VisitChord(Chord *chord) override;
702  FunctorCode VisitDocEnd(Doc *doc) override;
703  FunctorCode VisitNote(Note *note) override;
704  FunctorCode VisitSyl(Syl *syl) override;
706 
707 protected:
708  //
709 private:
710  //
711 public:
712  //
713 private:
714  // The current Syl
715  Syl *m_currentSyl;
716  // The last Note or Chord
717  LayerElement *m_lastNoteOrChord;
718  // The penultimate Note or Chord
719  LayerElement *m_penultimateNoteOrChord;
720  // 0 for direct <verse>/<syl>, otherwise the normalized volta alternative.
721  int m_voltaTrack;
722 };
723 
724 //----------------------------------------------------------------------------
725 // PrepareLayerElementPartsFunctor
726 //----------------------------------------------------------------------------
727 
732 public:
738  virtual ~PrepareLayerElementPartsFunctor() = default;
740 
741  /*
742  * Abstract base implementation
743  */
744  bool ImplementsEndInterface() const override { return false; }
745 
746  /*
747  * Functor interface
748  */
750  FunctorCode VisitChord(Chord *chord) override;
751  FunctorCode VisitNote(Note *note) override;
752  FunctorCode VisitRest(Rest *rest) override;
753  FunctorCode VisitTabDurSym(TabDurSym *tabDurSym) override;
754  FunctorCode VisitTuplet(Tuplet *tuplet) override;
756 
757 protected:
758  //
759 private:
760  // Create stem if it does not exist
761  Stem *EnsureStemExists(Stem *stem, Object *parent) const;
762  // Create dots if they should exist, otherwise remove them
763  Dots *ProcessDots(Dots *dots, Object *parent, bool shouldExist) const;
764  // Create flag if it should exist, otherwise remove it
765  Flag *ProcessFlag(Flag *flag, Object *parent, bool shouldExist) const;
766 
767 public:
768  //
769 private:
770  //
771 };
772 
773 //----------------------------------------------------------------------------
774 // PrepareRptFunctor
775 //----------------------------------------------------------------------------
776 
782 public:
787  PrepareRptFunctor(Doc *doc);
788  virtual ~PrepareRptFunctor() = default;
790 
791  /*
792  * Abstract base implementation
793  */
794  bool ImplementsEndInterface() const override { return false; }
795 
796  /*
797  * Functor interface
798  */
800  FunctorCode VisitLayer(Layer *layer) override;
801  FunctorCode VisitMRpt(MRpt *mRpt) override;
802  FunctorCode VisitStaff(Staff *staff) override;
804 
805 protected:
806  //
807 private:
808  //
809 public:
810  //
811 private:
812  // The current MRpt
813  MRpt *m_currentMRpt;
814  // The data_BOOLEAN indicating if multiNumber
815  data_BOOLEAN m_multiNumber;
816 };
817 
818 //----------------------------------------------------------------------------
819 // PrepareDelayedTurnsFunctor
820 //----------------------------------------------------------------------------
821 
827 public:
833  virtual ~PrepareDelayedTurnsFunctor() = default;
835 
836  /*
837  * Abstract base implementation
838  */
839  bool ImplementsEndInterface() const override { return false; }
840 
841  /*
842  * Getter for the map of delayed turns
843  */
844  const std::map<LayerElement *, Turn *> &GetDelayedTurns() const { return m_delayedTurns; }
845 
846  /*
847  * Reset the current turn and element
848  */
849  void ResetCurrent();
850 
851  /*
852  * Functor interface
853  */
855  FunctorCode VisitLayerElement(LayerElement *layerElement) override;
856  FunctorCode VisitTurn(Turn *turn) override;
858 
859 protected:
860  //
861 private:
862  //
863 public:
864  //
865 private:
866  // The element to which a turn is pointing to
867  LayerElement *m_previousElement;
868  // The current chord
869  Chord *m_currentChord;
870  // The turn to which we want to set a m_drawingEndElement
871  Turn *m_currentTurn;
872  // A map of the delayed turns and the layer elements they point to
873  std::map<LayerElement *, Turn *> m_delayedTurns;
874 };
875 
876 //----------------------------------------------------------------------------
877 // PrepareMilestonesFunctor
878 //----------------------------------------------------------------------------
879 
884 public:
890  virtual ~PrepareMilestonesFunctor() = default;
892 
893  /*
894  * Abstract base implementation
895  */
896  bool ImplementsEndInterface() const override { return false; }
897 
898  /*
899  * Getter and modifier for the interface list
900  */
902  const std::vector<SystemMilestoneInterface *> &GetStartMilestones() const { return m_startMilestones; }
903  void InsertStartMilestone(SystemMilestoneInterface *interface);
905 
906  /*
907  * Functor interface
908  */
910  FunctorCode VisitEditorialElement(EditorialElement *editorialElement) override;
911  FunctorCode VisitEnding(Ending *ending) override;
912  FunctorCode VisitMeasure(Measure *measure) override;
913  FunctorCode VisitSection(Section *section) override;
914  FunctorCode VisitSystemMilestone(SystemMilestoneEnd *systemMilestoneEnd) override;
916 
917 protected:
918  //
919 private:
920  //
921 public:
922  //
923 private:
924  // The last measure
925  Measure *m_lastMeasure;
926  // The current ending
927  Ending *m_currentEnding;
928  // The list of start milestones
929  std::vector<SystemMilestoneInterface *> m_startMilestones;
930 };
931 
932 //----------------------------------------------------------------------------
933 // PrepareFloatingGrpsFunctor
934 //----------------------------------------------------------------------------
935 
941 public:
947  virtual ~PrepareFloatingGrpsFunctor() = default;
949 
950  /*
951  * Abstract base implementation
952  */
953  bool ImplementsEndInterface() const override { return true; }
954 
955  /*
956  * Functor interface
957  */
959  FunctorCode VisitDir(Dir *dir) override;
960  FunctorCode VisitDynam(Dynam *dynam) override;
961  FunctorCode VisitEnding(Ending *ending) override;
962  FunctorCode VisitHairpin(Hairpin *hairpin) override;
963  FunctorCode VisitHarm(Harm *harm) override;
964  FunctorCode VisitMeasure(Measure *measure) override;
965  FunctorCode VisitMeasureEnd(Measure *measure) override;
966  FunctorCode VisitPedal(Pedal *pedal) override;
967  FunctorCode VisitSystemMilestone(SystemMilestoneEnd *systemMilestoneEnd) override;
969 
970 protected:
971  //
972 private:
973  //
974 public:
975  //
976 private:
977  // The previous ending
978  Ending *m_previousEnding;
979  // The dynams in the current measure
980  std::vector<Dynam *> m_dynams;
981  // The current hairpins to be linked / grouped
982  std::vector<Hairpin *> m_hairpins;
983  // The map of existing harms (based on @n)
984  std::map<std::string, Harm *> m_harms;
985 };
986 
987 //----------------------------------------------------------------------------
988 // PrepareStaffCurrentTimeSpanningFunctor
989 //----------------------------------------------------------------------------
990 
997 public:
1003  virtual ~PrepareStaffCurrentTimeSpanningFunctor() = default;
1005 
1006  /*
1007  * Abstract base implementation
1008  */
1009  bool ImplementsEndInterface() const override { return true; }
1010 
1011  /*
1012  * Getter and modifier for the interface list
1013  */
1015  const ArrayOfObjects &GetTimeSpanningElements() const { return m_timeSpanningElements; }
1016  void InsertTimeSpanningElement(Object *element);
1018 
1019  /*
1020  * Functor interface
1021  */
1023  FunctorCode VisitF(F *f) override;
1024  FunctorCode VisitFloatingObject(FloatingObject *floatingObject) override;
1025  FunctorCode VisitMeasureEnd(Measure *measure) override;
1026  FunctorCode VisitStaff(Staff *staff) override;
1027  FunctorCode VisitSyl(Syl *syl) override;
1029 
1030 protected:
1031  //
1032 private:
1033  //
1034 public:
1035  //
1036 private:
1037  // The currently running TimeSpanningInterface elements
1038  ArrayOfObjects m_timeSpanningElements;
1039 };
1040 
1041 //----------------------------------------------------------------------------
1042 // PrepareRehPositionFunctor
1043 //----------------------------------------------------------------------------
1044 
1049 public:
1055  virtual ~PrepareRehPositionFunctor() = default;
1057 
1058  /*
1059  * Abstract base implementation
1060  */
1061  bool ImplementsEndInterface() const override { return false; }
1062 
1063  /*
1064  * Functor interface
1065  */
1067  FunctorCode VisitReh(Reh *reh) override;
1069 
1070 protected:
1071  //
1072 private:
1073  //
1074 public:
1075  //
1076 private:
1077  //
1078 };
1079 
1080 //----------------------------------------------------------------------------
1081 // PrepareBeamSpanElementsFunctor
1082 //----------------------------------------------------------------------------
1083 
1089 public:
1095  virtual ~PrepareBeamSpanElementsFunctor() = default;
1097 
1098  /*
1099  * Abstract base implementation
1100  */
1101  bool ImplementsEndInterface() const override { return false; }
1102 
1103  /*
1104  * Functor interface
1105  */
1107  FunctorCode VisitBeamSpan(BeamSpan *beamSpan) override;
1109 
1110 protected:
1111  //
1112 private:
1113  // Helper to get the element list for the beamSpan - elements are acquired from all layerElements
1114  // that are located in between start and end of the beamSpan
1115  ArrayOfObjects GetBeamSpanElementList(BeamSpan *beamSpan, Layer *layer, const Staff *staff) const;
1116 
1117 public:
1118  //
1119 private:
1120  //
1121 };
1122 
1123 } // namespace vrv
1124 
1125 #endif // __VRV_PREPAREDATAFUNCTOR_H__
This class models the MEI <accid> element.
Definition: accid.h:41
This class models the MEI <beamSpan> element.
Definition: beamspan.h:36
This class represents a collection of notes in the same layer with the same onset time.
Definition: chord.h:44
This class is a mixin for all functors that require two step processing: (1) Collecing data.
Definition: functor.h:220
This class models the MEI <dir> element.
Definition: dir.h:33
This class represents an MEI Div.
Definition: div.h:24
This abstract class is the base class for all mutable functors that need access to the document.
Definition: functor.h:151
This class is a hold the data and corresponds to the model of a MVC design pattern.
Definition: doc.h:41
Definition: dot.h:23
This class models a group of dots as a layer element part and has no direct MEI equivalent.
Definition: elementpart.h:27
Definition: dynam.h:33
This class represents a MEI ending.
Definition: ending.h:33
This class models the MEI <f> element.
Definition: f.h:24
Implements the facsimile element in MEI.
Definition: facsimile.h:31
This class models a stem as a layer element part and has no direct MEI equivalent.
Definition: elementpart.h:97
This class represents elements appearing within a measure.
Definition: floatingobject.h:28
This abstract class is the base class for all mutable functors.
Definition: functor.h:101
This class models the MEI <hairpin> element.
Definition: hairpin.h:32
This class models the MEI <harm> element.
Definition: harm.h:32
This class models the MEI <keySig> element.
Definition: keysig.h:51
This class is a base class for the Layer (<layer>) content.
Definition: layerelement.h:51
This class represents a layer in a laid-out score (Doc).
Definition: layer.h:40
This class models the MEI <mRpt> element.
Definition: mrpt.h:26
This class models the MEI <space> element.
Definition: mspace.h:22
This class represents a measure in a page-based score (Doc).
Definition: measure.h:46
This class models the MEI <note> element.
Definition: note.h:69
This class represents a basic object.
Definition: object.h:66
This class models the MEI <pedal> element.
Definition: pedal.h:37
This class matches the @altsym element to the corresponding symbolDef.
Definition: preparedatafunctor.h:159
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:172
This class gets the list of referenced elements for the BeamSpan and marks referenced objects as cont...
Definition: preparedatafunctor.h:1088
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:1101
This class sets the cross staff and cross layer pointers on layer elements.
Definition: preparedatafunctor.h:113
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:126
This class sets the drawing cue size for all layer elements.
Definition: preparedatafunctor.h:74
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:87
This class is responsible for one time member initialization at the very begin.
Definition: preparedatafunctor.h:26
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:39
This class sets Turn::m_drawingEndNote for delayed turns.
Definition: preparedatafunctor.h:826
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:839
This class extracts the default duration from scoredef/staffdef.
Definition: preparedatafunctor.h:372
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:385
This class associates layer elements with @facs to the appropriate zone.
Definition: preparedatafunctor.h:204
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:217
This class groups FloatingObjects by drawingGrpId.
Definition: preparedatafunctor.h:940
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:953
This class adds LayerElement parts (stem, flag, dots, etc).
Definition: preparedatafunctor.h:731
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:744
This class matches linking elements (e.g, @next).
Definition: preparedatafunctor.h:256
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:269
This class sets wordpos and connector ends.
Definition: preparedatafunctor.h:682
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:695
This class sets the Measure of Ending.
Definition: preparedatafunctor.h:883
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:896
This class matches down and up pedal lines.
Definition: preparedatafunctor.h:581
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:594
This class matches elements of @plist.
Definition: preparedatafunctor.h:324
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:337
This class processes by layer and sets drawing pointers.
Definition: preparedatafunctor.h:636
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:649
This class resolves the Reh time pointing position in case none is set.
Definition: preparedatafunctor.h:1048
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:1061
This class sets mRpt drawing numbers (if required).
Definition: preparedatafunctor.h:781
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:794
This class goes through all the TimeSpanningInterface elements and sets them for each staff that is c...
Definition: preparedatafunctor.h:996
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:1009
This class matches the start for TimePointingInterface elements (such as fermata or harm).
Definition: preparedatafunctor.h:417
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:430
This class matches start and end for TimeSpanningInterface elements (such as tie or slur).
Definition: preparedatafunctor.h:469
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:482
This class matches start and end for TimeSpanningInterface elements with tstamp(2) attributes.
Definition: preparedatafunctor.h:527
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: preparedatafunctor.h:540
This class models the MEI <reh> element.
Definition: reh.h:30
This class models the MEI <ornam> element.
Definition: repeatmark.h:32
This class models the MEI <rest> element.
Definition: rest.h:49
This class represents a MEI scoreDef.
Definition: scoredef.h:136
This class represents a <score> or a <part> in MEI.
Definition: scoreorpartelement.h:33
This class models the MEI <space> element.
Definition: space.h:23
This class represents a MEI staffDef.
Definition: staffdef.h:37
This class represents a staff in a laid-out score (Doc).
Definition: staff.h:110
This class models a stem as a layer element part and as MEI <stem> element.
Definition: stem.h:27
Syl is a TimeSpanningInterface for managing syllable connectors.
Definition: syl.h:39
Definition: symboltable.h:20
This class models an end milestone element at the system level.
Definition: systemmilestone.h:28
This class models the MEI <tabDurSym> element.
Definition: tabdursym.h:29
This class represents a text element featuring horizontal and vertical layout.
Definition: textlayoutelement.h:24
This class is an interface for elements having a single time point, such as tempo,...
Definition: timeinterface.h:39
Definition: tuplet.h:33