The pqChartPixelScale class maps chart values to pixel locations.
More...
#include <pqChartPixelScale.h>
List of all members.
Detailed Description
The pqChartPixelScale class maps chart values to pixel locations.
Definition at line 49 of file pqChartPixelScale.h.
Member Enumeration Documentation
- Enumerator:
| Linear |
Use a linear scale.
|
| Logarithmic |
Use a logarithmic scale.
|
Definition at line 52 of file pqChartPixelScale.h.
Constructor & Destructor Documentation
| pqChartPixelScale::pqChartPixelScale |
( |
| ) |
|
| pqChartPixelScale::~pqChartPixelScale |
( |
| ) |
|
Member Function Documentation
Sets the value range.
- Parameters:
-
| min | The minimum value. |
| max | The maximum value. |
- Returns:
- True if the pixel-value scale changed.
| void pqChartPixelScale::getValueRange |
( |
pqChartValue & |
range | ) |
const |
Gets the value range.
- Parameters:
-
| range | Used to return the difference between the minimum and maximum values. |
| bool pqChartPixelScale::setMinValue |
( |
const pqChartValue & |
min | ) |
|
Sets the minimum value.
- Parameters:
-
- Returns:
- True if the pixel-value scale changed.
| const pqChartValue& pqChartPixelScale::getMinValue |
( |
| ) |
const |
Gets the minimum value.
- Returns:
- The minimum value.
| bool pqChartPixelScale::setMaxValue |
( |
const pqChartValue & |
max | ) |
|
Sets the maximum value.
- Parameters:
-
- Returns:
- True if the pixel-value scale changed.
| const pqChartValue& pqChartPixelScale::getMaxValue |
( |
| ) |
const |
Gets the maximum value.
- Returns:
- The maximum value.
| bool pqChartPixelScale::setPixelRange |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
Sets the pixel range.
- Parameters:
-
| min | The minimum pixel location. |
| max | The maximum pixel location. |
- Returns:
- True if the pixel-value scale changed.
| int pqChartPixelScale::getPixelRange |
( |
| ) |
const |
Gets the pixel range.
The pixel range is always returned as a positive number.
- Returns:
- The difference between the minimum and maximum pixels.
| bool pqChartPixelScale::setMinPixel |
( |
int |
min | ) |
|
Sets the minimum pixel location.
- Parameters:
-
| min | The minimum pixel location. |
- Returns:
- True if the pixel-value scale changed.
| int pqChartPixelScale::getMinPixel |
( |
| ) |
const |
Gets the minimum pixel location.
- Returns:
- The minimum pixel location.
| bool pqChartPixelScale::setMaxPixel |
( |
int |
max | ) |
|
Sets the maximum pixel location.
- Parameters:
-
| max | The maximum pixel location. |
- Returns:
- True if the pixel-value scale changed.
| int pqChartPixelScale::getMaxPixel |
( |
| ) |
const |
Gets the maximum pixel location.
- Returns:
- The maximum pixel location.
Maps a value to a pixel.
- Parameters:
-
- Returns:
- The pixel location for the given value.
- See also:
- pqChartPixelScale::isValid(), pqChartPixelScale::getValue(int)
Maps a value to a pixel.
- Parameters:
-
- Returns:
- The pixel location for the given value.
- See also:
- pqChartPixelScale::isValid(), pqChartPixelScale::getValue(int)
Maps a pixel to a value.
- Parameters:
-
| pixel | The pixel location. |
| value | Used to return the value equivalent to the pixel location. |
- See also:
- pqChartPixelScale::isValid(), pqChartPixelScale::getPixel(const pqChartValue &)
| bool pqChartPixelScale::isValid |
( |
| ) |
const |
Used to determine if the pixel/value mapping is valid.
- Returns:
- True if the pixel/value mapping is valid.
| bool pqChartPixelScale::isZeroInRange |
( |
| ) |
const |
Used to determine if zero is in the value range.
- Returns:
- True if zero is in the value range.
| void pqChartPixelScale::setScaleType |
( |
ValueScale |
scale | ) |
|
Sets the scale type.
- Parameters:
-
| ValueScale pqChartPixelScale::getScaleType |
( |
| ) |
const |
Gets the scale type.
- Returns:
- The current scale type.
| bool pqChartPixelScale::isLogScaleAvailable |
( |
| ) |
const |
Gets wether or not logarithmic scale can be used.
- Returns:
- True if logarithmic scale can be used.
Member Data Documentation
The documentation for this class was generated from the following file: