ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
BundlerImportDlg Class Reference

Dialog for importation of Snavely's Bundler files. More...

#include <BundlerImportDlg.h>

Inheritance diagram for BundlerImportDlg:
[legend]
Collaboration diagram for BundlerImportDlg:
[legend]

Public Types

enum  OrthoRectMethod { OPTIMIZED, DIRECT_UNDISTORTED, DIRECT }
 Image ortho-rectification methods. More...
 

Public Member Functions

 BundlerImportDlg (QWidget *parent=0)
 Default constructor. More...
 
virtual ~BundlerImportDlg ()
 Destructor. More...
 
bool importKeypoints () const
 Returns whether keypoints should be imported. More...
 
bool useAlternativeKeypoints () const
 Returns whether alternative keypoints should be used. More...
 
bool importImages () const
 Returns whether images should be imported. More...
 
bool undistortImages () const
 Returns whether images should be undistorted. More...
 
bool orthoRectifyImagesAsClouds () const
 Returns whether images should be ortho-rectified as clouds. More...
 
bool orthoRectifyImagesAsImages () const
 Returns whether images should be ortho-rectified as images. More...
 
bool generateColoredDTM () const
 Returns whether colored pseudo-DTM should be generated. More...
 
bool keepImagesInMemory () const
 Returns images should be kept in memory or not. More...
 
OrthoRectMethod getOrthorectificationMethod () const
 Returns the ortho-rectification method (for images) More...
 
void setKeypointsCount (unsigned count)
 Sets keypoints count on initialization. More...
 
void setCamerasCount (unsigned count)
 Sets cameras count on initialization. More...
 
void setVer (unsigned majorVer, unsigned minorVer)
 Sets file version on initialization. More...
 
void setImageListFilename (const QString &filename)
 Sets default image list filename (full path) More...
 
QString getImageListFilename () const
 Gets image list filename (full path) More...
 
void setAltKeypointsFilename (const QString &filename)
 Sets default alternative keypoints filename (full path) More...
 
QString getAltKeypointsFilename () const
 Gets alternative keypoints filename (full path) More...
 
double getScaleFactor () const
 Returns scale factor. More...
 
unsigned getDTMVerticesCount () const
 Returns desired number of vertices for DTM. More...
 
bool getOptionalTransfoMatrix (ccGLMatrix &mat)
 Returns the optional transformation matrix (if defined) More...
 

Protected Slots

void browseImageListFilename ()
 
void browseAltKeypointsFilename ()
 
void acceptAndSaveSettings ()
 

Protected Member Functions

void initFromPersistentSettings ()
 Inits dialog state from persistent settings. More...
 
void saveToPersistentSettings ()
 Saves dialog state from persistent settings. More...
 

Detailed Description

Dialog for importation of Snavely's Bundler files.

Member Enumeration Documentation

◆ OrthoRectMethod

Image ortho-rectification methods.

Enumerator
OPTIMIZED 
DIRECT_UNDISTORTED 
DIRECT 

Constructor & Destructor Documentation

◆ BundlerImportDlg()

BundlerImportDlg::BundlerImportDlg ( QWidget *  parent = 0)
explicit

◆ ~BundlerImportDlg()

BundlerImportDlg::~BundlerImportDlg ( )
virtual

Destructor.

Member Function Documentation

◆ acceptAndSaveSettings

void BundlerImportDlg::acceptAndSaveSettings ( )
protectedslot

◆ browseAltKeypointsFilename

void BundlerImportDlg::browseAltKeypointsFilename ( )
protectedslot

Referenced by BundlerImportDlg().

◆ browseImageListFilename

void BundlerImportDlg::browseImageListFilename ( )
protectedslot

Referenced by BundlerImportDlg().

◆ generateColoredDTM()

bool BundlerImportDlg::generateColoredDTM ( ) const

Returns whether colored pseudo-DTM should be generated.

Referenced by initFromPersistentSettings(), and BundlerFilter::loadFileExtended().

◆ getAltKeypointsFilename()

QString BundlerImportDlg::getAltKeypointsFilename ( ) const

Gets alternative keypoints filename (full path)

Referenced by BundlerFilter::loadFileExtended().

◆ getDTMVerticesCount()

unsigned BundlerImportDlg::getDTMVerticesCount ( ) const

Returns desired number of vertices for DTM.

Referenced by BundlerFilter::loadFileExtended().

◆ getImageListFilename()

QString BundlerImportDlg::getImageListFilename ( ) const

Gets image list filename (full path)

Referenced by BundlerFilter::loadFileExtended().

◆ getOptionalTransfoMatrix()

bool BundlerImportDlg::getOptionalTransfoMatrix ( ccGLMatrix &  mat)

Returns the optional transformation matrix (if defined)

References ccGLMatrixTpl< T >::data(), ccGLMatrixTpl< float >::FromString(), and ccGLMatrixTpl< T >::toZero().

Referenced by BundlerFilter::loadFileExtended().

◆ getOrthorectificationMethod()

BundlerImportDlg::OrthoRectMethod BundlerImportDlg::getOrthorectificationMethod ( ) const

Returns the ortho-rectification method (for images)

References DIRECT, DIRECT_UNDISTORTED, and OPTIMIZED.

Referenced by BundlerFilter::loadFileExtended().

◆ getScaleFactor()

double BundlerImportDlg::getScaleFactor ( ) const

Returns scale factor.

Referenced by BundlerFilter::loadFileExtended().

◆ importImages()

bool BundlerImportDlg::importImages ( ) const

Returns whether images should be imported.

Referenced by initFromPersistentSettings(), and BundlerFilter::loadFileExtended().

◆ importKeypoints()

bool BundlerImportDlg::importKeypoints ( ) const

Returns whether keypoints should be imported.

Referenced by initFromPersistentSettings(), and BundlerFilter::loadFileExtended().

◆ initFromPersistentSettings()

void BundlerImportDlg::initFromPersistentSettings ( )
protected

Inits dialog state from persistent settings.

References generateColoredDTM(), importImages(), importKeypoints(), keepImagesInMemory(), and undistortImages().

Referenced by BundlerImportDlg().

◆ keepImagesInMemory()

bool BundlerImportDlg::keepImagesInMemory ( ) const

Returns images should be kept in memory or not.

Referenced by initFromPersistentSettings(), and BundlerFilter::loadFileExtended().

◆ orthoRectifyImagesAsClouds()

bool BundlerImportDlg::orthoRectifyImagesAsClouds ( ) const

Returns whether images should be ortho-rectified as clouds.

Referenced by BundlerFilter::loadFileExtended().

◆ orthoRectifyImagesAsImages()

bool BundlerImportDlg::orthoRectifyImagesAsImages ( ) const

Returns whether images should be ortho-rectified as images.

Referenced by BundlerFilter::loadFileExtended().

◆ saveToPersistentSettings()

void BundlerImportDlg::saveToPersistentSettings ( )
protected

Saves dialog state from persistent settings.

◆ setAltKeypointsFilename()

void BundlerImportDlg::setAltKeypointsFilename ( const QString &  filename)

Sets default alternative keypoints filename (full path)

References filename.

Referenced by BundlerFilter::loadFileExtended().

◆ setCamerasCount()

void BundlerImportDlg::setCamerasCount ( unsigned  count)

Sets cameras count on initialization.

References count.

Referenced by BundlerFilter::loadFileExtended().

◆ setImageListFilename()

void BundlerImportDlg::setImageListFilename ( const QString &  filename)

Sets default image list filename (full path)

References filename.

Referenced by BundlerFilter::loadFileExtended().

◆ setKeypointsCount()

void BundlerImportDlg::setKeypointsCount ( unsigned  count)

Sets keypoints count on initialization.

References count.

Referenced by BundlerFilter::loadFileExtended().

◆ setVer()

void BundlerImportDlg::setVer ( unsigned  majorVer,
unsigned  minorVer 
)

Sets file version on initialization.

Referenced by BundlerFilter::loadFileExtended().

◆ undistortImages()

bool BundlerImportDlg::undistortImages ( ) const

Returns whether images should be undistorted.

Referenced by initFromPersistentSettings(), and BundlerFilter::loadFileExtended().

◆ useAlternativeKeypoints()

bool BundlerImportDlg::useAlternativeKeypoints ( ) const

Returns whether alternative keypoints should be used.

Referenced by BundlerFilter::loadFileExtended().


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