8 #ifndef __VRV_SCORE_H__
9 #define __VRV_SCORE_H__
11 #include "atts_shared.h"
13 #include "pageelement.h"
14 #include "pagemilestone.h"
39 Score(
bool createScoreDef);
42 std::string GetClassName()
const override {
return "score"; }
57 ScoreDef *GetScoreDef() {
return m_scoreDef; }
58 const ScoreDef *GetScoreDef()
const {
return m_scoreDef; }
59 Object *GetScoreDefSubtree() {
return m_scoreDefSubtree; }
84 FunctorCode AcceptEnd(
Functor &functor)
override;
85 FunctorCode AcceptEnd(
ConstFunctor &functor)
const override;
100 Object *m_scoreDefSubtree;
108 int m_drawingPgHeadHeight;
109 int m_drawingPgFootHeight;
110 int m_drawingPgHead2Height;
111 int m_drawingPgFoot2Height;
This abstract class is the base class for all const functors.
Definition: functor.h:126
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 basic object.
Definition: object.h:61
This class represents elements appearing within a page.
Definition: pageelement.h:25
This class is an interface for container elements that have to be turned to milestones in a page-base...
Definition: pagemilestone.h:83
This class represents a MEI scoreDef.
Definition: scoredef.h:135
This class represent a <score> in MEI.
Definition: score.h:30
bool IsSupportedChild(ClassId classId) override
Base method for checking if a child can be added.
bool ScoreDefNeedsOptimization(int optionCondense) const
Check whether we need to optimize score based on the condense option.
void Reset() override
Reset the object, that is 1) removing all children and 2) resetting all attributes.
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
void CalcRunningElementHeight(Doc *doc)
Calculate the height of the pgHead/pgHead2 and pgFoot/pgFoot2 (if any) Requires the Doc to have an em...
void SetScoreDefSubtree(Object *subtree, ScoreDef *scoreScoreDef)
Getter for the score/scoreDef.