GUIDOLib  1.7.7
Guido Engine Internal Documentation
GRJump.h
1 #ifndef __GRJump__
2 #define __GRJump__
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2004 Grame
7 
8  This Source Code Form is subject to the terms of the Mozilla Public
9  License, v. 2.0. If a copy of the MPL was not distributed with this
10  file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 
12  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
13  research@grame.fr
14 
15 */
16 
17 #include <map>
18 #include <string>
19 
20 #include "GRTagARNotationElement.h"
21 //#include "GDeviceDefs.h"
22 
23 class ARJump;
24 class VGFont;
25 
26 typedef std::map<std::string, unsigned int> SymbolMap;
27 
31 {
32  public:
33  GRJump( const ARJump * ar, bool rightJustified=true );
34  virtual ~GRJump();
35 
36  virtual const ARJump * getARJump() const;
37 
38  virtual void OnDraw( VGDevice & hdc ) const;
39  virtual const NVPoint & getReferencePosition() const { return refpos; }
40 
41  protected:
42  enum { kTextFontSize = 110 };
43 
44  virtual float getSymbolSize () const;
45  virtual const VGFont* SelectTextFont( VGDevice & hdc ) const;
46 
48 
49  static const VGFont* mFont;
50  static NVPoint refpos;
51  static SymbolMap mSymbols;
52 };
53 
54 #endif
GRJump::mFont
static const VGFont * mFont
Definition: GRJump.h:49
GRJump::getSymbolSize
virtual float getSymbolSize() const
GRJump::SelectTextFont
virtual const VGFont * SelectTextFont(VGDevice &hdc) const
NVPoint
Definition: NVPoint.h:20
GRJump
common part for coda, segno, da capo etc...
Definition: GRJump.h:30
GRJump::kTextFontSize
Definition: GRJump.h:42
GRJump::getARJump
virtual const ARJump * getARJump() const
GRJump::refpos
static NVPoint refpos
Definition: GRJump.h:50
GRJump::mRightJustified
bool mRightJustified
Definition: GRJump.h:47
VGDevice
Generic platform independant drawing device.
Definition: VGDevice.h:68
GRJump::mSymbols
static SymbolMap mSymbols
Definition: GRJump.h:51
GRJump::getReferencePosition
virtual const NVPoint & getReferencePosition() const
Retrieves the Symbol-reference-position with respect to the GUIDO-reference-position.
Definition: GRJump.h:39
GRTagARNotationElement
GRTagARNotationElement.
Definition: GRTagARNotationElement.h:26
VGFont
Generic pure virtual & device-independant font class.
Definition: VGFont.h:36
ARJump
common implementation for \coda, \segno, \toCoda etc...
Definition: ARJump.h:25
GRJump::~GRJump
virtual ~GRJump()
GRJump::OnDraw
virtual void OnDraw(VGDevice &hdc) const
GRJump::GRJump
GRJump(const ARJump *ar, bool rightJustified=true)

Guido Project Copyright © 2019 Grame-CNCM