ChartDirector 6.0 (C++ Edition)

PolarChart.getXCoor

Usage

int getXCoor(double r, double a) const;

Description

Gets the x pixel coordinate of a point given its radial and angular coordinates.

The radial and angular coordinates are measured using the scale of the radial and angular axes. In particular, the scale of the angular axis may not be in degrees or radians. See AngularAxis.setLabels and AngularAxis.setLinearScale on how the angular axis scale is defined.

**Note:** You must call BaseChart.layout first before calling this method. ChartDirector needs to perform auto-scaling and layout the axis before it can compute the coordinates.

The radial and angular coordinates are measured using the scale of the radial and angular axes. In particular, the scale of the angular axis may not be in degrees or radians. See AngularAxis.setLabels and AngularAxis.setLinearScale on how the angular axis scale is defined.

Arguments

Argument | Default | Description |
---|---|---|

r | (Mandatory) | The radial coordinate of the point. |

a | (Mandatory) | The angular coordinate of the point. |

Return Value

The x pixel coordinate of the point.

© 2017 Advanced Software Engineering Limited. All rights reserved.