PSQt/src/GUView.cpp

Go to the documentation of this file.
00001 //---------------------------------------------------------------------
00002 // File and Version Information:
00003 //   $Id: GUView.cpp 9841 2015-03-26 18:35:44Z dubrovin@SLAC.STANFORD.EDU $
00004 //
00005 // Author: Mikhail S. Dubrovin
00006 //---------------------------------------------------------------------
00007 
00008 //--------------------------
00009 #include "PSQt/GUView.h"
00010 //#include "PSQt/QGUtils.h"
00011 
00012 #include <iostream>    // for std::cout
00013 //#include <fstream>     // for std::ifstream(fname)
00014 //#include <math.h>  // atan2
00015 //#include <cstring> // for memcpy
00016 
00017 //using namespace std; // for cout without std::
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 } // namespace PSQt
00049 //--------------------------

Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7