Verovio
Source code documentation
mdiv.h
1
// Name: mdiv.h
3
// Author: Laurent Pugin
4
// Created: 2018/02/15
5
// Copyright (c) Authors and others. All rights reserved.
7
8
#ifndef __VRV_MDIV_H__
9
#define __VRV_MDIV_H__
10
11
#include "atts_shared.h"
12
#include "pageelement.h"
13
#include "pagemilestone.h"
14
15
namespace
vrv {
16
17
//----------------------------------------------------------------------------
18
// Mdiv
19
//----------------------------------------------------------------------------
20
24
class
Mdiv
:
public
PageElement
,
public
PageMilestoneInterface
,
public
AttLabelled,
public
AttNNumberLike {
25
26
public
:
31
Mdiv
();
33
virtual
~
Mdiv
();
34
Object
*
Clone
()
const override
{
return
new
Mdiv
(*
this
); }
35
void
Reset()
override
;
36
std::string GetClassName()
const override
{
return
"mdiv"
; }
38
42
bool
IsSupportedChild
(ClassId classId)
override
;
45
49
void
MakeVisible
();
50
51
//----------//
52
// Functors //
53
//----------//
54
58
FunctorCode
Accept
(Functor &functor)
override
;
60
FunctorCode
Accept
(ConstFunctor &functor)
const override
;
61
FunctorCode AcceptEnd(Functor &functor)
override
;
62
FunctorCode AcceptEnd(ConstFunctor &functor)
const override
;
64
65
private
:
66
//
67
public
:
73
VisibilityType
m_visibility
;
74
75
private
:
76
//
77
};
78
79
}
// namespace vrv
80
81
#endif
vrv::Mdiv::MakeVisible
void MakeVisible()
Make the mdiv and its parent (recursively) visible.
vrv::Mdiv::m_visibility
VisibilityType m_visibility
Holds the visibility (hidden or visible) for an mdiv element.
Definition:
mdiv.h:73
vrv::PageMilestoneInterface
This class is an interface for container elements that have to be turned to milestones in a page-base...
Definition:
pagemilestone.h:83
vrv::Mdiv::Clone
Object * Clone() const override
Method call for copying child classes.
Definition:
mdiv.h:34
vrv::PageElement
This class represents elements appearing within a page.
Definition:
pageelement.h:25
vrv::Object
This class represents a basic object.
Definition:
object.h:59
vrv::Mdiv::IsSupportedChild
bool IsSupportedChild(ClassId classId) override
Base method for checking if a child can be added.
vrv::Mdiv::Accept
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
vrv::Mdiv
This class represent a <mdiv> in page-based MEI.
Definition:
mdiv.h:24
include
vrv
mdiv.h
Generated on Fri Apr 4 2025 06:58:35 for Verovio by
1.8.17