iVS3D v2.0.0
Loading...
Searching...
No Matches
GeoDistance Class Reference

... More...

#include <geodistance.h>

Inheritance diagram for GeoDistance:
IAlgorithm

Public Slots

void onNewMetaData ()
 onNewMetaData Slot is triggerd if the core loads new meta data
 
void onKeyframesChanged (std::vector< uint > keyframes)
 onKeyframesChanged Slot is triggerd if the core emtis new keyframes
 
void slot_distChanged (double n)
 slot_devChanged Slot is triggerd when the value of mpSpinBoxDist is changed
 
void slot_altitudeCheckChanged (bool check)
 slot_altitudeCheckChanged triggered with check box mpAltitudeCheck
 

Public Member Functions

 GeoDistance ()
 Construct and initialize plugin with default parameterization.
 
virtual ~GeoDistance ()
 Destroy object of GeoMapPlugin.
 
QWidget * getSettingsWidget (QWidget *parent) override
 getSettingsWidget is provides an QWidget to display plugin specific settings to the user. The Widget is not deleted by the core application, so storage management is duty of the plugin.
 
QString getName () const override
 getName returns the display name for the plugin. This name is presented to the user.
 
std::vector< uint > sampleImages (const std::vector< uint > &imageList, Progressable *receiver, volatile bool *stopped, bool useCuda, LogFileParent *logFile) override
 sampleImages selects the keyframes from the given images. The computation is based on the images provided by the given Reader. The imageList provides indices for the currently selected keyframes.
 
void initialize (Reader *reader, QMap< QString, QVariant > buffer, signalObject *sigObj) override
 initialize the the IAlgorithm and the settings widget with plausible values from the Reader.
 
void setSettings (QMap< QString, QVariant > settings) override
 setter for plugin's settings
 
QMap< QString, QVariant > getSettings () override
 getter for plugin's settings
 
QMap< QString, QVariant > generateSettings (Progressable *receiver, bool useCuda, volatile bool *stopped) override
 generateSettings tries to generate the best settings for the current input
 

Private Attributes

signalObjectmpSigObj
 Pointer to signal object of iVS3D-core.
 
ReadermpReader
 Pointer to reader object of iVS3D-core.
 
QWidget * mpSamplingWidget
 Pointer to the sampling widget.
 
QMap< QString, QVariant > mBuffer
 Buffered data form last call to sampleImages.
 
QList< QVariant > mMetaData
 List of available meta data.
 
bool mAltitudeExisting = false
 Flag indicating if altitude data is available.
 
QList< QPair< QPointF, bool > > mGpsData
 List of GPS data associated with the images.
 
bool mIsGpsAvailable
 Flag indicating if GPS data is available.
 
QDoubleSpinBox * mpSpinBoxDist
 Pointer to distance spin box.
 
QCheckBox * mpAltitudeCheckBox = nullptr
 Pointer to altitude check box.
 
bool mUseAltitude = false
 sampling flag indicating if altitude data should be used for distance calculation
 
double mDistance = 1
 distance for sampling set by the user
 

Additional Inherited Members

- Signals inherited from IAlgorithm
void updateKeyframes (std::vector< uint > keyframes)
 updateKeyframes updates the keyframe list in the core object.
 
void updateBuffer (QMap< QString, QVariant > buffer)
 updateBuffer stores the given buffer for future uses of the buffered data.
 

Detailed Description

...

Author
Daniel Brommer
Dominik Wüst
Boitumelo Ruf

Constructor & Destructor Documentation

◆ GeoDistance()

GeoDistance::GeoDistance ( )

Construct and initialize plugin with default parameterization.

Default construction.

Member Function Documentation

◆ generateSettings()

QMap< QString, QVariant > GeoDistance::generateSettings ( Progressable receiver,
bool  useCuda,
volatile bool *  stopped 
)
overridevirtual

generateSettings tries to generate the best settings for the current input

Parameters
receiveris a progressable, which displays the already made progress
bufferQVariant with the buffered data form last call to sampleImages
useCudatrue if cv::cuda can be used
stoppedis set if the algorithm should abort
Returns
QMap with the settings

Implements IAlgorithm.

◆ getName()

QString GeoDistance::getName ( ) const
overridevirtual

getName returns the display name for the plugin. This name is presented to the user.

Returns
The name to display

Implements IAlgorithm.

◆ getSettings()

QMap< QString, QVariant > GeoDistance::getSettings ( )
overridevirtual

getter for plugin's settings

Returns
QMap with the settings

Implements IAlgorithm.

◆ getSettingsWidget()

QWidget * GeoDistance::getSettingsWidget ( QWidget *  parent)
overridevirtual

getSettingsWidget is provides an QWidget to display plugin specific settings to the user. The Widget is not deleted by the core application, so storage management is duty of the plugin.

Parameters
parentThe parent for the QWidget
Returns
The QWidget with the plugin settings

Implements IAlgorithm.

◆ initialize()

void GeoDistance::initialize ( Reader reader,
QMap< QString, QVariant >  buffer,
signalObject sigObj 
)
overridevirtual

initialize the the IAlgorithm and the settings widget with plausible values from the Reader.

Parameters
readerThe reader with the images
bufferQVariant with the buffered data form last call to sampleImages
sigObjprovides signals from the core application

Implements IAlgorithm.

◆ onKeyframesChanged

void GeoDistance::onKeyframesChanged ( std::vector< uint >  keyframes)
slot

onKeyframesChanged Slot is triggerd if the core emtis new keyframes

Parameters
keyframesKeyframe vector

◆ sampleImages()

std::vector< uint > GeoDistance::sampleImages ( const std::vector< uint > &  imageList,
Progressable receiver,
volatile bool *  stopped,
bool  useCuda,
LogFileParent logFile 
)
overridevirtual

sampleImages selects the keyframes from the given images. The computation is based on the images provided by the given Reader. The imageList provides indices for the currently selected keyframes.

Parameters
imageListIndex list of images to compute, but indices in between can be used for computation
receiverThe Progressable to invoke to report progress
stoppedFlag true if the computation should abort, false if it should continue
useCudatrue if cv::cuda can be used
logFilecan be used to protocol progress or problems
Returns
The indices of the selected keyframes

Implements IAlgorithm.

◆ setSettings()

void GeoDistance::setSettings ( QMap< QString, QVariant >  settings)
overridevirtual

setter for plugin's settings

Parameters
QMapwith the settings

Implements IAlgorithm.

◆ slot_altitudeCheckChanged

void GeoDistance::slot_altitudeCheckChanged ( bool  check)
slot

slot_altitudeCheckChanged triggered with check box mpAltitudeCheck

Parameters
check

◆ slot_distChanged

void GeoDistance::slot_distChanged ( double  n)
slot

slot_devChanged Slot is triggerd when the value of mpSpinBoxDist is changed

Parameters
nCurrently selceted distance

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