GUIDOLib  1.7.7
Guido Engine Internal Documentation
GRNoteHead.h
1 #ifndef GRNoteHead_H
2 #define GRNoteHead_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
7  Copyright (C) 2003, 2004 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 "GRNotationElement.h"
19 
23 {
24 public:
25  GRNoteHead();
26  virtual ~GRNoteHead();
27 
28  virtual const NVPoint& getOffset() const { return mOffset; }
29  virtual void setOffset(const NVPoint &noff) { mOffset = noff; }
30  virtual void addToOffset(const NVPoint &pt) { mOffset += pt; }
31  virtual float getSize() const { return mSize; }
32  virtual const unsigned char *getColRef() const { return mColRef; }
33 
34 protected:
36 
37  float mSize;
38  unsigned char * mColRef;
39 };
40 
41 #endif
GRNoteHead::addToOffset
virtual void addToOffset(const NVPoint &pt)
Definition: GRNoteHead.h:30
GRNotationElement
parent class for all notation elements.
Definition: GRNotationElement.h:54
GRNoteHead::setOffset
virtual void setOffset(const NVPoint &noff)
Definition: GRNoteHead.h:29
GRNoteHead::mSize
float mSize
Definition: GRNoteHead.h:37
GRNoteHead::~GRNoteHead
virtual ~GRNoteHead()
GRNoteHead
not yet documented
Definition: GRNoteHead.h:22
NVPoint
Definition: NVPoint.h:20
GRNoteHead::getColRef
virtual const unsigned char * getColRef() const
Definition: GRNoteHead.h:32
GRNoteHead::getOffset
virtual const NVPoint & getOffset() const
Definition: GRNoteHead.h:28
GRNoteHead::mOffset
NVPoint mOffset
Definition: GRNoteHead.h:35
GRNoteHead::GRNoteHead
GRNoteHead()
GRNoteHead::mColRef
unsigned char * mColRef
Definition: GRNoteHead.h:38
GRNoteHead::getSize
virtual float getSize() const
Definition: GRNoteHead.h:31

Guido Project Copyright © 2019 Grame-CNCM