VTK
Public Member Functions | List of all members
vtkQtChartZoomViewport Class Reference

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

#include <vtkQtChartZoomHistory.h>

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

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()
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.

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.

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.

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.


The documentation for this class was generated from the following file: