bool operator<(GammaInterval const & O) const { if ( getDiam() != O.getDiam() ) return getDiam() > O.getDiam(); else if ( first != O.first ) return first < O.first; else return second < O.second; }
//all ui in here void uiInit(){ vertex c = getCenter(); float diam = getDiam(); zNear = -5; zFar = 100; left = c.x - diam; right = c.x + diam; bottom = c.y - diam; top = c.y + diam; //main menu button Master_ui->add_button("Menu", left+(right-left)/15, bottom+0.5, 0.5, 0.3, push_menu); Master_ui->add_button("-", left+(right-left)/15, bottom+0.8, 0.4, 0.3, down); Master_ui->add_button("+", left+(right-left)/15, bottom+1.1, 0.4, 0.3, up); //Master_ui->add_button("reset", right-(right-left)/5, bottom+0.5, 0.5, 0.3, reload); //if remove, fix ui.cpp (count) //Master_ui->add_button("select", right-(right-left)/5, bottom+0.8, 0.5, 0.3, selectionMode); Master_ui->add_button("rotate", right-(right-left)/5, bottom+0.8, 0.5, 0.3, activate_rotate); Master_ui->add_button("undo", right-(right-left)/5, bottom+1.1, 0.5, 0.3, undo_vmmodel); }