The vtkQtChartAxisDomain class is used to merge similar domains for an axis.
More...
#include <vtkQtChartAxisDomain.h>
Static Public Member Functions |
static vtkQtChartAxis::AxisDomain | getAxisDomain (QVariant::Type domain) |
| Translates the QVariant type to axis domain type.
|
static void | sort (QList< QVariant > &list) |
| Sorts the list of variants according to value.
|
Detailed Description
The vtkQtChartAxisDomain class is used to merge similar domains for an axis.
Definition at line 37 of file vtkQtChartAxisDomain.h.
Constructor & Destructor Documentation
vtkQtChartAxisDomain::vtkQtChartAxisDomain |
( |
| ) |
|
vtkQtChartAxisDomain::~vtkQtChartAxisDomain |
( |
| ) |
|
|
inline |
Member Function Documentation
bool vtkQtChartAxisDomain::isEmpty |
( |
| ) |
const |
Gets whether or not the domain is empty.
The domain is empty if both the range and list are empty.
- Returns
- True if the domain is empty.
bool vtkQtChartAxisDomain::isRangeInList |
( |
| ) |
const |
Gets whether or not the range is inside the list.
- Returns
- True if the range is inside the list.
Gets the axis domain type.
- Returns
- The axis domain type.
QVariant::Type vtkQtChartAxisDomain::getVariantType |
( |
| ) |
const |
Gets the QVariant domain type.
- Returns
- The QVariant domain type.
bool vtkQtChartAxisDomain::isTypeCompatible |
( |
QVariant::Type |
domain | ) |
const |
Gets whether or not the given type is compatible with the current domain type.
- Parameters
-
domain | The QVariant domain type. |
- Returns
- True if the given type is compatible with the current domain.
const QList<QVariant>& vtkQtChartAxisDomain::getDomain |
( |
bool & |
isRange | ) |
const |
Gets the current domain.
- Parameters
-
isRange | Used to return whether or not the domain is a range. |
- Returns
- A reference to the current domain values.
void vtkQtChartAxisDomain::setRange |
( |
const QList< QVariant > & |
range | ) |
|
Sets the domain to the given range.
- Parameters
-
range | A list of two values. |
void vtkQtChartAxisDomain::setDomain |
( |
const QList< QVariant > & |
domain | ) |
|
Sets the domain to the given list of values.
- Note
- The list should be sorted before calling this method.
- Parameters
-
domain | The list of domain values. |
bool vtkQtChartAxisDomain::mergeRange |
( |
const QList< QVariant > & |
range | ) |
|
Merges the given range with the current domain.
- Parameters
-
range | A list of two values. |
- Returns
- True if the merge was successful.
bool vtkQtChartAxisDomain::mergeDomain |
( |
const QList< QVariant > & |
domain | ) |
|
Merges the given list with the current domain.
- Note
- The list should be sorted before calling this method.
- Parameters
-
domain | The list of domain values. |
- Returns
- True if the merge was successful.
Merges the given domain with the current domain.
The axis domain preferences are merged as well as the domain values.
- Parameters
-
other | The domain to merge. |
- Returns
- True if the merge was successful.
void vtkQtChartAxisDomain::clear |
( |
| ) |
|
Clears the domain contents.
bool vtkQtChartAxisDomain::isRangePaddingUsed |
( |
| ) |
const |
|
inline |
Gets whether or not the range should be padded.
- Returns
- True if the range should be padded.
Definition at line 137 of file vtkQtChartAxisDomain.h.
void vtkQtChartAxisDomain::setRangePaddingUsed |
( |
bool |
padRange | ) |
|
|
inline |
Sets whether or not the range should be padded.
- Parameters
-
padRange | True if the range should be padded. |
Definition at line 142 of file vtkQtChartAxisDomain.h.
bool vtkQtChartAxisDomain::isExpansionToZeroUsed |
( |
| ) |
const |
|
inline |
Gets whether or not the range should be expanded to zero.
- Returns
- True if the range should be expanded to zero.
Definition at line 148 of file vtkQtChartAxisDomain.h.
void vtkQtChartAxisDomain::setExpansionToZeroUsed |
( |
bool |
expand | ) |
|
|
inline |
Sets whether or not the range should be expanded to zero.
- Parameters
-
expand | True if the range should be expanded to zero. |
Definition at line 153 of file vtkQtChartAxisDomain.h.
bool vtkQtChartAxisDomain::isExtraSpaceUsed |
( |
| ) |
const |
|
inline |
Gets whether or not space should be added to the end labels.
- Returns
- True if space should be added to the end labels.
Definition at line 159 of file vtkQtChartAxisDomain.h.
void vtkQtChartAxisDomain::setExtraSpaceUsed |
( |
bool |
addSpace | ) |
|
|
inline |
Sets whether or not space should be added to the end labels.
- Parameters
-
addSpace | True if space should be added to the end labels. |
Definition at line 164 of file vtkQtChartAxisDomain.h.
void vtkQtChartAxisDomain::setPreferences |
( |
bool |
padRange, |
|
|
bool |
expandToZero, |
|
|
bool |
addSpace |
|
) |
| |
Sets the axis preferences.
- Parameters
-
padRange | True if the range should be padded. |
expandToZero | True if the range should be expanded to zero. |
addSpace | True if space should be added to the end labels. |
Translates the QVariant type to axis domain type.
- Parameters
-
domain | The QVariant domain type. |
- Returns
- The axis domain type.
static void vtkQtChartAxisDomain::sort |
( |
QList< QVariant > & |
list | ) |
|
|
static |
Sorts the list of variants according to value.
The list of variants is sorted according to value using a quick sort algorithm. The list is sorted in place and non-recursively.
- Parameters
-
list | The list of shapes to be sorted. |
The documentation for this class was generated from the following file: