![]() |
![]() |
![]() |
libchamplain Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
ChamplainBoundingBox; ChamplainBoundingBox * champlain_bounding_box_new (void
); ChamplainBoundingBox * champlain_bounding_box_copy (const ChamplainBoundingBox *bbox
); void champlain_bounding_box_free (ChamplainBoundingBox *bbox
); void champlain_bounding_box_get_center (ChamplainBoundingBox *bbox
,gdouble *lat
,gdouble *lon
);
typedef struct { gdouble left; gdouble bottom; gdouble right; gdouble top; } ChamplainBoundingBox;
Defines the area of a ChamplainMapDataSource that contains data.
gdouble |
left coordinate |
gdouble |
bottom coordinate |
gdouble |
right coordinate |
gdouble |
top coordinate |
Since 0.6
ChamplainBoundingBox * champlain_bounding_box_new (void
);
Creates a newly allocated ChamplainBoundingBox to be freed
with champlain_bounding_box_free()
.
Returns : |
a ChamplainBoundingBox |
Since 0.6
ChamplainBoundingBox * champlain_bounding_box_copy (const ChamplainBoundingBox *bbox
);
Makes a copy of the bounding box structure. The result must be
freed using champlain_bounding_box_free()
.
|
a ChamplainBoundingBox |
Returns : |
an allocated copy of bbox .
|
Since 0.6
void champlain_bounding_box_free (ChamplainBoundingBox *bbox
);
Frees a bounding box structure created with champlain_bounding_box_new()
or
champlain_bounding_box_copy()
.
|
a ChamplainBoundingBox |
Since 0.6
void champlain_bounding_box_get_center (ChamplainBoundingBox *bbox
,gdouble *lat
,gdouble *lon
);
Sets the latitude and longitude of the box to lat
and lon
.
|
a ChamplainBoundingBox |
|
the latitude of the box center |
|
the longitude of the box center |
Since 0.6