GUIDOLib  1.7.7
Guido Engine Internal Documentation
GRARNotationElement.h
1 #ifndef GRARNotationElement_H
2 #define GRARNotationElement_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 "GRNotationElement.h"
19 
20 class ARMusicalObject;
21 
26 {
27  public:
28  GRARNotationElement(const ARMusicalObject * abstractRepresentationOfNotationElement, bool p_ownsAR = false );
29  virtual ~GRARNotationElement();
30 
32  virtual const ARMusicalObject * getAbstractRepresentation() const;
33 
34  // sets the ownership between abstract and grafical object
35  virtual void setOwnership(bool ownsAR) { mOwnsAR = ownsAR; }
36  virtual bool isChordComma() const;
37 
38  protected:
40  bool mOwnsAR; // is 1 if abstract object is owned by the grafical object
41  // In that case the abstract object will be deleted when deleting the grafical object
42 };
43 
44 #endif
45 
46 
GRNotationElement
parent class for all notation elements.
Definition: GRNotationElement.h:54
GRARNotationElement::GRARNotationElement
GRARNotationElement(const ARMusicalObject *abstractRepresentationOfNotationElement, bool p_ownsAR=false)
GRARNotationElement::isChordComma
virtual bool isChordComma() const
GRARNotationElement::~GRARNotationElement
virtual ~GRARNotationElement()
GRARNotationElement::mOwnsAR
bool mOwnsAR
Definition: GRARNotationElement.h:40
GRARNotationElement::mAbstractRepresentation
const ARMusicalObject * mAbstractRepresentation
Definition: GRARNotationElement.h:39
GRARNotationElement::getAbstractRepresentation
virtual const ARMusicalObject * getAbstractRepresentation()
ARMusicalObject
The base class for all AR objects. It contains all musical information : duration and time position.
Definition: ARMusicalObject.h:33
GRARNotationElement
This class is the base class for all graphical elements that have a direct counterpart in the Abstrac...
Definition: GRARNotationElement.h:25
GRARNotationElement::setOwnership
virtual void setOwnership(bool ownsAR)
Definition: GRARNotationElement.h:35

Guido Project Copyright © 2019 Grame-CNCM