Rogue Wave Views Charts Package API Reference Guide |
Rogue Wave Views Documentation Home |
Class for computing the graduations of a scale. More...
#include <ilviews/charts/scaledis.h>
Public Member Functions | |
IlvZoomCoordinateTransformer (const IlvCoordInterval &zoomWindow, IlDouble zoomFactor, IlBoolean continuous=IlTrue) | |
Constructor. More... | |
void | getTransformedWindow (IlvCoordInterval &itv) const |
Applies the zoom factor to the interval of data that is displayed as zoomed. More... | |
IlDouble | getZoomFactor () const |
Returns the zoom factor. More... | |
const IlvCoordInterval & | getZoomWindow () const |
Returns the interval of data that is displayed as zoomed. More... | |
virtual IlBoolean | inverseTransformPoints (IlUInt pointsCount, IlvDoublePoint *points) const |
Applies the inverse transformation to points. More... | |
virtual IlBoolean | inverseTransformValue (IlDouble &value) const |
Applies the inverse transformation to a value. More... | |
IlBoolean | isContinuous () const |
Indicates whether the transition between the zoomed data and the nonzoomed data is continuous. More... | |
void | setContinuous (IlBoolean continuous) |
Specifies whether the transition between the zoomed data and the nonzoomed data is continuous. More... | |
IlBoolean | setZoomFactor (IlDouble zoomFactor) |
Sets the zoom factor. More... | |
IlBoolean | setZoomWindow (const IlvCoordInterval &window) |
Sets the interval of data that is displayed as zoomed. More... | |
IlBoolean | setZoomWindow (IlDouble start, IlDouble end) |
Sets the interval of data that is displayed as zoomed. More... | |
virtual IlBoolean | transformPoints (IlUInt pointsCount, IlvDoublePoint *points) const |
Applies a transformation to data points. More... | |
virtual IlBoolean | transformValue (IlDouble &value) const |
Applies a transformation to a data value. More... | |
virtual IlBoolean | validateInterval (IlvCoordInterval &interval) const |
Validates an interval. More... | |
Public Member Functions inherited from IlvCoordinateTransformer | |
virtual | ~IlvCoordinateTransformer () |
Destructor. More... | |
virtual IlvCoordinateTransformer * | copy () const =0 |
Virtual copy constructor. More... | |
const IlvCoordinateInfo * | getOwner () const |
Returns the coordinate information that owns the current object. More... | |
virtual IlBoolean | inverseTransformInterval (IlvCoordInterval &itvl) const |
Applies the inverse transformation to an interval. More... | |
virtual IlBoolean | inverseTransformValues (IlUInt valuesCount, IlDouble *values) const |
Applies the inverse transformation to values. More... | |
IlvOutputFile & | save (IlvOutputFile &file) const |
Writes a complete description of the current object in a file. More... | |
virtual IlBoolean | transformInterval (IlvCoordInterval &itvl) const |
Applies a transformation to an interval. More... | |
virtual IlBoolean | transformValues (IlUInt valuesCount, IlDouble *values) const |
Applies a transformation to data values. More... | |
virtual void | write (IlvOutputFile &file) const |
Writes the attributes of the current object in a file. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvCoordinateTransformer | |
static IlvCoordinateTransformer * | Load (IlvInputFile &file) |
Reads a coordinate transformer object from a file. More... | |
Protected Member Functions inherited from IlvCoordinateTransformer | |
IlvCoordinateTransformer () | |
Constructor. More... | |
IlvCoordinateTransformer (const IlvCoordinateTransformer &transfo) | |
Constructor. More... | |
IlvCoordinateTransformer (IlvInputFile &file) | |
Constructor. More... | |
Class for computing the graduations of a scale.
Library: ilvcharts
IlvZoomCoordinateTransformer
is a subclass of IlvCoordinateTransformer
that allows you to define a transformation that is applied locally to a part of the data. This allows you to display these data as zoomed.
IlvZoomScaleStepsUpdater
class) must also be set on the scale representing this coordinate in order to compute the corresponding graduations for the scale.IlvCoordinateTransformer
. IlvZoomCoordinateTransformer::IlvZoomCoordinateTransformer | ( | const IlvCoordInterval & | zoomWindow, |
IlDouble | zoomFactor, | ||
IlBoolean | continuous = IlTrue |
||
) |
Constructor.
Initializes a new IlvZoomCoordinateTransformer
object.
zoomWindow | The interval on which the data are displayed as zoomed. |
zoomFactor | The zoom factor that is applied to the data belonging to the interval zoomWindow. |
continuous | A Boolean indicating whether the transition between the zoomed area and the nonzoomed area is continuous. |
void IlvZoomCoordinateTransformer::getTransformedWindow | ( | IlvCoordInterval & | itv | ) | const |
Applies the zoom factor to the interval of data that is displayed as zoomed.
itv | Returns the interval of data that is displayed as zoomed, once it has been transformed by the zoom factor. |
IlDouble IlvZoomCoordinateTransformer::getZoomFactor | ( | ) | const |
Returns the zoom factor.
const IlvCoordInterval& IlvZoomCoordinateTransformer::getZoomWindow | ( | ) | const |
Returns the interval of data that is displayed as zoomed.
|
virtual |
Applies the inverse transformation to points.
pointsCount | The number of points to which the inverse transformation is applied. |
points | This parameter stores the points to transform inversely and is also used to return the points once they have been inversely transformed. |
IlTrue
if the inverse transformation has been successfully applied and IlFalse
otherwise.Reimplemented from IlvCoordinateTransformer.
|
virtual |
Applies the inverse transformation to a value.
val | This parameter stores the value to transform inversely and is also used to return the value once it has been inversely transformed. |
IlTrue
if the inverse transformation has been successfully applied and IlFalse
otherwise. Implements IlvCoordinateTransformer.
IlBoolean IlvZoomCoordinateTransformer::isContinuous | ( | ) | const |
Indicates whether the transition between the zoomed data and the nonzoomed data is continuous.
IlTrue
if the transition between the zoomed data and the nonzoomed data is continuous and IlFalse
otherwise. void IlvZoomCoordinateTransformer::setContinuous | ( | IlBoolean | continuous | ) |
Specifies whether the transition between the zoomed data and the nonzoomed data is continuous.
continuous | The new value of the flag indicating whether the transition between the zoomed data and the nonzoomed data is continuous. |
Sets the zoom factor.
zoomFactor | The new zoom factor that is applied to the data that are displayed as zoomed. |
IlBoolean IlvZoomCoordinateTransformer::setZoomWindow | ( | const IlvCoordInterval & | window | ) |
Sets the interval of data that is displayed as zoomed.
window | The new interval for which the data are displayed as zoomed. |
Sets the interval of data that is displayed as zoomed.
start | The beginning of the interval for which the data are displayed as zoomed. |
end | The end of the interval for which the data are displayed as zoomed. |
|
virtual |
Applies a transformation to data points.
pointsCount | The number of points to which the transformation is applied. |
points | This parameter stores the points to transform and is also used to return the transformed points. |
IlTrue
if the transformation has been successfully applied and IlFalse
otherwise.Reimplemented from IlvCoordinateTransformer.
Applies a transformation to a data value.
value | This parameter stores the value to transform and is also used to return the transformed value. |
IlTrue
if the transformation has been successfully applied and IlFalse
otherwise. Implements IlvCoordinateTransformer.
|
virtual |
Validates an interval.
Changes the interval interval so that it becomes consistent with the definition domain of the transformer. The default implementation does nothing and returns IlFalse
, which indicates that the interval has not been modified.
interval | The interval to validate. |
Reimplemented from IlvCoordinateTransformer.
© Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.