GUIDOLib  1.7.7
Guido Engine Internal Documentation
GRShowVisitor.h
1 /*
2  GUIDO Library
3  Copyright (C) 2017 Grame
4 
5  This Source Code Form is subject to the terms of the Mozilla Public
6  License, v. 2.0. If a copy of the MPL was not distributed with this
7  file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
10  research@grame.fr
11 
12 */
13 
14 #ifndef ___GRShowVisitor___
15 #define ___GRShowVisitor___
16 
17 #include <iostream>
18 #include "GUIDOEngine.h"
19 #include "GRVisitor.h"
20 
21 
22 class GRShowVisitor : public GRVisitor
23 {
24  bool fState;
25  GRElement fTarget;
26 
27  public:
28  GRShowVisitor(GRElement elt, bool state) : fState(state), fTarget(elt) {}
29  virtual ~GRShowVisitor() {}
30 
31  virtual bool voiceMode () { return false; }
32 
33  virtual void visitStart (GRRange* o);
34  virtual void visitStart (GRText* o);
35  virtual void visitStart (GRSlur* o);
36  virtual void visitStart (GRDynamics* o);
37  virtual void visitStart (GRIntens* o);
38  virtual void visitStart (GRArticulation* o);
39 };
40 
41 #endif
GRVisitor
Definition: GRVisitor.h:39
GRShowVisitor
Definition: GRShowVisitor.h:22
GRText
A text string.
Definition: GRText.h:34
GRElement
GRElement
Definition: GUIDOEngine.h:250
GRShowVisitor::GRShowVisitor
GRShowVisitor(GRElement elt, bool state)
Definition: GRShowVisitor.h:28
GRSlur
Graphical representation of a slur.
Definition: GRSlur.h:24
GRRange
Placeholder for range-tags that directly place articulation marks for notes/events ....
Definition: GRRange.h:29
GRShowVisitor::~GRShowVisitor
virtual ~GRShowVisitor()
Definition: GRShowVisitor.h:29
GRShowVisitor::voiceMode
virtual bool voiceMode()
Definition: GRShowVisitor.h:31
GRIntens
not yet documented
Definition: GRIntens.h:28
GRArticulation
Articulations: staccato, accent, marcato, tenuto, fermata, breath-mark, harmonics.
Definition: GRArticulation.h:35
GRDynamics
Definition: GRDynamics.h:28
GRShowVisitor::visitStart
virtual void visitStart(GRRange *o)

Guido Project Copyright © 2019 Grame-CNCM