vtkQtChartAxisDomain Class Reference

#include <vtkQtChartAxisDomain.h>

List of all members.


Detailed Description

The vtkQtChartAxisDomain class is used to merge similar domains for an axis.

Definition at line 37 of file vtkQtChartAxisDomain.h.


Public Member Functions

 vtkQtChartAxisDomain ()
 vtkQtChartAxisDomain (const vtkQtChartAxisDomain &other)
 ~vtkQtChartAxisDomain ()
vtkQtChartAxisDomainoperator= (const vtkQtChartAxisDomain &other)
Setup Methods
bool isEmpty () const
 Gets whether or not the domain is empty.
bool isRangeInList () const
 Gets whether or not the range is inside the list.
vtkQtChartAxis::AxisDomain getDomainType () const
 Gets the axis domain type.
QVariant::Type getVariantType () const
 Gets the QVariant domain type.
bool isTypeCompatible (QVariant::Type domain) const
 Gets whether or not the given type is compatible with the current domain type.
const QList< QVariant > & getDomain (bool &isRange) const
 Gets the current domain.
void setRange (const QList< QVariant > &range)
 Sets the domain to the given range.
void setDomain (const QList< QVariant > &domain)
 Sets the domain to the given list of values.
bool mergeRange (const QList< QVariant > &range)
 Merges the given range with the current domain.
bool mergeDomain (const QList< QVariant > &domain)
 Merges the given list with the current domain.
bool mergeDomain (const vtkQtChartAxisDomain &other)
 Merges the given domain with the current domain.
void clear ()
 Clears the domain contents.
Preference Methods
bool isRangePaddingUsed () const
 Gets whether or not the range should be padded.
void setRangePaddingUsed (bool padRange)
 Sets whether or not the range should be padded.
bool isExpansionToZeroUsed () const
 Gets whether or not the range should be expanded to zero.
void setExpansionToZeroUsed (bool expand)
 Sets whether or not the range should be expanded to zero.
bool isExtraSpaceUsed () const
 Gets whether or not space should be added to the end labels.
void setExtraSpaceUsed (bool addSpace)
 Sets whether or not space should be added to the end labels.
void setPreferences (bool padRange, bool expandToZero, bool addSpace)
 Sets the axis preferences.

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.

Constructor & Destructor Documentation

vtkQtChartAxisDomain::vtkQtChartAxisDomain (  ) 

vtkQtChartAxisDomain::vtkQtChartAxisDomain ( const vtkQtChartAxisDomain other  ) 

vtkQtChartAxisDomain::~vtkQtChartAxisDomain (  )  [inline]

Definition at line 42 of file vtkQtChartAxisDomain.h.


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.

vtkQtChartAxis::AxisDomain vtkQtChartAxisDomain::getDomainType (  )  const

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.

bool vtkQtChartAxisDomain::mergeDomain ( const vtkQtChartAxisDomain other  ) 

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.

vtkQtChartAxisDomain& vtkQtChartAxisDomain::operator= ( const vtkQtChartAxisDomain other  ) 

static vtkQtChartAxis::AxisDomain vtkQtChartAxisDomain::getAxisDomain ( QVariant::Type  domain  )  [static]

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:

Generated on Mon Sep 27 18:43:59 2010 for VTK by  doxygen 1.5.6