mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
GCS - OPMap - allow different colors for overlays.
This is so we can use a different color for each kind of route ex:error destination, jump destination, next destination
This commit is contained in:
parent
2b9ad9dcb9
commit
e34fc5be71
@ -110,11 +110,11 @@ namespace mapcontrol
|
||||
return NULL;
|
||||
return new WayPointLine(from,to,map,color);
|
||||
}
|
||||
WayPointLine * OPMapWidget::WPLineCreate(HomeItem *from, WayPointItem *to)
|
||||
WayPointLine * OPMapWidget::WPLineCreate(HomeItem *from, WayPointItem *to,QColor color)
|
||||
{
|
||||
if(!from|!to)
|
||||
return NULL;
|
||||
return new WayPointLine(from,to,map);
|
||||
return new WayPointLine(from,to,map,color);
|
||||
}
|
||||
WayPointCircle * OPMapWidget::WPCircleCreate(WayPointItem *center, WayPointItem *radius, bool clockwise,QColor color)
|
||||
{
|
||||
@ -123,11 +123,11 @@ namespace mapcontrol
|
||||
return new WayPointCircle(center,radius,clockwise,map,color);
|
||||
}
|
||||
|
||||
WayPointCircle *OPMapWidget::WPCircleCreate(HomeItem *center, WayPointItem *radius, bool clockwise)
|
||||
WayPointCircle *OPMapWidget::WPCircleCreate(HomeItem *center, WayPointItem *radius, bool clockwise,QColor color)
|
||||
{
|
||||
if(!center|!radius)
|
||||
return NULL;
|
||||
return new WayPointCircle(center,radius,clockwise,map);
|
||||
return new WayPointCircle(center,radius,clockwise,map,color);
|
||||
}
|
||||
void OPMapWidget::SetShowUAV(const bool &value)
|
||||
{
|
||||
|
@ -363,9 +363,9 @@ namespace mapcontrol
|
||||
void SetShowDiagnostics(bool const& value);
|
||||
void SetUavPic(QString UAVPic);
|
||||
WayPointLine * WPLineCreate(WayPointItem *from,WayPointItem *to, QColor color);
|
||||
WayPointLine * WPLineCreate(HomeItem *from,WayPointItem *to);
|
||||
WayPointLine * WPLineCreate(HomeItem *from,WayPointItem *to, QColor color);
|
||||
WayPointCircle *WPCircleCreate(WayPointItem *center, WayPointItem *radius,bool clockwise,QColor color);
|
||||
WayPointCircle *WPCircleCreate(HomeItem *center, WayPointItem *radius,bool clockwise);
|
||||
WayPointCircle *WPCircleCreate(HomeItem *center, WayPointItem *radius,bool clockwise,QColor color);
|
||||
void deleteAllOverlays();
|
||||
void WPSetVisibleAll(bool value);
|
||||
WayPointItem *magicWPCreate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user