MCPcopy Create free account
hub / github.com/MapServer/MapServer / vertex

Method vertex

renderers/agg/include/agg_conv_gpc.h:398–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396 //------------------------------------------------------------------------
397 template<class VSA, class VSB>
398 unsigned conv_gpc<VSA, VSB>::vertex(double* x, double* y)
399 {
400 if(m_status == status_move_to)
401 {
402 if(next_contour())
403 {
404 if(next_vertex(x, y))
405 {
406 m_status = status_line_to;
407 return path_cmd_move_to;
408 }
409 m_status = status_stop;
410 return path_cmd_end_poly | path_flags_close;
411 }
412 }
413 else
414 {
415 if(next_vertex(x, y))
416 {
417 return path_cmd_line_to;
418 }
419 else
420 {
421 m_status = status_move_to;
422 }
423 return path_cmd_end_poly | path_flags_close;
424 }
425 return path_cmd_stop;
426 }
427
428
429}

Callers 1

addMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected