Beispiel #1
0
bool SlurTie::setProperty(P_ID propertyId, const QVariant& v)
      {
      switch(propertyId) {
            case P_LINE_TYPE:      setLineType(v.toInt()); break;
            case P_SLUR_DIRECTION: setSlurDirection(MScore::Direction(v.toInt())); break;
            default:
                  return Spanner::setProperty(propertyId, v);
            }
      return true;
      }
Beispiel #2
0
  DrawWindow(int w, int h, std::string name) { // constructor
    width=w;
    height=h;
    window_name = name;
    cv::namedWindow(window_name, CV_WINDOW_AUTOSIZE );
    winx=0;
    winy=0;

    grid = cv::Mat( height, width, CV_8UC3 ); // 3 channel color
    setLineType("solid");
    setLineThickness(2);
    setPenColor(0,0,0);
    clearWindow(255,255,255);
  }