8 #ifndef __VRV_SETSCOREDEFFUNCTOR_H__
9 #define __VRV_SETSCOREDEFFUNCTOR_H__
42 FunctorCode VisitStaffDef(
StaffDef *staffDef)
override;
92 FunctorCode VisitPageEnd(
Page *page)
override;
104 std::list<ScoreOrPartElement *> m_scores;
134 bool HasOssia()
const {
return m_hasOssia; }
140 FunctorCode VisitClef(Clef *clef)
override;
141 FunctorCode VisitKeySig(KeySig *keySig)
override;
142 FunctorCode VisitLayer(Layer *layer)
override;
143 FunctorCode VisitMeasure(Measure *measure)
override;
144 FunctorCode VisitMensur(Mensur *mensur)
override;
145 FunctorCode VisitOssia(Ossia *ossia)
override;
146 FunctorCode VisitPage(Page *page)
override;
147 FunctorCode VisitProport(Proport *proport)
override;
148 FunctorCode VisitScoreOrPartElement(ScoreOrPartElement *scoreOrPart)
override;
149 FunctorCode VisitScoreDef(ScoreDef *scoreDef)
override;
150 FunctorCode VisitScoreDefEnd(ScoreDef *scoreDef)
override;
151 FunctorCode VisitStaff(Staff *staff)
override;
152 FunctorCode VisitStaffDef(StaffDef *staffDef)
override;
153 FunctorCode VisitStaffGrp(StaffGrp *staffGrp)
override;
154 FunctorCode VisitSystem(System *system)
override;
155 FunctorCode VisitSystemEnd(System *system)
override;
166 ScoreOrPartElement *m_currentScore;
168 ScoreDef *m_currentScoreDef;
170 StaffDef *m_currentStaffDef;
172 ScoreDef m_upcomingScoreDef;
174 Measure *m_previousMeasure;
176 System *m_currentSystem;
184 MapOfOssiaStaffNs m_ossiasAbove;
186 MapOfOssiaStaffNs m_ossiasBelow;
218 FunctorCode VisitMeasure(
Measure *measure)
override;
220 FunctorCode VisitStaff(
Staff *staff)
override;
221 FunctorCode VisitStaffGrpEnd(
StaffGrp *staffGrp)
override;
222 FunctorCode VisitSystem(
System *system)
override;
223 FunctorCode VisitSystemEnd(
System *system)
override;
238 bool m_firstScoreDef;
277 FunctorCode VisitLayer(
Layer *layer)
override;
278 FunctorCode VisitStaff(
Staff *staff)
override;
295 std::vector<int> m_staffNs;
324 FunctorCode VisitGrpSym(
GrpSym *grpSym)
override;
325 FunctorCode VisitSystem(
System *system)
override;
364 FunctorCode VisitClef(
Clef *clef)
override;
365 FunctorCode VisitLayer(
Layer *layer)
override;
366 FunctorCode VisitMeasure(
Measure *measure)
override;
367 FunctorCode VisitMeasureEnd(
Measure *measure)
override;
368 FunctorCode VisitOssia(
Ossia *ossia)
override;
369 FunctorCode VisitStaff(
Staff *staff)
override;
370 FunctorCode VisitStaffEnd(
Staff *staff)
override;
371 FunctorCode VisitSystem(
System *system)
override;
380 const StaffDef *GetPreviousStaffDef(
Ossia *ossia,
int staffN);
388 Ossia *m_ossia = NULL;
389 std::map<int, StaffDef> m_staffDefs;
396 std::list<CurrentOssia> m_currentOssias;
398 std::list<CurrentOssia> m_previousOssias;
400 StaffDef m_upcomingStaffDef;
402 ScoreDef *m_currentScoreDef;
404 StaffDef *m_currentStaffDef;
406 bool m_layerOssiaStaffDef;
408 bool m_isFirstMeasure;
438 FunctorCode VisitKeySig(
KeySig *keySig)
override;
439 FunctorCode VisitLayer(
Layer *layer)
override;
440 FunctorCode VisitMeasure(
Measure *measure)
override;
441 FunctorCode VisitOssia(
Ossia *ossia)
override;
442 FunctorCode VisitPage(
Page *page)
override;
443 FunctorCode VisitStaff(
Staff *staff)
override;
444 FunctorCode VisitSystem(
System *system)
override;
461 enum StaffDefRedrawFlags {
465 REDRAW_METERSIG = 0x8,
466 REDRAW_METERSIGGRP = 0x10,
468 REDRAW_ALL = REDRAW_CLEF | REDRAW_KEYSIG | REDRAW_MENSUR | REDRAW_METERSIG | REDRAW_METERSIGGRP,
496 FunctorCode VisitStaffDef(
StaffDef *staffDef)
override;
This class stores a references of LayerElements for a staff.
Definition: horizontalaligner.h:298
This class models the MEI <clef> element.
Definition: clef.h:41
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
This abstract class is the base class for all mutable functors.
Definition: functor.h:101
This class represents a MEI grpSym.
Definition: grpsym.h:30
This class models the MEI <keySig> element.
Definition: keysig.h:51
This class represents a layer in a laid-out score (Doc).
Definition: layer.h:40
This class represents a measure in a page-based score (Doc).
Definition: measure.h:46
This class models the MEI <mensur> element.
Definition: mensur.h:34
This class represents a MEI meterSigGrp.
Definition: metersiggrp.h:32
This class models the MEI <meterSig> element.
Definition: metersig.h:34
This class represents an ossia.
Definition: ossia.h:28
This class represents a page in a laid-out score (Doc).
Definition: page.h:31
This class sets the current drawing clef, key signature, etc.
Definition: setscoredeffunctor.h:22
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: setscoredeffunctor.h:36
This class represents a MEI scoreDef.
Definition: scoredef.h:136
This class optimizes the scoreDef for each system.
Definition: setscoredeffunctor.h:199
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: setscoredeffunctor.h:212
This class sets the current scoreDef wherever needed.
Definition: setscoredeffunctor.h:116
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: setscoredeffunctor.h:129
This class sets the Page::m_score and Page::m_scoreEnd pointers.
Definition: setscoredeffunctor.h:73
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: setscoredeffunctor.h:86
This class prepares the group symbol starting and ending staffDefs for drawing.
Definition: setscoredeffunctor.h:305
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: setscoredeffunctor.h:318
This class prepares the ossia staffDefs for drawing.
Definition: setscoredeffunctor.h:345
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: setscoredeffunctor.h:358
This class unsets the initial scoreDef for each system and measure.
Definition: setscoredeffunctor.h:418
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: setscoredeffunctor.h:431
This class represents a <score> or a <part> in MEI.
Definition: scoreorpartelement.h:33
This class sets the cautionary scoreDef wherever needed.
Definition: setscoredeffunctor.h:252
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: setscoredeffunctor.h:271
void SetRestartStaffNs(const std::vector< int > &staffNs)
Set the list of staffNs in the scoreDef after the restart.
Definition: setscoredeffunctor.h:266
This class sets drawing flags for the StaffDef for indicating whether clefs, keysigs,...
Definition: setscoredeffunctor.h:477
bool ImplementsEndInterface() const override
Return true if the functor implements the end interface.
Definition: setscoredeffunctor.h:490
This class represents a MEI staffDef.
Definition: staffdef.h:37
This class represents a MEI staffGrp.
Definition: staffgrp.h:39
This class represents a staff in a laid-out score (Doc).
Definition: staff.h:110
This class represents a system in a laid-out score (Doc).
Definition: system.h:36