input_view.cpp 636 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include "qt/input_view.hpp"
  2. QtInputView::QtInputView():QtView(){
  3. }
  4. void
  5. QtInputView::initPoints(){
  6. for(size_t i=0;i<np;++i){
  7. double x=double(i)/(np-1);
  8. point[i].x=x;
  9. point[i].y=0.3;
  10. point[np+i].x=x;
  11. point[np+i].y=0.5;
  12. point[2*np+i].x=x;
  13. point[2*np+i].y=0.7;
  14. }
  15. }
  16. void
  17. QtInputView::drawSplinePoints(Spline& spline){
  18. }
  19. void
  20. QtInputView::paintGL(){
  21. QtView::paintGL();
  22. }
  23. void
  24. QtInputView::mousePressEvent(QMouseEvent* event){
  25. /*double x=double(event->x())/width()*kernel->geometry.lX;
  26. double y=1-(double(event->y())/height());
  27. displayInfos(x,y);*/
  28. }
  29. void
  30. QtInputView::updateGeometry(){
  31. }