Verovio
Source code documentation
vrv::StaffDefDrawingInterface Class Reference

This class is an interface for MEI scoreDef or staffDef attributes clef, keysig and mensur. More...

#include <drawinginterface.h>

Inheritance diagram for vrv::StaffDefDrawingInterface:
vrv::StaffDef

Public Member Functions

Constructors, destructors, and other standard methods
 StaffDefDrawingInterface ()
 
virtual ~StaffDefDrawingInterface ()
 
virtual void Reset ()
 
Set and get the layer drawing flags for clef, keysig and mensur.

This will be true when starting a new system or when a scoreDef or staffDef changes occurs This will be true only for the first layer in the staff.

bool DrawClef () const
 
void SetDrawClef (bool drawClef)
 
bool DrawKeySig () const
 
void SetDrawKeySig (bool drawKeySig)
 
bool DrawMensur () const
 
void SetDrawMensur (bool drawMensur)
 
bool DrawMeterSig () const
 
void SetDrawMeterSig (bool drawMeterSig)
 
bool DrawMeterSigGrp () const
 
void SetDrawMeterSigGrp (bool drawMeterSigGrp)
 
Set the current clef, keySig, mensur and meterSig.
void SetCurrentClef (const Clef *clef)
 
void SetCurrentKeySig (const KeySig *keySig)
 
void SetCurrentMensur (const Mensur *mensur)
 
void SetCurrentMeterSig (const MeterSig *meterSig)
 
void SetCurrentMeterSigGrp (const MeterSigGrp *meterSigGrp)
 
void AlternateCurrentMeterSig (const Measure *measure)
 
void SetCurrentProport (const Proport *proport)
 
Get the clef, keysig, mensur and meterSig object.

They will return a reference to the hold object (element or attribute).

ClefGetCurrentClef ()
 
const ClefGetCurrentClef () const
 
KeySigGetCurrentKeySig ()
 
const KeySigGetCurrentKeySig () const
 
MensurGetCurrentMensur ()
 
const MensurGetCurrentMensur () const
 
MeterSigGetCurrentMeterSig ()
 
const MeterSigGetCurrentMeterSig () const
 
MeterSigGrpGetCurrentMeterSigGrp ()
 
const MeterSigGrpGetCurrentMeterSigGrp () const
 
ProportGetCurrentProport ()
 
const ProportGetCurrentProport () const
 
FunctorCode InterfaceResetData (ResetDataFunctor &functor)
 Called explicitly from ResetDataFunctor.
 

Detailed Description

This class is an interface for MEI scoreDef or staffDef attributes clef, keysig and mensur.

It can either hold element or attribute values. Element values are hold in normal objects (e.g., Clef) and attribute values are hold in dedicated Object classes (e.g., ClefAttr) During rendering, only Element object are used. They are obtained by the GetXXXCopy methods that create a copy of the Element object or a corresponding Element object if a attribute value object is hold.


The documentation for this class was generated from the following file: