![]() |
![]() |
![]() |
Goffice Reference Manual | ![]() |
---|---|---|---|---|
GogChartMap; GogChartMapPolarData; GogChartMap* gog_chart_map_new (GogChart *chart, GogViewAllocation const *area, GogAxis *axis0, GogAxis *axis1, GogAxis *axis2, gboolean fill_area); void gog_chart_map_free (GogChartMap *map); gboolean gog_chart_map_is_valid (GogChartMap *map); void gog_chart_map_2D_to_view (GogChartMap *map, double x, double y, double *u, double *v); GogAxisMap* gog_chart_map_get_axis_map (GogChartMap *map, unsigned int index); GOPath* gog_chart_map_make_path (GogChartMap *map, double const *x, double const *y, int n_points, GOLineInterpolation interpolation); GOPath* gog_chart_map_make_close_path (GogChartMap *map, double const *x, double const *y, int n_points, GogSeriesFillType fill_type); GogChartMapPolarData* gog_chart_map_get_polar_parms (GogChartMap *map);
typedef struct { double cx, cy; double rx, ry; double th0, th1; } GogChartMapPolarData;
GogChartMap* gog_chart_map_new (GogChart *chart, GogViewAllocation const *area, GogAxis *axis0, GogAxis *axis1, GogAxis *axis2, gboolean fill_area);
Creates a new GogChartMap, used for conversion from data space to canvas space.
void gog_chart_map_free (GogChartMap *map);
Frees map
object.
|
a GogChartMap |
gboolean gog_chart_map_is_valid (GogChartMap *map);
Tests if map
was correctly initializied, i.e. if all associated axis_map
are valid (see gog_axis_map_is_valid()
).
given to gog_chart_map_new.
|
a GogChartMap |
Returns : |
TRUE if map is valid.
|
void gog_chart_map_2D_to_view (GogChartMap *map, double x, double y, double *u, double *v);
Converts a 2D coordinate from data space to canvas space.
|
a GogChartMap |
|
data x value |
|
data y value |
|
placeholder for x converted value |
|
placeholder for y converted value |
GogAxisMap* gog_chart_map_get_axis_map (GogChartMap *map, unsigned int index);
Convenience function which returns one of the associated axis_map.
Valid values are in range [0..2].
|
a GogChartMap |
|
axis index |
Returns : |
a GogAxisMap. |
GOPath* gog_chart_map_make_path (GogChartMap *map, double const *x, double const *y, int n_points, GOLineInterpolation interpolation);
Creates a new GOPath using x
and y
data, each valid point being connected with respect to interpolation
.
|
a GogChartMap |
|
x data |
|
y data |
|
number of points |
|
interpolation type |
Returns : |
GOPath* gog_chart_map_make_close_path (GogChartMap *map, double const *x, double const *y, int n_points, GogSeriesFillType fill_type);
Creates a new GOPath using x
and y
data, with respect to fill_type
.
|
a GogChartMap |
|
x data |
|
y data |
|
number of points |
|
fill type |
Returns : |
GogChartMapPolarData* gog_chart_map_get_polar_parms (GogChartMap *map);
Convenience function for retrieving data related to polar plot layout.
|
a GogChartMap |
Returns : |
a GogChartMapPolarData struct. |