KDChart::ZoomParameters Class Reference

#include <KDChartZoomParameters.h>

Collaboration diagram for KDChart::ZoomParameters:

Collaboration graph
[legend]

List of all members.


Detailed Description

ZoomParameters stores the center and the factor of zooming internally.

Definition at line 49 of file KDChartZoomParameters.h.


Public Member Functions

const QPointF center () const
void setCenter (const QPointF &center)
 ZoomParameters (double xFactor, double yFactor, const QPointF &center)
 ZoomParameters ()

Public Attributes

double xCenter
double xFactor
double yCenter
double yFactor

Constructor & Destructor Documentation

KDChart::ZoomParameters::ZoomParameters (  ) 

Definition at line 51 of file KDChartZoomParameters.h.

00052         : xFactor( 1.0 ),
00053           yFactor( 1.0 ),
00054           xCenter( 0.5 ),
00055           yCenter( 0.5)
00056         {
00057         }

KDChart::ZoomParameters::ZoomParameters ( double  xFactor,
double  yFactor,
const QPointF &  center 
)

Definition at line 59 of file KDChartZoomParameters.h.

00060         : xFactor( xFactor ),
00061           yFactor( yFactor ),
00062           xCenter( center.x() ),
00063           yCenter( center.y() )
00064         {
00065         }


Member Function Documentation

const QPointF KDChart::ZoomParameters::center (  )  const

Definition at line 72 of file KDChartZoomParameters.h.

References xCenter, and yCenter.

Referenced by KDChart::AbstractCoordinatePlane::mousePressEvent().

00073         {
00074             return QPointF( xCenter, yCenter );
00075         }

void KDChart::ZoomParameters::setCenter ( const QPointF &  center  ) 

Definition at line 67 of file KDChartZoomParameters.h.

References xCenter, and yCenter.

00068         {
00069             xCenter = center.x();
00070             yCenter = center.y();
00071         }


Member Data Documentation

double KDChart::ZoomParameters::xCenter

Definition at line 80 of file KDChartZoomParameters.h.

Referenced by center(), and setCenter().

double KDChart::ZoomParameters::xFactor

Definition at line 77 of file KDChartZoomParameters.h.

Referenced by KDChart::AbstractCoordinatePlane::mousePressEvent().

double KDChart::ZoomParameters::yCenter

Definition at line 81 of file KDChartZoomParameters.h.

Referenced by center(), and setCenter().

double KDChart::ZoomParameters::yFactor

Definition at line 78 of file KDChartZoomParameters.h.

Referenced by KDChart::AbstractCoordinatePlane::mousePressEvent().


The documentation for this class was generated from the following file:
Generated on Thu Mar 4 23:26:56 2010 for KD Chart 2 by  doxygen 1.5.4