7 #ifndef __VRV_VOLTA_H__
8 #define __VRV_VOLTA_H__
10 #include "atts_shared.h"
11 #include "layerelement.h"
12 #include "offsetinterface.h"
25 public AttNNumberLike,
26 public AttTypography {
32 std::string GetClassName()
const override {
return "volta"; }
37 OffsetInterface *GetOffsetInterface()
override {
return vrv_cast<OffsetInterface *>(
this); }
38 const OffsetInterface *GetOffsetInterface()
const override {
return vrv_cast<const OffsetInterface *>(
this); }
42 void SetDrawingVoltaN(
int drawingVoltaN)
const
44 m_drawingVoltaN = drawingVoltaN;
45 m_drawingVoltaNSet =
true;
47 bool HasDrawingVoltaN()
const {
return m_drawingVoltaNSet; }
48 void ResetDrawingVoltaN()
51 m_drawingVoltaNSet =
false;
56 FunctorCode AcceptEnd(
Functor &functor)
override;
57 FunctorCode AcceptEnd(
ConstFunctor &functor)
const override;
60 mutable int m_drawingVoltaN;
61 mutable bool m_drawingVoltaNSet;
This abstract class is the base class for all const functors.
Definition: functor.h:126
This abstract class is the base class for all mutable functors.
Definition: functor.h:101
This class is a base class for the Layer (<layer>) content.
Definition: layerelement.h:51
This class represents a basic object.
Definition: object.h:66
This class is an interface for elements having a single visual offset, such as arpeg,...
Definition: offsetinterface.h:28
Sung text for a specific iteration of a repeated section of music.
Definition: volta.h:26
bool IsSupportedChild(ClassId classId) override
Add an element (a syl) to a volta.
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: volta.h:30
int GetDrawingVoltaN() const
The normalized one-based alternative index used only for drawing and lyric processing.
Definition: volta.h:41