Public Member Functions

vtkQtChartZoomViewport Class Reference

The vtkQtChartZoomViewport class stores the position and zoom factors for a viewport. More...

#include <vtkQtChartZoomHistory.h>

List of all members.

Public Member Functions

 vtkQtChartZoomViewport ()
 ~vtkQtChartZoomViewport ()
void setPosition (float x, float y)
 Sets the viewport position coordinates.
void setZoom (float x, float y)
 Sets the zoom percentages.
float getXPosition () const
 Gets the x coordinate of the viewport.
float getYPosition () const
 Gets the y coordinate of the viewport.
float getXZoom () const
 Gets the x-axis zoom factor.
float getYZoom () const
 Gets the y-axis zoom factor.

Detailed Description

The vtkQtChartZoomViewport class stores the position and zoom factors for a viewport.

The position stores the top-left corner of the viewport in content coordinates. The zoom factors are stored as percentages.

Definition at line 40 of file vtkQtChartZoomHistory.h.


Constructor & Destructor Documentation

vtkQtChartZoomViewport::vtkQtChartZoomViewport (  )
vtkQtChartZoomViewport::~vtkQtChartZoomViewport (  ) [inline]

Definition at line 44 of file vtkQtChartZoomHistory.h.

{}

Member Function Documentation

float vtkQtChartZoomViewport::getXPosition (  ) const [inline]

Gets the x coordinate of the viewport.

Returns:
The x coordinate of the viewport.
See also:
vtkQtChartZoomViewport::setPosition(float, float)

Definition at line 67 of file vtkQtChartZoomHistory.h.

{return this->X;}
float vtkQtChartZoomViewport::getXZoom (  ) const [inline]

Gets the x-axis zoom factor.

Returns:
The x-axis zoom factor.
See also:
vtkQtChartZoomViewport::setZoom(float, float)

Definition at line 81 of file vtkQtChartZoomHistory.h.

{return this->XFactor;}
float vtkQtChartZoomViewport::getYPosition (  ) const [inline]

Gets the y coordinate of the viewport.

Returns:
The y coordinate of the viewport.
See also:
vtkQtChartZoomViewport::setPosition(float, float)

Definition at line 74 of file vtkQtChartZoomHistory.h.

{return this->Y;}
float vtkQtChartZoomViewport::getYZoom (  ) const [inline]

Gets the y-axis zoom factor.

Returns:
The y-axis zoom factor.
See also:
vtkQtChartZoomViewport::setZoom(float, float)

Definition at line 88 of file vtkQtChartZoomHistory.h.

{return this->YFactor;}
void vtkQtChartZoomViewport::setPosition ( float  x,
float  y 
)

Sets the viewport position coordinates.

Parameters:
xThe x coordinate.
yThe y coordinate.
See also:
vtkQtChartZoomViewport::getXPosition(), vtkQtChartZoomViewport::getYPosition()
void vtkQtChartZoomViewport::setZoom ( float  x,
float  y 
)

Sets the zoom percentages.

Parameters:
xThe x-axis zoom factor.
yThe y-axis zoom factor.
See also:
vtkQtChartZoomViewport::getXZoom(), vtkQtChartZoomViewport::getYZoom()

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines