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

M3C2 plugin's main dialog. More...

#include <qM3C2Dialog.h>

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

Public Types

enum  ExportOptions { PROJECT_ON_CLOUD1, PROJECT_ON_CLOUD2, PROJECT_ON_CORE_POINTS }
 Exportation options. More...
 

Public Member Functions

 qM3C2Dialog (ccPointCloud *cloud1, ccPointCloud *cloud2, ecvMainAppInterface *app)
 Default constructor. More...
 
ccPointCloud * getCloud1 () const
 Returns cloud #1. More...
 
ccPointCloud * getCloud2 () const
 Returns cloud #2. More...
 
ccPointCloud * getCorePointsCloud () const
 Get core points cloud (if any) More...
 
void setCorePointsCloud (ccPointCloud *cloud)
 Sets the core points cloud. More...
 
ccPointCloud * getNormalsOrientationCloud () const
 Returns the cloud to be used for normals orientation (if any) More...
 
qM3C2Normals::ComputationMode getNormalsComputationMode () const
 Returns selected normals computation mode. More...
 
unsigned getMinPointsForStats (unsigned defaultValue=5) const
 
ExportOptions getExportOption () const
 Returns selected export option. More...
 
bool keepOriginalCloud () const
 
int getMaxThreadCount () const
 Returns the max number of threads to use. More...
 
bool loadParamsFromFile (QString filename)
 Loads parameters from persistent settings. More...
 
void loadParamsFromPersistentSettings ()
 Loads parameters from persistent settings. More...
 
void saveParamsToPersistentSettings ()
 Saves parameters to persistent settings. More...
 

Protected Slots

void swapClouds ()
 
void setCloud1Visibility (bool)
 
void setCloud2Visibility (bool)
 
void saveParamsToFile ()
 
void loadParamsFromFile ()
 
void guessParamsSlow ()
 
void projDestIndexChanged (int)
 
void onUpdateNormalComboBoxChanged (int)
 
void updateNormalComboBox ()
 Updates the normalSourceComboBox. More...
 

Protected Member Functions

void guessParams (bool fastMode)
 Guess parameters from the cloud #1. More...
 
void setClouds (ccPointCloud *cloud1, ccPointCloud *cloud2)
 Sets clouds. More...
 
void loadParamsFrom (const QSettings &settings)
 Load parameters from QSettings. More...
 
void saveParamsTo (QSettings &settings)
 Saves parameters to QSettings. More...
 
void setupPrecisionMapsTab ()
 Setups the precision maps tab. More...
 

Protected Attributes

ecvMainAppInterface * m_app
 
ccPointCloud * m_cloud1
 
ccPointCloud * m_cloud2
 
ccPointCloud * m_corePointsCloud
 

Detailed Description

M3C2 plugin's main dialog.

Member Enumeration Documentation

◆ ExportOptions

Exportation options.

Enumerator
PROJECT_ON_CLOUD1 
PROJECT_ON_CLOUD2 
PROJECT_ON_CORE_POINTS 

Constructor & Destructor Documentation

◆ qM3C2Dialog()

Member Function Documentation

◆ getCloud1()

ccPointCloud* qM3C2Dialog::getCloud1 ( ) const
inline

Returns cloud #1.

References m_cloud1.

Referenced by qM3C2Process::Compute(), and define_m3c2_plugin().

◆ getCloud2()

ccPointCloud* qM3C2Dialog::getCloud2 ( ) const
inline

Returns cloud #2.

References m_cloud2.

Referenced by qM3C2Process::Compute(), and define_m3c2_plugin().

◆ getCorePointsCloud()

ccPointCloud * qM3C2Dialog::getCorePointsCloud ( ) const

Get core points cloud (if any)

Returns either cloud #1 or the cloud specified in the combo box. It can also return a null pointer if the user has requested sub-sampling.

References ecvMainAppInterface::dbRootObject(), GetCloudFromCombo(), m_app, m_cloud1, and m_corePointsCloud.

Referenced by qM3C2Process::Compute(), and define_m3c2_plugin().

◆ getExportOption()

qM3C2Dialog::ExportOptions qM3C2Dialog::getExportOption ( ) const

◆ getMaxThreadCount()

int qM3C2Dialog::getMaxThreadCount ( ) const

Returns the max number of threads to use.

Referenced by qM3C2Process::Compute(), and define_m3c2_plugin().

◆ getMinPointsForStats()

unsigned qM3C2Dialog::getMinPointsForStats ( unsigned  defaultValue = 5) const

Returns the minimum number of points to compute stats (confidence mainly)

Referenced by qM3C2Process::Compute(), and guessParams().

◆ getNormalsComputationMode()

◆ getNormalsOrientationCloud()

ccPointCloud * qM3C2Dialog::getNormalsOrientationCloud ( ) const

Returns the cloud to be used for normals orientation (if any)

References ecvMainAppInterface::dbRootObject(), GetCloudFromCombo(), and m_app.

Referenced by qM3C2Process::Compute(), and define_m3c2_plugin().

◆ guessParams()

◆ guessParamsSlow

void qM3C2Dialog::guessParamsSlow ( )
inlineprotectedslot

References guessParams().

Referenced by qM3C2Dialog().

◆ keepOriginalCloud()

bool qM3C2Dialog::keepOriginalCloud ( ) const

Returns whether the original cloud should be kept instead of creating a new output one Only valid if the export option is PROJECT_ON_CORE_POINTS.

Referenced by qM3C2Process::Compute(), and define_m3c2_plugin().

◆ loadParamsFrom()

◆ loadParamsFromFile [1/2]

void qM3C2Dialog::loadParamsFromFile ( )
protectedslot

◆ loadParamsFromFile() [2/2]

bool qM3C2Dialog::loadParamsFromFile ( QString  filename)

Loads parameters from persistent settings.

References filename, and loadParamsFrom().

Referenced by CommandM3C2::process().

◆ loadParamsFromPersistentSettings()

void qM3C2Dialog::loadParamsFromPersistentSettings ( )

Loads parameters from persistent settings.

References loadParamsFrom().

Referenced by define_m3c2_plugin(), and qM3C2Dialog().

◆ onUpdateNormalComboBoxChanged

void qM3C2Dialog::onUpdateNormalComboBoxChanged ( int  )
protectedslot

◆ projDestIndexChanged

void qM3C2Dialog::projDestIndexChanged ( int  index)
protectedslot

References getExportOption(), and PROJECT_ON_CORE_POINTS.

Referenced by qM3C2Dialog().

◆ saveParamsTo()

void qM3C2Dialog::saveParamsTo ( QSettings &  settings)
protected

Saves parameters to QSettings.

References getNormalsComputationMode().

Referenced by saveParamsToFile(), and saveParamsToPersistentSettings().

◆ saveParamsToFile

void qM3C2Dialog::saveParamsToFile ( )
protectedslot

◆ saveParamsToPersistentSettings()

void qM3C2Dialog::saveParamsToPersistentSettings ( )

Saves parameters to persistent settings.

References saveParamsTo().

Referenced by define_m3c2_plugin().

◆ setCloud1Visibility

void qM3C2Dialog::setCloud1Visibility ( bool  state)
protectedslot

◆ setCloud2Visibility

void qM3C2Dialog::setCloud2Visibility ( bool  state)
protectedslot

◆ setClouds()

void qM3C2Dialog::setClouds ( ccPointCloud *  cloud1,
ccPointCloud *  cloud2 
)
protected

◆ setCorePointsCloud()

void qM3C2Dialog::setCorePointsCloud ( ccPointCloud *  cloud)
inline

Sets the core points cloud.

References m_corePointsCloud.

Referenced by define_m3c2_plugin(), and CommandM3C2::process().

◆ setupPrecisionMapsTab()

void qM3C2Dialog::setupPrecisionMapsTab ( )
protected

Setups the precision maps tab.

Warning
'setClouds' must have been already called

References ccPointCloud::hasScalarFields(), m_cloud1, m_cloud2, and PopulatePMFields().

Referenced by setClouds().

◆ swapClouds

void qM3C2Dialog::swapClouds ( )
protectedslot

◆ updateNormalComboBox

void qM3C2Dialog::updateNormalComboBox ( )
protectedslot

Member Data Documentation

◆ m_app

◆ m_cloud1

◆ m_cloud2

◆ m_corePointsCloud

ccPointCloud* qM3C2Dialog::m_corePointsCloud
protected

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