QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GeoTagController Class Reference

Controller for GeoTagPage.qml. Supports geotagging images based on logfile camera tags. More...

#include <GeoTagController.h>

Inheritance diagram for GeoTagController:
Collaboration diagram for GeoTagController:

Signals

void logFileChanged (const QString &logFile)
void imageDirectoryChanged (const QString &imageDirectory)
void saveDirectoryChanged (const QString &saveDirectory)
void progressChanged (double progress)
void inProgressChanged ()
void errorMessageChanged (const QString &errorMessage)
void taggingCompleteChanged ()
void timeOffsetSecsChanged (double timeOffsetSecs)
void toleranceSecsChanged (double toleranceSecs)
void previewModeChanged (bool previewMode)
void recursiveScanChanged (bool recursiveScan)

Public Member Functions

 GeoTagController (QObject *parent=nullptr)
 ~GeoTagController () override
Q_INVOKABLE void startTagging ()
Q_INVOKABLE void cancelTagging ()
QString logFile () const
QString imageDirectory () const
QString saveDirectory () const
double progress () const
bool inProgress () const
QString errorMessage () const
int taggedCount () const
int skippedCount () const
int failedCount () const
double timeOffsetSecs () const
double toleranceSecs () const
bool previewMode () const
bool recursiveScan () const
GeoTagImageModel * imageModel () const
void setLogFile (const QString &file)
void setImageDirectory (const QString &dir)
void setSaveDirectory (const QString &dir)
void setTimeOffsetSecs (double offset)
void setToleranceSecs (double tolerance)
void setPreviewMode (bool preview)
void setRecursiveScan (bool recursive)

Detailed Description

Controller for GeoTagPage.qml. Supports geotagging images based on logfile camera tags.

Uses async signal-based processing with QFutureWatcher for non-blocking operation.

Definition at line 48 of file GeoTagController.h.

Constructor & Destructor Documentation

◆ GeoTagController()

GeoTagController::GeoTagController ( QObject * parent = nullptr)
explicit

Definition at line 177 of file GeoTagController.cc.

◆ ~GeoTagController()

GeoTagController::~GeoTagController ( )
override

Definition at line 196 of file GeoTagController.cc.

Member Function Documentation

◆ cancelTagging()

void GeoTagController::cancelTagging ( )

Definition at line 390 of file GeoTagController.cc.

References inProgress().

◆ errorMessage()

QString GeoTagController::errorMessage ( ) const
inline

Definition at line 82 of file GeoTagController.h.

Referenced by errorMessageChanged().

◆ errorMessageChanged

void GeoTagController::errorMessageChanged ( const QString & errorMessage)
signal

References errorMessage().

◆ failedCount()

int GeoTagController::failedCount ( ) const
inline

Definition at line 85 of file GeoTagController.h.

◆ imageDirectory()

QString GeoTagController::imageDirectory ( ) const
inline

Definition at line 78 of file GeoTagController.h.

Referenced by imageDirectoryChanged().

◆ imageDirectoryChanged

void GeoTagController::imageDirectoryChanged ( const QString & imageDirectory)
signal

References imageDirectory().

Referenced by setImageDirectory().

◆ imageModel()

GeoTagImageModel * GeoTagController::imageModel ( ) const
inline

Definition at line 90 of file GeoTagController.h.

◆ inProgress()

bool GeoTagController::inProgress ( ) const
inline

Definition at line 81 of file GeoTagController.h.

Referenced by cancelTagging(), and startTagging().

◆ inProgressChanged

void GeoTagController::inProgressChanged ( )
signal

◆ logFile()

QString GeoTagController::logFile ( ) const
inline

Definition at line 77 of file GeoTagController.h.

Referenced by logFileChanged().

◆ logFileChanged

void GeoTagController::logFileChanged ( const QString & logFile)
signal

References logFile().

Referenced by setLogFile().

◆ previewMode()

bool GeoTagController::previewMode ( ) const
inline

Definition at line 88 of file GeoTagController.h.

Referenced by previewModeChanged().

◆ previewModeChanged

void GeoTagController::previewModeChanged ( bool previewMode)
signal

References previewMode().

Referenced by setPreviewMode().

◆ progress()

double GeoTagController::progress ( ) const
inline

Definition at line 80 of file GeoTagController.h.

Referenced by progressChanged().

◆ progressChanged

void GeoTagController::progressChanged ( double progress)
signal

References progress().

◆ recursiveScan()

bool GeoTagController::recursiveScan ( ) const
inline

Definition at line 89 of file GeoTagController.h.

Referenced by recursiveScanChanged().

◆ recursiveScanChanged

void GeoTagController::recursiveScanChanged ( bool recursiveScan)
signal

References Idle, and recursiveScan().

Referenced by setRecursiveScan().

◆ saveDirectory()

QString GeoTagController::saveDirectory ( ) const
inline

Definition at line 79 of file GeoTagController.h.

Referenced by saveDirectoryChanged().

◆ saveDirectoryChanged

void GeoTagController::saveDirectoryChanged ( const QString & saveDirectory)
signal

References saveDirectory().

Referenced by setSaveDirectory().

◆ setImageDirectory()

void GeoTagController::setImageDirectory ( const QString & dir)

◆ setLogFile()

void GeoTagController::setLogFile ( const QString & file)

Definition at line 206 of file GeoTagController.cc.

References logFileChanged(), and QGCFileHelper::toLocalPath().

◆ setPreviewMode()

void GeoTagController::setPreviewMode ( bool preview)

Definition at line 310 of file GeoTagController.cc.

References previewModeChanged().

◆ setRecursiveScan()

void GeoTagController::setRecursiveScan ( bool recursive)

Definition at line 318 of file GeoTagController.cc.

References recursiveScanChanged().

◆ setSaveDirectory()

void GeoTagController::setSaveDirectory ( const QString & dir)

Definition at line 260 of file GeoTagController.cc.

References saveDirectoryChanged(), and QGCFileHelper::toLocalPath().

◆ setTimeOffsetSecs()

void GeoTagController::setTimeOffsetSecs ( double offset)

Definition at line 292 of file GeoTagController.cc.

References timeOffsetSecsChanged().

◆ setToleranceSecs()

void GeoTagController::setToleranceSecs ( double tolerance)

Definition at line 300 of file GeoTagController.cc.

References toleranceSecsChanged().

◆ skippedCount()

int GeoTagController::skippedCount ( ) const
inline

Definition at line 84 of file GeoTagController.h.

◆ startTagging()

void GeoTagController::startTagging ( )

◆ taggedCount()

int GeoTagController::taggedCount ( ) const
inline

Definition at line 83 of file GeoTagController.h.

◆ taggingCompleteChanged

void GeoTagController::taggingCompleteChanged ( )
signal

Referenced by startTagging().

◆ timeOffsetSecs()

double GeoTagController::timeOffsetSecs ( ) const
inline

Definition at line 86 of file GeoTagController.h.

Referenced by timeOffsetSecsChanged().

◆ timeOffsetSecsChanged

void GeoTagController::timeOffsetSecsChanged ( double timeOffsetSecs)
signal

References timeOffsetSecs().

Referenced by setTimeOffsetSecs().

◆ toleranceSecs()

double GeoTagController::toleranceSecs ( ) const
inline

Definition at line 87 of file GeoTagController.h.

Referenced by toleranceSecsChanged().

◆ toleranceSecsChanged

void GeoTagController::toleranceSecsChanged ( double toleranceSecs)
signal

References toleranceSecs().

Referenced by setToleranceSecs().


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