8 #ifndef __VRV_PEDAL_H__
9 #define __VRV_PEDAL_H__
12 #include "atts_externalsymbols.h"
13 #include "atts_visual.h"
14 #include "controlelement.h"
15 #include "timeinterface.h"
19 enum class PedalLineJoint : int8_t { None = 0, Bounce };
31 public AttExtSymNames,
33 public AttLineRendBase,
36 public AttPlacementRelStaff,
37 public AttVerticalGroup {
48 std::string GetClassName()
const override {
return "pedal"; }
55 TimePointInterface *GetTimePointInterface()
override {
return vrv_cast<TimePointInterface *>(
this); }
56 const TimePointInterface *GetTimePointInterface()
const override
58 return vrv_cast<const TimePointInterface *>(
this);
60 TimeSpanningInterface *GetTimeSpanningInterface()
override {
return vrv_cast<TimeSpanningInterface *>(
this); }
61 const TimeSpanningInterface *GetTimeSpanningInterface()
const override
63 return vrv_cast<const TimeSpanningInterface *>(
this);
71 PedalLineJoint GetEndJoint()
const {
return m_endJoint; }
72 void SetEndJoint(PedalLineJoint endJoint) { m_endJoint = endJoint; }
73 PedalLineJoint GetStartJoint()
const {
return m_startJoint; }
74 void SetStartJoint(PedalLineJoint startJoint) { m_startJoint = startJoint; }
81 data_PEDALSTYLE GetDrawingStyle()
const {
return m_drawingPedalStyle; }
82 void SetDrawingStyle(data_PEDALSTYLE drawingPedalStyle) { m_drawingPedalStyle = drawingPedalStyle; }
105 FunctorCode AcceptEnd(
Functor &functor)
override;
106 FunctorCode AcceptEnd(
ConstFunctor &functor)
const override;
113 PedalLineJoint m_endJoint;
114 PedalLineJoint m_startJoint;
118 data_PEDALSTYLE m_drawingPedalStyle;
This abstract class is the base class for all const functors.
Definition: functor.h:126
This class represents elements appearing within a measure.
Definition: controlelement.h:35
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:66
This class models the MEI <pedal> element.
Definition: pedal.h:37
char32_t GetPedalGlyph() const
Get the SMuFL glyph for the pedal based on function or glyph.num.
int GetLineWidth(const Doc *doc, int unit) const
Calculate the pedal line width based on @lwidth or the pedalLineThickness option.
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
void Reset() override
Virtual reset method.
Object * Clone() const override
Method call for copying child classes.
Definition: pedal.h:46
This class is an interface for elements having a single time point, such as tempo,...
Definition: timeinterface.h:39
This class is an interface for spanning elements, such as slur, hairpin, etc.
Definition: timeinterface.h:145