QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PlanElementController Class Referenceabstract

This is the abstract base clas for Plan Element controllers. More...

#include <PlanElementController.h>

Inheritance diagram for PlanElementController:
Collaboration diagram for PlanElementController:

Signals

void supportedChanged (bool supported)
void containsItemsChanged ()
void syncInProgressChanged (bool syncInProgress)
void dirtyChanged (bool dirty)
void sendComplete (void)
void removeAllComplete (void)

Public Member Functions

 PlanElementController (PlanMasterController *masterController, QObject *parent=nullptr)
 ~PlanElementController ()
PlanMasterController * masterController (void)
virtual void start (bool flyView)
 Should be called immediately upon Component.onCompleted.
virtual void save (QJsonObject &json)=0
virtual bool load (const QJsonObject &json, QString &errorString)=0
virtual void loadFromVehicle (void)=0
virtual void removeAll (void)=0
 Removes all from controller only.
virtual bool showPlanFromManagerVehicle (void)=0
virtual bool supported (void) const =0
 true: controller is waiting for the current load to complete
virtual bool containsItems (void) const =0
virtual bool syncInProgress (void) const =0
virtual bool dirty (void) const =0
virtual void setDirty (bool dirty)=0
virtual void sendToVehicle (void)=0
virtual void removeAllFromVehicle (void)=0

Protected Attributes

PlanMasterController * _masterController
bool _flyView

Detailed Description

This is the abstract base clas for Plan Element controllers.

Examples of plan elements are: missions (MissionController), geofence (GeoFenceController)

Definition at line 12 of file PlanElementController.h.

Constructor & Destructor Documentation

◆ PlanElementController()

PlanElementController::PlanElementController ( PlanMasterController * masterController,
QObject * parent = nullptr )

◆ ~PlanElementController()

PlanElementController::~PlanElementController ( )

true: Element is supported by Vehicle true: Elemement is non-empty true: information is currently being saved/sent, false: no active save/send in progress true: unsaved/sent changes are present, false: no changes since last save/send

Definition at line 12 of file PlanElementController.cc.

Member Function Documentation

◆ containsItems()

virtual bool PlanElementController::containsItems ( void ) const
pure virtual

◆ containsItemsChanged

void PlanElementController::containsItemsChanged ( )
signal

◆ dirty()

virtual bool PlanElementController::dirty ( void ) const
pure virtual

◆ dirtyChanged

void PlanElementController::dirtyChanged ( bool dirty)
signal

◆ load()

virtual bool PlanElementController::load ( const QJsonObject & json,
QString & errorString )
pure virtual

◆ loadFromVehicle()

virtual void PlanElementController::loadFromVehicle ( void )
pure virtual

◆ masterController()

◆ removeAll()

virtual void PlanElementController::removeAll ( void )
pure virtual

Removes all from controller only.

Implemented in GeoFenceController, MissionController, and RallyPointController.

◆ removeAllComplete

void PlanElementController::removeAllComplete ( void )
signal

◆ removeAllFromVehicle()

virtual void PlanElementController::removeAllFromVehicle ( void )
pure virtual

Removes all from vehicle and controller Signals removeAllComplete when done

Implemented in GeoFenceController, MissionController, and RallyPointController.

◆ save()

virtual void PlanElementController::save ( QJsonObject & json)
pure virtual

◆ sendComplete

void PlanElementController::sendComplete ( void )
signal

◆ sendToVehicle()

virtual void PlanElementController::sendToVehicle ( void )
pure virtual

Sends the current plan element to the vehicle Signals sendComplete when done

Implemented in GeoFenceController, MissionController, and RallyPointController.

◆ setDirty()

virtual void PlanElementController::setDirty ( bool dirty)
pure virtual

◆ showPlanFromManagerVehicle()

virtual bool PlanElementController::showPlanFromManagerVehicle ( void )
pure virtual

◆ start()

void PlanElementController::start ( bool flyView)
virtual

Should be called immediately upon Component.onCompleted.

Reimplemented in GeoFenceController, MissionController, and RallyPointController.

Definition at line 17 of file PlanElementController.cc.

References _flyView.

Referenced by GeoFenceController::start(), MissionController::start(), and RallyPointController::start().

◆ supported()

virtual bool PlanElementController::supported ( void ) const
pure virtual

true: controller is waiting for the current load to complete

Implemented in GeoFenceController, MissionController, and RallyPointController.

Referenced by supportedChanged().

◆ supportedChanged

void PlanElementController::supportedChanged ( bool supported)
signal

References supported().

◆ syncInProgress()

virtual bool PlanElementController::syncInProgress ( void ) const
pure virtual

◆ syncInProgressChanged

void PlanElementController::syncInProgressChanged ( bool syncInProgress)
signal

References syncInProgress().

Member Data Documentation

◆ _flyView

◆ _masterController


The documentation for this class was generated from the following files: