Verovio
Source code documentation
rend.h
1
// Name: rend.h
3
// Author: Laurent Pugin
4
// Created: 2017
5
// Copyright (c) Authors and others. All rights reserved.
7
8
#ifndef __VRV_REND_H__
9
#define __VRV_REND_H__
10
11
#include "areaposinterface.h"
12
#include "atts_externalsymbols.h"
13
#include "atts_shared.h"
14
#include "textelement.h"
15
16
namespace
vrv {
17
18
//----------------------------------------------------------------------------
19
// Rend
20
//----------------------------------------------------------------------------
21
25
class
Rend
:
public
TextElement
,
26
public
AreaPosInterface
,
27
public
AttColor,
28
public
AttExtSymAuth,
29
public
AttLang,
30
public
AttNNumberLike,
31
public
AttTextRendition,
32
public
AttTypography,
33
public
AttWhitespace {
34
public
:
39
Rend
();
41
virtual
~
Rend
();
42
Object
*
Clone
()
const override
{
return
new
Rend
(*
this
); }
43
void
Reset
()
override
;
44
std::string GetClassName()
const override
{
return
"rend"
; }
46
50
AreaPosInterface *GetAreaPosInterface()
override
{
return
dynamic_cast<
AreaPosInterface *
>
(
this
); }
52
const
AreaPosInterface *GetAreaPosInterface()
const override
53
{
54
return
dynamic_cast<
const
AreaPosInterface *
>
(
this
);
55
}
57
62
bool
IsSupportedChild
(ClassId classId)
override
;
63
67
bool
HasEnclosure
()
const
;
68
69
//----------//
70
// Functors //
71
//----------//
72
76
FunctorCode
Accept
(Functor &functor)
override
;
78
FunctorCode
Accept
(ConstFunctor &functor)
const override
;
79
FunctorCode AcceptEnd(Functor &functor)
override
;
80
FunctorCode AcceptEnd(ConstFunctor &functor)
const override
;
82
83
private
:
84
//
85
public
:
86
//
87
private
:
88
};
89
90
}
// namespace vrv
91
92
#endif
vrv::Rend::IsSupportedChild
bool IsSupportedChild(ClassId classId) override
Add an element (text, rend.
vrv::TextElement
Definition:
textelement.h:22
vrv::Object
This class represents a basic object.
Definition:
object.h:59
vrv::Rend::Reset
void Reset() override
Virtual reset method.
vrv::AreaPosInterface
This class is an interface for elements implementing vertically and horizontally positionned elements...
Definition:
areaposinterface.h:26
vrv::Rend::HasEnclosure
bool HasEnclosure() const
Check if rend has an enclosing.
vrv::Rend::Clone
Object * Clone() const override
Method call for copying child classes.
Definition:
rend.h:42
vrv::Rend::Accept
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
vrv::Rend
This class models the MEI <rend> element.
Definition:
rend.h:25
include
vrv
rend.h
Generated on Fri Apr 4 2025 06:58:35 for Verovio by
1.8.17