![]() |
Verovio
Source code documentation
|
This class is an interface for MEI beam elements (beam, beamSpan). More...
#include <drawinginterface.h>
Public Member Functions | |
| void | InitCue (bool beamCue) |
| Initialize m_cueSize value based on the @cue attribute and presence of child elements with @cue attributes. | |
| void | InitGraceStemDir (bool graceGrp) |
| Initialize m_notesStemDir value based on the @graceGrp attribute and presence of child elements with @grace attributes. | |
| bool | IsHorizontal () const |
| bool | IsRepeatedPattern () const |
| bool | HasOneStepHeight () const |
| Checks whether difference between highest and lowest notes of the beam is just one step. | |
| int | GetTotalBeamWidth () const |
| Get total beam width with regards to the shortest duration of the beam (counting both beams and whitespace between them) | |
| void | ClearCoords () |
| Clear the m_beamElementCoords vector and delete all the objects. | |
| virtual std::pair< int, int > | GetAdditionalBeamCount () const |
| Helper to find number of additional beams. More... | |
| virtual std::pair< int, int > | GetFloatingBeamCount () const |
| Helper to get number of beams represented by attributes @beam and @beam.float. | |
| void | GetBeamOverflow (StaffAlignment *&above, StaffAlignment *&below) const |
| Get above/below overflow. | |
| void | GetBeamChildOverflow (StaffAlignment *&above, StaffAlignment *&below) const |
| Get above/below overflow for the children. | |
Constructors, destructors, and other standard methods | |
| BeamDrawingInterface () | |
| virtual | ~BeamDrawingInterface () |
| virtual void | Reset () |
| bool | IsFirstIn (const LayerElement *element) const |
| Return information about the position in the beam. | |
| bool | IsLastIn (const LayerElement *element) const |
| bool | HasCoords () const |
| Initializes the m_beamElementCoords vector objects. | |
| void | InitCoords (const ArrayOfObjects &childList, Staff *staff, data_BEAMPLACE place) |
| void | InitCoords (const ListOfObjects &childList, Staff *staff, data_BEAMPLACE place) |
| FunctorCode | InterfaceResetData (ResetDataFunctor &functor) |
| Called explicitly from ResetDataFunctor. | |
Public Member Functions inherited from vrv::ObjectListInterface | |
| ObjectListInterface (const ObjectListInterface &listInterface) | |
| ObjectListInterface & | operator= (const ObjectListInterface &listInterface) |
| int | GetListIndex (const Object *listElement) const |
| Look for the Object in the list and return its position (-1 if not found) | |
| void | ResetList () const |
| Reset the list of children and call FilterList(). | |
| const Object * | GetListFirst (const Object *startFrom, const ClassId classId=UNSPECIFIED) const |
| Gets the first item of type elementType starting at startFrom. | |
| Object * | GetListFirst (const Object *startFrom, const ClassId classId=UNSPECIFIED) |
| const Object * | GetListFirstBackward (const Object *startFrom, const ClassId classId=UNSPECIFIED) const |
| Object * | GetListFirstBackward (const Object *startFrom, const ClassId classId=UNSPECIFIED) |
| const Object * | GetListPrevious (const Object *listElement) const |
| Returns the previous object in the list (NULL if not found) | |
| Object * | GetListPrevious (const Object *listElement) |
| const Object * | GetListNext (const Object *listElement) const |
| Returns the next object in the list (NULL if not found) | |
| Object * | GetListNext (const Object *listElement) |
| const ListOfConstObjects & | GetList () const |
| Return the list. More... | |
| ListOfObjects | GetList () |
| bool | HasEmptyList () const |
| Convenience functions that check if the list is up-to-date If not, the list is updated before returning the result. | |
| int | GetListSize () const |
| const Object * | GetListFront () const |
| Object * | GetListFront () |
| const Object * | GetListBack () const |
| Object * | GetListBack () |
Public Attributes | |
| bool | m_changingDur |
| bool | m_beamHasChord |
| bool | m_hasMultipleStemDir |
| bool | m_cueSize |
| Staff * | m_crossStaffContent |
| data_STAFFREL_basic | m_crossStaffRel |
| bool | m_isSpanningElement |
| data_DURATION | m_shortestDur |
| data_STEMDIRECTION | m_notesStemDir |
| data_BEAMPLACE | m_drawingPlace |
| Staff * | m_beamStaff |
| int | m_beamWidth |
| int | m_beamWidthBlack |
| int | m_beamWidthWhite |
| int | m_fractionSize |
| ArrayOfBeamElementCoords | m_beamElementCoords |
| An array of coordinates for each element. | |
Protected Member Functions | |
| int | GetPosition (const LayerElement *element) const |
| Return the position of the element in the beam. More... | |
Protected Member Functions inherited from vrv::ObjectListInterface | |
| virtual void | FilterList (ListOfConstObjects &) const |
| Filter the list for a specific class. More... | |
This class is an interface for MEI beam elements (beam, beamSpan).
It stores stem drawing values. It is also an ObjectListInterface.
|
inlinevirtual |
Helper to find number of additional beams.
Return { additional beams above main beam, additional beams below }
Reimplemented in vrv::FTrem, and vrv::Beam.
|
protected |
Return the position of the element in the beam.
For notes, lookup the position of the parent chord.