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

KDChartZoomParameters.h

Go to the documentation of this file.
00001 #ifndef ZOOMPARAMETERS_H
00002 #define ZOOMPARAMETERS_H
00003 
00004 namespace KDChart {
00005     class ZoomParameters {
00006     public:
00007         ZoomParameters()
00008         : xFactor( 1.0 ),
00009           yFactor( 1.0 ),
00010           xCenter( 0.5 ),
00011           yCenter( 0.5)
00012         {
00013         }
00014 
00015         void setCenter( QPointF center )
00016         {
00017             xCenter = center.x();
00018             yCenter = center.y();
00019         }
00020         const QPointF center() const
00021         {
00022             return QPointF( xCenter, yCenter );
00023         }
00024 
00025         double xFactor;
00026         double yFactor;
00027 
00028         double xCenter;
00029         double yCenter;
00030     };
00031 }
00032 
00033 #endif

Generated on Thu May 10 11:06:26 2007 for KD Chart 2 by doxygen 1.3.6