Verovio
Source code documentation
zone.h
1
// Name: zone.h
3
// Author: Juliette Regimbal
4
// Created: 05/06/2019
5
// Copyright (c) Authors and others. All rights reserved.
7
8
#ifndef __VRV_ZONE_H__
9
#define __VRV_ZONE_H__
10
11
#include <cassert>
12
13
//----------------------------------------------------------------------------
14
15
#include "atts_analytical.h"
16
#include "atts_shared.h"
17
#include "object.h"
18
#include "vrvdef.h"
19
20
namespace
vrv {
21
22
//----------------------------------------------------------------------------
23
// Zone
24
//----------------------------------------------------------------------------
30
class
Zone
:
public
Object
,
public
AttTyped,
public
AttCoordinated,
public
AttCoordinatedUl {
31
public
:
35
Zone
();
37
virtual
~
Zone
();
38
Object
*
Clone
()
const override
{
return
new
Zone
(*
this
); }
39
void
Reset
()
override
;
40
std::string GetClassName()
const override
{
return
"zone"
; }
42
void
ShiftByXY(
int
xDiff,
int
yDiff);
43
int
GetLogicalUly()
const
;
44
int
GetLogicalLry()
const
;
45
46
//----------//
47
// Functors //
48
//----------//
49
53
FunctorCode
Accept
(Functor &functor)
override
;
55
FunctorCode
Accept
(ConstFunctor &functor)
const override
;
56
FunctorCode AcceptEnd(Functor &functor)
override
;
57
FunctorCode AcceptEnd(ConstFunctor &functor)
const override
;
59
60
protected
:
61
//
62
private
:
63
//
64
};
65
66
}
// namespace vrv
67
68
#endif
vrv::Zone
Implements the zone element in MEI.
Definition:
zone.h:30
vrv::Object
This class represents a basic object.
Definition:
object.h:59
vrv::Zone::Clone
Object * Clone() const override
Method call for copying child classes.
Definition:
zone.h:38
vrv::Zone::Reset
void Reset() override
Reset the object, that is 1) removing all children and 2) resetting all attributes.
vrv::Zone::Accept
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
include
vrv
zone.h
Generated on Fri Apr 4 2025 06:58:36 for Verovio by
1.8.17