GUIDOLib  1.7.7
Guido Engine Internal Documentation
GRRepeatEnd.h
1 #ifndef GRRepeatEnd_H
2 #define GRRepeatEnd_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 "GRBar.h"
19 #include "GRDefine.h"
20 #include "GUIDOScoreMap.h"
21 
23 class ARRepeatEnd;
24 
25 
28 // (JB) It's actually a range tag, so it must derive from Position Tag.
29 //class GRRepeatEnd : public GRPTagARNotationElement // was GRTagARNotationElement
30 //class GRRepeatEnd : public GRTagARNotationElement
31 class GRRepeatEnd : public GRBar
32 {
33  public:
34 
35  GRRepeatEnd(const ARRepeatEnd * ar, GRStaff * inStaff, const TYPE_TIMEPOSITION & inTimePos , float proportionnalRender);
36  virtual ~GRRepeatEnd() {}
37 
38  void setPosFrom( float posy );
39  void setPosTo( float posy );
40 
41  const ARRepeatEnd* getARRepeatEnd();
42  virtual unsigned int getTextAlign() const;
43  virtual void updateBoundingBox();
44  virtual void setHPosition( float nx);
45  virtual void GetMap( GuidoElementSelector sel, MapCollector& f, MapInfos& infos ) const;
46  virtual void OnDraw( VGDevice & hdc ) const;
47 
48  virtual const NVPoint & getReferencePosition() const { return refpos; }
49 
50  protected:
51  static NVPoint refpos;
53  float fSize;
55  float fLSpace;
56 
57  private:
58  float getXOffset() const;
59  void DrawDots( VGDevice & hdc ) const;
60  void InitRepeatEnd();
61 };
62 
63 #endif
GRBar
Measure bar.
Definition: GRBar.h:29
MapCollector
an abstract class to be provided by clients to collect mappings
Definition: GUIDOScoreMap.h:109
ARRepeatEndRangeEnd
not yet documented
Definition: ARRepeatEndRangeEnd.h:22
GRRepeatEnd::fBaseThickness
float fBaseThickness
Definition: GRRepeatEnd.h:52
GRRepeatEnd::fSize
float fSize
Definition: GRRepeatEnd.h:53
GRRepeatEnd::fLSpace
float fLSpace
Definition: GRRepeatEnd.h:55
GRRepeatEnd::GetMap
virtual void GetMap(GuidoElementSelector sel, MapCollector &f, MapInfos &infos) const
Fraction
Numerator and denominator.
Definition: Fraction.h:23
GRRepeatEnd::setPosTo
void setPosTo(float posy)
GRRepeatEnd::~GRRepeatEnd
virtual ~GRRepeatEnd()
Definition: GRRepeatEnd.h:36
GRRepeatEnd::setPosFrom
void setPosFrom(float posy)
GRRepeatEnd
The left facing repeat bar sign.
Definition: GRRepeatEnd.h:31
NVPoint
Definition: NVPoint.h:20
MapInfos
A class to propagate device related information.
Definition: GObject.h:42
GRRepeatEnd::GRRepeatEnd
GRRepeatEnd(const ARRepeatEnd *ar, GRStaff *inStaff, const TYPE_TIMEPOSITION &inTimePos, float proportionnalRender)
GRStaff
A GRStaff represents a single line of music.
Definition: GRStaff.h:181
GRRepeatEnd::setHPosition
virtual void setHPosition(float nx)
GRRepeatEnd::refpos
static NVPoint refpos
Definition: GRRepeatEnd.h:51
VGDevice
Generic platform independant drawing device.
Definition: VGDevice.h:68
GRRepeatEnd::getTextAlign
virtual unsigned int getTextAlign() const
GRRepeatEnd::getReferencePosition
virtual const NVPoint & getReferencePosition() const
Retrieves the Symbol-reference-position with respect to the GUIDO-reference-position.
Definition: GRRepeatEnd.h:48
GRRepeatEnd::getARRepeatEnd
const ARRepeatEnd * getARRepeatEnd()
GRRepeatEnd::fStaffThickness
float fStaffThickness
Definition: GRRepeatEnd.h:54
GRRepeatEnd::OnDraw
virtual void OnDraw(VGDevice &hdc) const
GuidoElementSelector
GuidoElementSelector
Definition: GUIDOScoreMap.h:40
ARRepeatEnd
not yet documented
Definition: ARRepeatEnd.h:39
GRRepeatEnd::updateBoundingBox
virtual void updateBoundingBox()

Guido Project Copyright © 2019 Grame-CNCM