Verovio
Source code documentation
fig.h
1 // Name: fig.h
3 // Author: Laurent Pugin
4 // Created: 2017
5 // Copyright (c) Authors and others. All rights reserved.
7 
8 #ifndef __VRV_FIG_H__
9 #define __VRV_FIG_H__
10 
11 #include "areaposinterface.h"
12 #include "textelement.h"
13 
14 namespace vrv {
15 
16 //----------------------------------------------------------------------------
17 // Fig (figure)
18 //----------------------------------------------------------------------------
19 
23 class Fig : public TextElement, public AreaPosInterface {
24 public:
30  Fig();
31  virtual ~Fig();
32  Object *Clone() const override { return new Fig(*this); }
33  void Reset() override;
34  std::string GetClassName() const override { return "fig"; }
36 
41  AreaPosInterface *GetAreaPosInterface() override { return dynamic_cast<AreaPosInterface *>(this); }
42  const AreaPosInterface *GetAreaPosInterface() const override
43  {
44  return dynamic_cast<const AreaPosInterface *>(this);
45  }
47 
52  bool IsSupportedChild(ClassId classId) override;
53 
54  //----------//
55  // Functors //
56  //----------//
57 
62  FunctorCode Accept(Functor &functor) override;
63  FunctorCode Accept(ConstFunctor &functor) const override;
64  FunctorCode AcceptEnd(Functor &functor) override;
65  FunctorCode AcceptEnd(ConstFunctor &functor) const override;
67 
68 private:
69  //
70 public:
71  //
72 private:
73  //
74 };
75 
76 } // namespace vrv
77 
78 #endif
This class is an interface for elements implementing vertically and horizontally positionned elements...
Definition: areaposinterface.h:26
This abstract class is the base class for all const functors.
Definition: functor.h:126
This class models the MEI <fig> element.
Definition: fig.h:23
FunctorCode Accept(Functor &functor) override
Interface for class functor visitation.
bool IsSupportedChild(ClassId classId) override
Add an element (svg) to an fig.
void Reset() override
Virtual reset method.
Object * Clone() const override
Method call for copying child classes.
Definition: fig.h:32
This abstract class is the base class for all mutable functors.
Definition: functor.h:101
This class represents a basic object.
Definition: object.h:61
Definition: textelement.h:22