The vtkQtChartContentsSpace class defines the contents space for a chart.
More...
#include <vtkQtChartContentsSpace.h>
Detailed Description
The vtkQtChartContentsSpace class defines the contents space for a chart.
Definition at line 41 of file vtkQtChartContentsSpace.h.
Constructor & Destructor Documentation
| vtkQtChartContentsSpace::vtkQtChartContentsSpace |
( |
QObject * |
parent = 0 | ) |
|
Creates a chart contents space instance.
- Parameters
-
| virtual vtkQtChartContentsSpace::~vtkQtChartContentsSpace |
( |
| ) |
|
|
virtual |
Member Function Documentation
| float vtkQtChartContentsSpace::getXOffset |
( |
| ) |
const |
|
inline |
| float vtkQtChartContentsSpace::getYOffset |
( |
| ) |
const |
|
inline |
| float vtkQtChartContentsSpace::getMaximumXOffset |
( |
| ) |
const |
|
inline |
| float vtkQtChartContentsSpace::getMaximumYOffset |
( |
| ) |
const |
|
inline |
| float vtkQtChartContentsSpace::getContentsWidth |
( |
| ) |
const |
Gets the contents width.
- Returns
- The contents width.
| float vtkQtChartContentsSpace::getContentsHeight |
( |
| ) |
const |
Gets the contents height.
- Returns
- The contents height.
| void vtkQtChartContentsSpace::translateToLayerContents |
( |
QPointF & |
point | ) |
const |
Translates a point to layer contents coordinates.
The point is adjusted from widget origin to layer bounds origin. The point is also translated to account for panning offset.
- Parameters
-
| point | The point to translate. |
| void vtkQtChartContentsSpace::translateToLayerContents |
( |
QRectF & |
area | ) |
const |
Translates a point to layer contents coordinates.
The rectangle is adjusted from widget origin to layer bounds origin. The rectangle is also translated to account for panning offset.
- Parameters
-
| area | The rectangle to translate. |
| float vtkQtChartContentsSpace::getChartWidth |
( |
| ) |
const |
|
inline |
| float vtkQtChartContentsSpace::getChartHeight |
( |
| ) |
const |
|
inline |
| void vtkQtChartContentsSpace::setChartSize |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
Sets the size of the chart.
The chart size must be set in order to zoom in or out. The contents size methods are only valid when the chart size is set.
- Parameters
-
| width | The chart width. |
| height | The chart height. |
| void vtkQtChartContentsSpace::getChartLayerBounds |
( |
QRectF & |
bounds | ) |
const |
Gets the chart layer bounds.
- Parameters
-
| bounds | Used to return the chart layer bounds. |
| void vtkQtChartContentsSpace::setChartLayerBounds |
( |
const QRectF & |
bounds | ) |
|
Sets the chart layer bounds.
- Parameters
-
| bounds | The chart layer bounds. |
| float vtkQtChartContentsSpace::getXZoomFactor |
( |
| ) |
const |
|
inline |
| float vtkQtChartContentsSpace::getYZoomFactor |
( |
| ) |
const |
|
inline |
| void vtkQtChartContentsSpace::zoomToFactor |
( |
float |
factor | ) |
|
| void vtkQtChartContentsSpace::zoomToFactor |
( |
float |
xFactor, |
|
|
float |
yFactor |
|
) |
| |
Zooms the chart to the given factors.
The zoom factors of the chart are independent of each other. In other words, the x-axis can be zoomed to a different factor than the y-axis.
When the zoom factors are changed, the new zoom viewport will be added to the zoom history. The zoom history can be navigated using the historyNext and historyPrevious methods. The user can also navigate through the history using the keyboard shortcuts.
- Parameters
-
| xFactor | The x-axis zoom factor. |
| yFactor | The y-axis zoom factor. |
| void vtkQtChartContentsSpace::zoomToFactorX |
( |
float |
factor | ) |
|
| void vtkQtChartContentsSpace::zoomToFactorY |
( |
float |
factor | ) |
|
| void vtkQtChartContentsSpace::startInteraction |
( |
| ) |
|
Signals the start of a mouse move interaction.
While an interaction is in progress, the zoom history will not be updated. When finishInteraction is called, the history is updated if the zoom factors have changed.
- See Also
- vtkQtChartContentsSpace::finishInteraction()
| bool vtkQtChartContentsSpace::isInInteraction |
( |
| ) |
const |
| void vtkQtChartContentsSpace::finishInteraction |
( |
| ) |
|
| bool vtkQtChartContentsSpace::isHistoryPreviousAvailable |
( |
| ) |
const |
Gets whether or not a previous zoom viewport is available.
- Returns
- True if a previous zoom viewport is available.
| bool vtkQtChartContentsSpace::isHistoryNextAvailable |
( |
| ) |
const |
Gets whether or not a forward zoom viewport is available.
- Returns
- True if a forward zoom viewport is available.
| void vtkQtChartContentsSpace::setXOffset |
( |
float |
offset | ) |
|
|
slot |
Sets the x offset.
- Parameters
-
| void vtkQtChartContentsSpace::setYOffset |
( |
float |
offset | ) |
|
|
slot |
Sets the y offset.
- Parameters
-
| void vtkQtChartContentsSpace::setMaximumXOffset |
( |
float |
maximum | ) |
|
|
slot |
Sets the maximum x offset.
- Parameters
-
| maximum | The maximum x offset. |
| void vtkQtChartContentsSpace::setMaximumYOffset |
( |
float |
maximum | ) |
|
|
slot |
Sets the maximum y offset.
- Parameters
-
| maximum | The maximum y offset. |
| void vtkQtChartContentsSpace::panUp |
( |
| ) |
|
|
slot |
Pans up by a predetermined amount.
| void vtkQtChartContentsSpace::panDown |
( |
| ) |
|
|
slot |
Pans down by a predetermined amount.
| void vtkQtChartContentsSpace::panLeft |
( |
| ) |
|
|
slot |
Pans left by a predetermined amount.
| void vtkQtChartContentsSpace::panRight |
( |
| ) |
|
|
slot |
Pans right by a predetermined amount.
| void vtkQtChartContentsSpace::resetZoom |
( |
| ) |
|
|
slot |
Resets the zoom factors to 1.
| void vtkQtChartContentsSpace::historyNext |
( |
| ) |
|
|
slot |
Changes the view to the next one in the history.
| void vtkQtChartContentsSpace::historyPrevious |
( |
| ) |
|
|
slot |
Changes the view to the previous one in the history.
| static float vtkQtChartContentsSpace::getZoomFactorStep |
( |
| ) |
|
|
static |
Gets the zoom factor step.
- Returns
- The zoom factor step.
| static void vtkQtChartContentsSpace::setZoomFactorStep |
( |
float |
step | ) |
|
|
static |
Sets the zoom factor step.
- Parameters
-
| step | The new zoom factor step. |
| static float vtkQtChartContentsSpace::getPanStep |
( |
| ) |
|
|
static |
| static void vtkQtChartContentsSpace::setPanStep |
( |
float |
step | ) |
|
|
static |
Sets the pan step.
- Parameters
-
| void vtkQtChartContentsSpace::xOffsetChanged |
( |
float |
offset | ) |
|
|
signal |
Emitted when the x offset has changed.
- Parameters
-
| void vtkQtChartContentsSpace::yOffsetChanged |
( |
float |
offset | ) |
|
|
signal |
Emitted when the y offset has changed.
- Parameters
-
| void vtkQtChartContentsSpace::maximumChanged |
( |
float |
xMaximum, |
|
|
float |
yMaximum |
|
) |
| |
|
signal |
Emitted when the maximum offsets have changed.
This signal is sent when either or both of the offsets have changed. Sending the changes as one improves the chart layout.
- Parameters
-
| xMaximum | The maximum x offset. |
| yMaximum | The maximum y offset. |
| void vtkQtChartContentsSpace::historyPreviousAvailabilityChanged |
( |
bool |
available | ) |
|
|
signal |
Emitted when the view history availability changes.
- Parameters
-
| available | True if there is a history item available before the current one. |
| void vtkQtChartContentsSpace::historyNextAvailabilityChanged |
( |
bool |
available | ) |
|
|
signal |
Emitted when the view history availability changes.
- Parameters
-
| available | True if there is a history item available after the current one. |
The documentation for this class was generated from the following file: