Was this page helpful?
DsePolygon¶
-
struct DsePolygon¶
Public Functions
-
DsePolygon *dse_polygon_new()¶
Creates a new polygon iterator.
See also
dse_polygon_iterator_free()
- Returns:
Returns an polygon that must be freed.
-
void dse_polygon_free(DsePolygon *polygon)¶
Frees a polygon instance.
- Parameters:
polygon – [in]
-
void dse_polygon_reset(DsePolygon *polygon)¶
Resets a polygon so that it can be reused.
- Parameters:
polygon – [in]
-
void dse_polygon_reserve(DsePolygon *polygon, cass_uint32_t num_rings, cass_uint32_t total_num_points)¶
Reserves enough memory to contain the provided number rings and points. This can be use to reduce memory allocations, but it is not required.
- Parameters:
polygon – [in]
num_rings – [in]
total_num_points – [in]
-
CassError dse_polygon_start_ring(DsePolygon *polygon)¶
Starts a new ring.
Note: This will finish the previous ring.
- Parameters:
polygon – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError dse_polygon_add_point(DsePolygon *polygon, cass_double_t x, cass_double_t y)¶
Adds a point to the current ring.
- Parameters:
polygon – [in]
x – [in]
y – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
CassError dse_polygon_finish(DsePolygon *polygon)¶
Finishes the contruction of a polygon.
- Parameters:
polygon – [in]
- Returns:
CASS_OK if successful, otherwise an error occurred.
-
DsePolygon *dse_polygon_new()¶