GUIDOLib  1.7.7
Guido Engine Internal Documentation
GRIntens.h
1 #ifndef GRIntens_H
2 #define GRIntens_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
7  Copyright (C) 2002-2017 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 #include "GRTagARNotationElement.h"
19 
20 class ARIntens;
21 class GRStaff;
22 class VGDevice;
23 class VGFont;
24 
25 
29 {
30  float fSize = 1;
31  float fDx = 0;
32  float fDy = 0;
33  const GRSingleNote* fNote = 0;
34 
35  public:
36  GRIntens( GRStaff * inStaff, const ARIntens * abstractRepresentationOfIntens );
37  virtual ~GRIntens() {}
38 
39  virtual void OnDraw(VGDevice & hdc ) const;
40  virtual void accept (GRVisitor& visitor);
41 
42  const ARIntens* getARIntens() const;
43  void setNote (const GRSingleNote* note) { fNote = note; }
44  const GRSingleNote* getNote() const { return fNote; }
45 
46  private:
47  const VGFont * fFont;
48  unsigned int fTextAlign;
49 };
50 
51 #endif
52 
53 
GRVisitor
Definition: GRVisitor.h:39
GRSingleNote
Graphical representation of a note event.
Definition: GRSingleNote.h:38
GRIntens::OnDraw
virtual void OnDraw(VGDevice &hdc) const
ARIntens
The intensity tag.
Definition: ARIntens.h:51
GRStaff
A GRStaff represents a single line of music.
Definition: GRStaff.h:181
GRIntens::getARIntens
const ARIntens * getARIntens() const
GRIntens::setNote
void setNote(const GRSingleNote *note)
Definition: GRIntens.h:43
VGDevice
Generic platform independant drawing device.
Definition: VGDevice.h:68
GRIntens::GRIntens
GRIntens(GRStaff *inStaff, const ARIntens *abstractRepresentationOfIntens)
GRIntens::accept
virtual void accept(GRVisitor &visitor)
GRTagARNotationElement
GRTagARNotationElement.
Definition: GRTagARNotationElement.h:26
GRIntens::~GRIntens
virtual ~GRIntens()
Definition: GRIntens.h:37
GRIntens
not yet documented
Definition: GRIntens.h:28
VGFont
Generic pure virtual & device-independant font class.
Definition: VGFont.h:36
GRIntens::getNote
const GRSingleNote * getNote() const
Definition: GRIntens.h:44

Guido Project Copyright © 2019 Grame-CNCM