Api for change survey waypoint generator

Hi is there a an api to use my own algorithme to generate the waypoint of survey but with the gui of qgc?
or i need change the party of code surveycomplexitem.cc?
my algorithme allowed generate waypoint with input polygon