27 #ifndef FlightDataModel_H
28 #define FlightDataModel_H
30 #include <QAbstractTableModel>
70 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
71 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
72 QVariant
data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
73 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
74 void fixupValidationErrors();
76 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
77 Qt::ItemFlags flags(
const QModelIndex &index)
const;
78 bool insertRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
79 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
80 bool writeToFile(QString filename);
81 void readFromFile(QString fileName);
89 void pauseValidation(
bool pausing);
113 bool getHomeLocation(
double *homeLLA)
const;
115 bool setHomeLocation(
double *homeLLA);
118 void showErrorDialog(
const char *title,
const char *message);
121 #endif // FlightDataModel_H
PathPlanDataEnum
The column names.
double lngPosition
Longitude of the waypoint.
int mode
Navigation mode for this waypoint.
double altitude
Altitude of the waypoint (m above ellipsoid)
static QMap< int, QString > modeNames
axis equal end function NED
float velocity
Velocity associated with this waypoint.
double latPosition
Latitude of the waypoint.
QString wpDescription
Description for the waypoint.
void setData(const DataFields &data)
The PathPlanData struct is the internal representation of the waypoints. Notice this is in absolute t...
bool locked
Lock a waypoint.
float mode_params
Optional parameters associated with this waypoint.