Verovio
Source code documentation
offsetinterface.h
1 // Name: offsetinterface.h
3 // Author: Laurent Pugin
4 // Created: 2025
5 // Copyright (c) Authors and others. All rights reserved.
7 
8 #ifndef __VRV_OFFSET_INTERFACE_H__
9 #define __VRV_OFFSET_INTERFACE_H__
10 
11 #include "atts_shared.h"
12 #include "interface.h"
13 #include "vrvdef.h"
14 
15 namespace vrv {
16 
17 class Object;
18 class ResetDataFunctor;
19 
20 //----------------------------------------------------------------------------
21 // OffsetInterface
22 //----------------------------------------------------------------------------
23 
28 class OffsetInterface : public Interface, public AttVisualOffsetHo, public AttVisualOffsetVo {
29 public:
36  virtual ~OffsetInterface();
37  void Reset() override;
38  InterfaceId IsInterface() const override { return INTERFACE_OFFSET; }
40 
41  //-----------------//
42  // Pseudo functors //
43  //-----------------//
44 
50  FunctorCode InterfaceResetData(ResetDataFunctor &functor, Object *object);
52 
53 protected:
54  //
55 private:
56  //
57 public:
58  //
59 protected:
60  //
61 private:
62 };
63 
64 //----------------------------------------------------------------------------
65 // OffsetSpanningInterface
66 //----------------------------------------------------------------------------
67 
72 class OffsetSpanningInterface : public Interface, public AttVisualOffset2Ho, public AttVisualOffset2Vo {
73 public:
80  virtual ~OffsetSpanningInterface();
81  void Reset() override;
82  InterfaceId IsInterface() const override { return INTERFACE_OFFSET_SPANNING; }
84 
86  FunctorCode InterfaceResetData(ResetDataFunctor &functor, Object *object);
88 
89 private:
90  //
91 public:
92  //
93 private:
94 };
95 
96 } // namespace vrv
97 
98 #endif
This is a base class for regrouping MEI att classes.
Definition: interface.h:32
This class represents a basic object.
Definition: object.h:64
This class is an interface for elements having a single visual offset, such as arpeg,...
Definition: offsetinterface.h:28
InterfaceId IsInterface() const override
Virtual method returning the InterfaceId of the interface.
Definition: offsetinterface.h:38
void Reset() override
Virtual reset method.
FunctorCode InterfaceResetData(ResetDataFunctor &functor, Object *object)
We have functor code in the interface for avoiding code duplication in each implementation class.
This class is an interface for elements having spanning visual offsets, such as slur,...
Definition: offsetinterface.h:72
void Reset() override
Virtual reset method.
InterfaceId IsInterface() const override
Virtual method returning the InterfaceId of the interface.
Definition: offsetinterface.h:82
This class resets the drawing values before calling PrepareData after changes.
Definition: resetfunctor.h:22