GUIDOLib  1.7.7
Guido Engine Internal Documentation
GRStdNoteHead.h
1 #ifndef GRStdNoteHead_H
2 #define GRStdNoteHead_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
7  Copyright (C) 2003 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 "GRNoteHead.h"
19 #include "ARTHead.h"
20 
21 class GREvent;
22 
25 class GRStdNoteHead : public GRNoteHead
26 {
27 public:
28  GRStdNoteHead(GREvent * sngnote, const TYPE_DURATION & inDur, GDirection inStemDirection = dirAUTO);
29  virtual ~GRStdNoteHead();
30 
31  virtual void configureNoteHead(const TYPE_DURATION &inDur);
32 
33  virtual NVPoint getNoteHeadPosition() const;
34  virtual const NVPoint & getPosition() const;
35 
36  // static long getNoteBreite();
37 
38  virtual const NVPoint & getReferencePosition() const;
39  virtual void OnDraw( VGDevice & hdc ) const;
40 
41  virtual unsigned int getSymbol() const;
42 
43  virtual void adjustPositionForChords(ARTHead::HEADSTATE inHeadstate, GDirection inGlobalStemDirection);
45  virtual void setGlobalStemDirection(GDirection inGlobalStemDirection);
46  void setHaveToBeDrawn(bool inHaveToBeDrawn);
47 
48  /* enum HEADTYPES { NOHEAD = kNoneSymbol,
49  WHOLENOTEHEAD = kWholeNoteHeadSymbol, // SCR_WHOLENOTEHEAD,
50  HALFNOTEHEAD = kHalfNoteHeadSymbol, // SCR_HALFNOTEHEAD,
51  FULLHEAD = kFullHeadSymbol, // SCR_FULLHEAD,
52  ERRORHEAD = kErrorHeadSymbol // SCR_ERRORHEAD
53  };
54  */
55 
56 protected:
57 
58  enum BracketsType {
63  };
64 
65  virtual unsigned int durationToHeadSymbol( const TYPE_DURATION & inDur ) const;
66 
68 
70 
71  GDirection singleStemDirection;
72  GDirection globalStemDirection;
73 
74  float halfExtent;
75 
77 
79 
81 };
82 
83 #endif
84 
85 
GRStdNoteHead::globalStemDirection
GDirection globalStemDirection
Definition: GRStdNoteHead.h:72
GRStdNoteHead::Angled
Definition: GRStdNoteHead.h:62
GRStdNoteHead::setHaveToBeDrawn
void setHaveToBeDrawn(bool inHaveToBeDrawn)
GRStdNoteHead::adjustPositionForChords
virtual void adjustPositionForChords(ARTHead::HEADSTATE inHeadstate, GDirection inGlobalStemDirection)
GRStdNoteHead::durationToHeadSymbol
virtual unsigned int durationToHeadSymbol(const TYPE_DURATION &inDur) const
Fraction
Numerator and denominator.
Definition: Fraction.h:23
GRStdNoteHead::mBracketsType
BracketsType mBracketsType
Definition: GRStdNoteHead.h:76
GRStdNoteHead::halfExtent
float halfExtent
Definition: GRStdNoteHead.h:74
GREvent
Graphical representation for an event (= has duration).
Definition: GREvent.h:61
GRStdNoteHead::singleStemDirection
GDirection singleStemDirection
Definition: GRStdNoteHead.h:71
GRNoteHead
not yet documented
Definition: GRNoteHead.h:22
GRStdNoteHead::~GRStdNoteHead
virtual ~GRStdNoteHead()
NVPoint
Definition: NVPoint.h:20
GRStdNoteHead::Round
Definition: GRStdNoteHead.h:60
GRStdNoteHead::Square
Definition: GRStdNoteHead.h:61
GRStdNoteHead::configureNoteHead
virtual void configureNoteHead(const TYPE_DURATION &inDur)
GRStdNoteHead
Graphical representation of a note head.
Definition: GRStdNoteHead.h:25
GRStdNoteHead::getNoteHeadPosition
virtual NVPoint getNoteHeadPosition() const
GRStdNoteHead::getPosition
virtual const NVPoint & getPosition() const
VGDevice
Generic platform independant drawing device.
Definition: VGDevice.h:68
GRStdNoteHead::adjustHorizontalPosition
void adjustHorizontalPosition()
GRStdNoteHead::BracketsType
BracketsType
Definition: GRStdNoteHead.h:58
NVstring
Definition: nvstring.h:21
ARTHead::HEADSTATE
HEADSTATE
Definition: ARTHead.h:80
GRStdNoteHead::sRefPosNotehead
NVPoint sRefPosNotehead
Definition: GRStdNoteHead.h:67
GRStdNoteHead::mStyle
NVstring mStyle
Definition: GRStdNoteHead.h:69
GRStdNoteHead::GRStdNoteHead
GRStdNoteHead(GREvent *sngnote, const TYPE_DURATION &inDur, GDirection inStemDirection=dirAUTO)
GRStdNoteHead::None
Definition: GRStdNoteHead.h:59
GRStdNoteHead::OnDraw
virtual void OnDraw(VGDevice &hdc) const
GRStdNoteHead::setGlobalStemDirection
virtual void setGlobalStemDirection(GDirection inGlobalStemDirection)
GRStdNoteHead::getReferencePosition
virtual const NVPoint & getReferencePosition() const
Retrieves the Symbol-reference-position with respect to the GUIDO-reference-position.
GRStdNoteHead::mNoteHeadHaveToBeDrawn
bool mNoteHeadHaveToBeDrawn
Definition: GRStdNoteHead.h:78
GRStdNoteHead::getSymbol
virtual unsigned int getSymbol() const
GRStdNoteHead::sngnot
GREvent * sngnot
Definition: GRStdNoteHead.h:80

Guido Project Copyright © 2019 Grame-CNCM