00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "PSQt/GUView.h"
00010
00011
00012 #include <iostream>
00013
00014
00015
00016
00017
00018
00019 namespace PSQt {
00020
00021
00022
00023 QGraphicsView*
00024 GUView::make_view( const float& xmin
00025 , const float& xmax
00026 , const float& ymin
00027 , const float& ymax
00028 , const unsigned pribits
00029 )
00030 {
00031 if(pribits & 1) std::cout << " GUView::make_view:"
00032 << " xmin=" << xmin
00033 << " xmax=" << xmax
00034 << " ymin=" << ymin
00035 << " ymax=" << ymax
00036 << " pribits=" << pribits
00037 << '\n';
00038
00039 QGraphicsScene* scene = new QGraphicsScene;
00040 scene->setSceneRect (xmin, ymin, xmax-xmin, ymax-ymin);
00041 return new QGraphicsView(scene);
00042 }
00043
00044
00045
00046
00047
00048 }
00049