2024年4月1日发(作者:)
35 glVertex2f(l+dx*i,b);
36 glVertex2f(l+dx*i,t);
37 }
38 glEnd();
39 glPopMatrix();
40
41 glMatrixMode(GL_PROJECTION);
42 glPopMatrix();
43 }
最后,事件更新
1 void MYGraphicsView::wheelEvent( QWheelEvent * event )
2 {
3 double factor=event->delta()>0?1.1:1/1.1;
4 .x*=factor;
5 .y=.x;
6 this->viewport()->update();
7
8 ast(M*N);
9 MPI_Barrier(MPI_COMM_WORLD);
10 }


发布评论