Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

QtViewImp.sip

Go to the documentation of this file.
00001 /* -*- mode:c++ -*- */
00002 
00018 class QtViewImp : ViewBase
00019 {
00020 %TypeHeaderCode
00021 #include "qt/QtViewImp.h"
00022 %End
00023 
00024 private:
00025 
00027   virtual int toCanvasX ( double ) const = 0; // need at least one
00028 
00030   virtual int toCanvasY ( double ) const = 0; 
00031 
00033   virtual int toViewX ( double ) const = 0;
00034 
00036   virtual int toViewY ( double ) const = 0;
00037 
00038 public:
00039 
00043   QtViewImp ( PlotterBase * );
00044 
00046   QtViewImp ( const QtViewImp & );
00047 
00048 
00053   void setInspector ( QObject * );
00054 
00055 //   /** Returns the Rectangle within which points representations are
00056 //       draw. The coordinate is shifted by position of view on
00057 //       canvas. */
00058 //   virtual HippoRectangle getMarginRect() const;
00059 
00061   virtual void endPlot ();
00062 
00067   virtual void fillPickedPoint ( double , double , 
00068                                  std::vector < double > & ) const = 0;
00069 
00072 //   inline int toView ( double  ) const;
00073   int toView ( double  ) const;
00074 
00075 //   virtual void drawLines ( const std::vector< double > & ,
00076 //                         const std::vector< double > & ,
00077 //                         hippodraw::Line::Style ,
00078 //                         const Color & ,
00079 //                         float  );
00080 
00081 //   virtual void drawColorLines ( const std::vector< double > & ,
00082 //                              const std::vector< double > & ,
00083 //                              hippodraw::Line::Style ,
00084 //                              const std::vector < Color > & ,
00085 //                              float  );
00086 
00087 //   virtual void drawViewLines ( const std::vector< double > & ,
00088 //                             const std::vector< double > & ,
00089 //                             hippodraw::Line::Style ,
00090 //                             bool ,
00091 //                             float  );
00092 
00093 //   virtual void drawViewLines ( const std::vector< double > & ,
00094 //                             const std::vector< double > & ,
00095 //                             hippodraw::Line::Style ,
00096 //                             const Color & ,
00097 //                             float  );
00098 
00099 //   virtual void drawPolyLine ( const std::vector< double > & ,
00100 //                            const std::vector< double > & , 
00101 //                            hippodraw::Line::Style ,
00102 //                            const Color & ,
00103 //                            float  );
00105   void setCrossX ( double  );
00106 
00108   void setCrossY ( double  );
00109 
00110   
00111   virtual void drawText ( const std::string &, float , float ,
00112                           float , float , char , char ,
00113                           bool );
00114 
00115 //   virtual void drawText ( const std::string &, float , float ,
00116 //                        float , float , char , char ,
00117 //                        bool , const FontBase *  );
00118 
00119   virtual void drawUserText ( const std::string &, float , float ,
00120                               float , float , char , char );
00121 
00122   virtual void drawMag ( float , float , int , float );
00123   virtual void drawMag ( float , float , int , float , QFont & );
00124 
00125 //   virtual void drawPoints ( const std::vector<double> & ,
00126 //                          const std::vector<double> & ,
00127 //                          hippodraw::Symbol::Type , 
00128 //                          float  );
00129 
00130 //   virtual void drawPoints ( const std::vector< double > & ,
00131 //                          const std::vector< double > & , 
00132 //                          const std::vector< Color > & ,
00133 //                          hippodraw::Symbol::Type , 
00134 //                          float  );
00135 
00136   virtual void drawSquare ( double , double , double , double ,
00137                             int , int , int );
00138 
00139   virtual void drawViewSquare ( float , float , float , float ,
00140                                 int , int , int  );
00141 
00142   float userToDrawX ( double ) const;
00143   float userToDrawY ( double ) const;
00144   float userToDrawColor ( double ) const;
00145   
00146   virtual void setDefaultFont( const QFont&  );
00147   
00148   virtual const QFont & defaultFont();
00149 
00150 };

Generated on Wed Sep 7 14:51:29 2005 for SiHippo by  doxygen 1.4.3