GUIDOLib
1.7.7
Guido Engine Internal Documentation
|
1 #ifndef GRNotationElement_H 2 #define GRNotationElement_H 23 #include "GRVisitable.h" 24 #include "GRVisitor.h" 44 #define DEFAULTNUMERICSPACE 6 46 #define DEFAULTNUMERICSPACE 0 50 const float kMinNoteSize = 0.001f;
102 float inOffsetY = 0,
float inFontSize = 0)
const;
105 void DrawSymbol(
VGDevice & hdc,
unsigned int inSymbol,
float x = 0,
float y = 0,
float size = 0)
const;
106 void DrawNumericSymbols(
VGDevice & hdc,
const char* symbols,
float x,
float y,
float size,
float spacing=DEFAULTNUMERICSPACE)
const;
133 virtual void print(std::ostream& os)
const;
141 virtual bool isEmpty()
const {
return false; }
int mSpringID
Definition: GRNotationElement.h:169
Measure bar.
Definition: GRBar.h:29
virtual const ARMusicalObject * getAbstractRepresentation() const
Definition: GRNotationElement.h:115
virtual void setPosition(const NVPoint &newPosition)
virtual GRFingering * isGRFingering()
Definition: GRNotationElement.h:158
Definition: GRVisitor.h:39
virtual bool isChordComma() const
Definition: GRNotationElement.h:143
Graphical representation of a note event.
Definition: GRSingleNote.h:38
void DrawExtents(VGDevice &hdc, const VGColor &inColor) const
an abstract class to be provided by clients to collect mappings
Definition: GUIDOScoreMap.h:109
const NEPointerList * associated() const
Definition: GRNotationElement.h:134
virtual const TYPE_TIMEPOSITION & getRelativeTimePosition() const
Definition: GRNotationElement.h:121
bool GetShow() const
Definition: GRNotationElement.h:108
float mLeftSpace
Definition: GRNotationElement.h:170
The base class for all graphic objects.
Definition: GObject.h:54
virtual void SendMap(const NVRect &r, MapCollector &f, TYPE_TIMEPOSITION date, TYPE_DURATION dur, GuidoElementType type, MapInfos &infos) const
virtual void setNeedsSpring(int inFlag)
Definition: GRNotationElement.h:79
bool mIsInHeader
Definition: GRNotationElement.h:174
Numerator and denominator.
Definition: Fraction.h:23
virtual const GREvent * isGREvent() const
Definition: GRNotationElement.h:151
Definition: GRVisitable.h:19
A chord symbol string.
Definition: GRHarmony.h:32
GRStaff * getGRStaff() const
Definition: GRNotationElement.h:62
parent class for all notation elements.
Definition: GRNotationElement.h:54
virtual ~GRNotationElement()
void DrawNumericSymbols(VGDevice &hdc, const char *symbols, float x, float y, float size, float spacing=DEFAULTNUMERICSPACE) const
Graphical representation for an event (= has duration).
Definition: GREvent.h:61
virtual void recalcVerticalPosition()
Graphical representation of a note.
Definition: GRNote.h:31
virtual void tellPosition(GObject *caller, const NVPoint &point)
virtual void setGRStaff(GRStaff *in)
Definition: GRNotationElement.h:63
virtual void removeAssociation(const NEPointerList &nl)
float mRightSpace
Definition: GRNotationElement.h:171
void addToBoundingBox(GRNotationElement *in)
virtual void addAssociation(GRNotationElement *grnot)
virtual void print(std::ostream &os) const
virtual void accept(GRVisitor &visitor)
virtual const GRNote * isGRNote() const
Definition: GRNotationElement.h:149
virtual GRSingleNote * isSingleNote()
Definition: GRNotationElement.h:148
virtual bool isEmpty() const
Definition: GRNotationElement.h:141
int mNeedsSpring
Definition: GRNotationElement.h:168
void Show(bool status)
Definition: GRNotationElement.h:107
virtual const GRRest * isRest() const
Definition: GRNotationElement.h:150
A class to propagate device related information.
Definition: GObject.h:42
A text string.
Definition: GRText.h:34
virtual void setRightSpace(float rspace)
Definition: GRNotationElement.h:74
virtual TYPE_TIMEPOSITION getRelativeEndTimePosition() const
virtual const GRTrill * isGRTrill() const
Definition: GRNotationElement.h:155
A GRStaff represents a single line of music.
Definition: GRStaff.h:181
virtual bool getDrawOnOff()
Definition: GRNotationElement.h:124
void FreeAssociatedList()
Graphical representation of a slur.
Definition: GRSlur.h:24
virtual NVPoint getTieStart() const
Definition: GRNotationElement.h:92
virtual void setRelativeEndTimePosition(const TYPE_TIMEPOSITION &tp)
Definition: GRNotationElement.h:120
virtual const GRHarmony * isGRHarmony() const
Definition: GRNotationElement.h:160
unsigned int mSymbol
Definition: GRNotationElement.h:166
virtual NVPoint getTieEnd() const
Definition: GRNotationElement.h:91
A fingering string.
Definition: GRFingering.h:24
virtual const GRTempo * isGRTempo() const
Definition: GRNotationElement.h:154
virtual const GRText * isText() const
Definition: GRNotationElement.h:146
Generic platform independant drawing device.
Definition: VGDevice.h:68
Generic class to manipulate device independant colors.
Definition: VGColor.h:34
virtual int getSpringID() const
Definition: GRNotationElement.h:81
Graphical representation of the tempo.
Definition: GRTempo.h:28
The Rest event.
Definition: GRRest.h:27
virtual const TYPE_DURATION & getDuration() const
Definition: GRNotationElement.h:116
virtual GREvent * isGREvent()
Definition: GRNotationElement.h:152
static int ComparePos(const GRNotationElement *g1, const GRNotationElement *g2)
virtual NVRect getAssociatedBoundingBox() const
void DrawSymbol(VGDevice &hdc, unsigned int inSymbol, float x=0, float y=0, float size=0) const
virtual const GRDynamics * isGRDynamic() const
Definition: GRNotationElement.h:157
Accidentals: sharp, flat, natural, double sharp, double flat.
Definition: GRAccidental.h:27
virtual int getNeedsSpring() const
Definition: GRNotationElement.h:80
virtual float getRightSpace() const
Definition: GRNotationElement.h:71
virtual bool isInHeader() const
Definition: GRNotationElement.h:140
TYPE_DURATION mDurationOfGR
Definition: GRNotationElement.h:176
virtual void setIsInHeader(bool state)
Definition: GRNotationElement.h:139
GRStaff * mGrStaff
Definition: GRNotationElement.h:167
virtual unsigned int getTextAlign() const
virtual GRSlur * isGRSlur()
Definition: GRNotationElement.h:159
NVPoint mPosition
Definition: GObject.h:102
GRSystemSlice * getGRSystemSlice() const
not yet documented
Definition: GRGlue.h:25
void OnDrawText(VGDevice &hdc, NVPoint pos, const char *cp, int inCharCount=-1) const
virtual bool isLyrics() const
Definition: GRNotationElement.h:142
Form the basis for the optimum system-break-algorithm.
Definition: GRSystemSlice.h:55
virtual const GRSingleNote * isSingleNote() const
Definition: GRNotationElement.h:147
virtual void setLeftSpace(float lspace)
Definition: GRNotationElement.h:73
virtual void OnDraw(VGDevice &hdc) const
virtual void setDrawOnOff(bool onoff)
Definition: GRNotationElement.h:123
Definition: GRDynamics.h:28
virtual void setDuration(const TYPE_TIMEPOSITION &dur)
Definition: GRNotationElement.h:118
bool mShow
Definition: GRNotationElement.h:173
bool mDraw
Definition: GRNotationElement.h:172
NEPointerList * mAssociated
Definition: GRNotationElement.h:177
The base class for all AR objects. It contains all musical information : duration and time position.
Definition: ARMusicalObject.h:33
virtual const GRBar * isGRBar() const
Definition: GRNotationElement.h:156
std::ostream & operator<<(std::ostream &os, const svgendl &eol)
virtual const GRGlue * isGRGlue() const
Definition: GRNotationElement.h:153
NEPointerList * getAssociations()
Definition: GRNotationElement.h:84
virtual float getLeftSpace() const
Definition: GRNotationElement.h:70
GuidoElementType
Definition: GUIDOScoreMap.h:46
virtual void setHPosition(float nx)
virtual void tellSpringID(int inSpringID)
Definition: GRNotationElement.h:82
Definition: NEPointerList.h:34
virtual int getStaffNumber() const
virtual bool checkCollisionWith() const
Definition: GRNotationElement.h:144
GRTrill tag.
Definition: GRTrill.h:32
virtual void setRelativeTimePosition(const TYPE_TIMEPOSITION &tp)
Definition: GRNotationElement.h:119
void OnDrawSymbol(VGDevice &hdc, unsigned int inSymbol, float inOffsetX=0, float inOffsetY=0, float inFontSize=0) const
const NEPointerList * getAssociations() const
Definition: GRNotationElement.h:85