GUIDOLib  1.7.7
Guido Engine Internal Documentation
GRTie.h
1 #ifndef GRTie_H
2 #define GRTie_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
7  Copyright (C) 2004 Grame
8 
9  This Source Code Form is subject to the terms of the Mozilla Public
10  License, v. 2.0. If a copy of the MPL was not distributed with this
11  file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 
13  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
14  research@grame.fr
15 
16 */
17 
18 
19 #include "GRBowing.h"
20 
21 class ARTie;
22 class GRStaff;
23 
26 class GRTie : public GRBowing
27 {
28  public:
29  GRTie(GRStaff * grstaff, const ARTie * ar, bool hideAccidentals) : GRBowing(grstaff, ar), fHideAccidentals(hideAccidentals) {}
30  virtual ~GRTie() {}
31 
32  virtual void addAssociation(GRNotationElement *el);
33 
34  protected:
35  virtual void automaticAnchorPoints ( const GRBowingContext * bowContext, const ARBowing * arBow, GRSystemStartEndStruct * sse );
36  virtual void automaticControlPoints( const GRBowingContext * bowContext, const ARBowing * arBow, GRSystemStartEndStruct * sse );
37 
38  private:
39  bool fHideAccidentals; // used to hide accidentals after a bar
40  bool fAssoc = false; // becomes true at first association
41  int fPitch = -1; // used for chords associations
42 };
43 
44 #endif
GRTie::automaticAnchorPoints
virtual void automaticAnchorPoints(const GRBowingContext *bowContext, const ARBowing *arBow, GRSystemStartEndStruct *sse)
GRTie::~GRTie
virtual ~GRTie()
Definition: GRTie.h:30
GRSystemStartEndStruct
This class is used to determine when a position tag ends.
Definition: GRPositionTag.h:32
GRTie::GRTie
GRTie(GRStaff *grstaff, const ARTie *ar, bool hideAccidentals)
Definition: GRTie.h:29
GRNotationElement
parent class for all notation elements.
Definition: GRNotationElement.h:54
GRTie::automaticControlPoints
virtual void automaticControlPoints(const GRBowingContext *bowContext, const ARBowing *arBow, GRSystemStartEndStruct *sse)
GRStaff
A GRStaff represents a single line of music.
Definition: GRStaff.h:181
GRBowing
Base class for ties and slurs.
Definition: GRBowing.h:36
GRTie
Graphical representation of a tie.
Definition: GRTie.h:26
ARTie
not yet documented
Definition: ARTie.h:42
GRTie::addAssociation
virtual void addAssociation(GRNotationElement *el)
ARBowing
Implement bowing abstract objects (slur, ties...)
Definition: ARBowing.h:23

Guido Project Copyright © 2019 Grame-CNCM