Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
drawablefunctionmarkcontext.h
Go to the documentation of this file.
1 
8 #ifndef DRAWABLEFUNCTIONMARKCONTEXT_H_
9 #define DRAWABLEFUNCTIONMARKCONTEXT_H_
10 
12 
14 
16  public:
19 
20  void draw(QPainter *p, const CADrawSettings s);
22 
23  void setNumberOfLines(int number) { _numberOfLines = number; }
24  int numberOfLines() { return _numberOfLines; }
25 
27  Upper, // used for function name in tonicization
28  Middle, // used for general function names
29  Lower // used for chord areas, ellipse sign etc.
30  };
31 
32  double yPosLine(CAFunctionMarkLine part); // Returns the Y coordinate of the top of the given line
34  int currentLineIdx() { return _currentLineIdx; }
35 
36  private:
37  int _numberOfLines; // Number of lines the context can consist. Usually, this number is 2. But when doing research on scores, this could be expanded
39 };
40 
41 #endif /* DRAWABLEFUNCTIONMARKCONTEXT_H_ */
int _currentLineIdx
Definition: drawablefunctionmarkcontext.h:38
Definition: drawablecontext.h:18
int numberOfLines()
Definition: drawablefunctionmarkcontext.h:24
Definition: drawablefunctionmarkcontext.h:27
Definition: drawablefunctionmarkcontext.h:15
Definition: drawable.h:16
CADrawableFunctionMarkContext * clone()
Definition: drawablefunctionmarkcontext.cpp:31
Context for function marks.
Definition: functionmarkcontext.h:19
void setNumberOfLines(int number)
Definition: drawablefunctionmarkcontext.h:23
Definition: drawablefunctionmarkcontext.h:28
~CADrawableFunctionMarkContext()
Definition: drawablefunctionmarkcontext.cpp:24
CAFunctionMarkLine
Definition: drawablefunctionmarkcontext.h:26
void nextLine()
Definition: drawablefunctionmarkcontext.h:33
Definition: drawablefunctionmarkcontext.h:29
int currentLineIdx()
Definition: drawablefunctionmarkcontext.h:34
CADrawableFunctionMarkContext(CAFunctionMarkContext *c, double x, double y, int numberOfLines=2)
Definition: drawablefunctionmarkcontext.cpp:14
double yPosLine(CAFunctionMarkLine part)
Definition: drawablefunctionmarkcontext.cpp:35
int _numberOfLines
Definition: drawablefunctionmarkcontext.h:37
void draw(QPainter *p, const CADrawSettings s)
Definition: drawablefunctionmarkcontext.cpp:27