GUIDOLib  1.7.7
Guido Engine Internal Documentation
GRRepeatBegin.h
1 #ifndef GRRepeatBegin_H
2 #define GRRepeatBegin_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 "ARBar.h"
19 #include "GRBar.h"
20 #include "GRDefine.h"
21 
22 class ARRepeatBegin;
23 
24 
28  //class GRRepeatBegin : public GRBar
29 {
30 public:
31  // GRRepeatBegin( ARRepeatBegin * ar, GRStaff * inStaff, const TYPE_TIMEPOSITION & inTimePos );
32  GRRepeatBegin ( const ARRepeatBegin * arrb, GRStaff * inStaff, bool p_ownsar = false);
33  virtual ~GRRepeatBegin () {}
34 
35  void setPosFrom( float posy );
36  void setPosTo( float posy );
37 
38  const ARRepeatBegin* getARRepeatBegin() const;
39  virtual unsigned int getTextAlign() const;
40  virtual const NVPoint & getReferencePosition() const { return refpos; }
41  virtual void OnDraw(VGDevice & hdc ) const;
42  virtual void GetMap(GuidoElementSelector sel, MapCollector& f, MapInfos& infos ) const;
43  virtual void updateBoundingBox();
44  virtual void tellPosition(GObject * caller, const NVPoint & newPosition);
45  virtual void setHPosition( float nx);
46 
47  const ARBar::TRanges getRanges() const;
48  void setRanges(const GRBar::TRanges& r) { fRanges = r; }
49 
50 protected:
51  bool isSystemSlice() const;
52  void DrawDots( VGDevice & hdc ) const;
53 
54  static NVPoint refpos;
57  float fSize;
59  float fDx = 0;
60  float fDy = 0;
61 private:
62  float getXOffset() const;
63  GRBar::TRanges fRanges;
64 };
65 
66 #endif
GRRepeatBegin::setHPosition
virtual void setHPosition(float nx)
GRRepeatBegin::~GRRepeatBegin
virtual ~GRRepeatBegin()
Definition: GRRepeatBegin.h:33
MapCollector
an abstract class to be provided by clients to collect mappings
Definition: GUIDOScoreMap.h:109
GRRepeatBegin::setRanges
void setRanges(const GRBar::TRanges &r)
Definition: GRRepeatBegin.h:48
GRRepeatBegin::getTextAlign
virtual unsigned int getTextAlign() const
GObject
The base class for all graphic objects.
Definition: GObject.h:54
GRRepeatBegin::fLinesCount
int fLinesCount
Definition: GRRepeatBegin.h:56
GRRepeatBegin::fDy
float fDy
Definition: GRRepeatBegin.h:60
NVPoint
Definition: NVPoint.h:20
GRRepeatBegin::GRRepeatBegin
GRRepeatBegin(const ARRepeatBegin *arrb, GRStaff *inStaff, bool p_ownsar=false)
ARBar::TRanges
std::vector< std::pair< int, int > > TRanges
Definition: ARBar.h:54
GRRepeatBegin::fSize
float fSize
Definition: GRRepeatBegin.h:57
GRRepeatBegin::GetMap
virtual void GetMap(GuidoElementSelector sel, MapCollector &f, MapInfos &infos) const
MapInfos
A class to propagate device related information.
Definition: GObject.h:42
ARRepeatBegin
The right facing repeat sign.
Definition: ARRepeatBegin.h:38
GRRepeatBegin::tellPosition
virtual void tellPosition(GObject *caller, const NVPoint &newPosition)
GRStaff
A GRStaff represents a single line of music.
Definition: GRStaff.h:181
GRRepeatBegin::getRanges
const ARBar::TRanges getRanges() const
GRRepeatBegin::setPosFrom
void setPosFrom(float posy)
GRRepeatBegin::getReferencePosition
virtual const NVPoint & getReferencePosition() const
Retrieves the Symbol-reference-position with respect to the GUIDO-reference-position.
Definition: GRRepeatBegin.h:40
GRRepeatBegin::OnDraw
virtual void OnDraw(VGDevice &hdc) const
GRRepeatBegin
The right facing repeat bar sign.
Definition: GRRepeatBegin.h:27
VGDevice
Generic platform independant drawing device.
Definition: VGDevice.h:68
GRRepeatBegin::fStaffThickness
float fStaffThickness
Definition: GRRepeatBegin.h:58
GRRepeatBegin::isSystemSlice
bool isSystemSlice() const
GRRepeatBegin::fDx
float fDx
Definition: GRRepeatBegin.h:59
GRRepeatBegin::getARRepeatBegin
const ARRepeatBegin * getARRepeatBegin() const
GRTagARNotationElement
GRTagARNotationElement.
Definition: GRTagARNotationElement.h:26
GuidoElementSelector
GuidoElementSelector
Definition: GUIDOScoreMap.h:40
GRRepeatBegin::DrawDots
void DrawDots(VGDevice &hdc) const
GRRepeatBegin::setPosTo
void setPosTo(float posy)
GRBar::TRanges
std::vector< std::pair< float, float > > TRanges
Definition: GRBar.h:32
GRRepeatBegin::fBaseThickness
float fBaseThickness
Definition: GRRepeatBegin.h:55
GRRepeatBegin::updateBoundingBox
virtual void updateBoundingBox()
GRRepeatBegin::refpos
static NVPoint refpos
Definition: GRRepeatBegin.h:54

Guido Project Copyright © 2019 Grame-CNCM