qCC version 2.13.alpha (Qt) - 31 May 2022
Main CloudCompare application (GUI & command line)
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ccSubsamplingDlg Class Reference

Subsampling cloud dialog. More...

#include <ccSubsamplingDlg.h>

Inheritance diagram for ccSubsamplingDlg:
Inheritance graph
[legend]
Collaboration diagram for ccSubsamplingDlg:
Collaboration graph
[legend]

Public Types

enum  CC_SUBSAMPLING_METHOD { RANDOM = 0 , SPACE = 1 , OCTREE = 2 }
 Sub-sampling method.
 

Public Member Functions

 ccSubsamplingDlg (unsigned maxPointCount, double maxCloudRadius, QWidget *parent=nullptr)
 Default constructor.
 
CCCoreLib::ReferenceCloud * getSampledCloud (ccGenericPointCloud *cloud, CCCoreLib::GenericProgressCallback *progressCb=nullptr)
 Returns subsampled version of a cloud according to current parameters. More...
 
void enableSFModulation (ScalarType sfMin, ScalarType sfMax)
 Enables the SF modulation option (SPATIAL method)
 

Protected Member Functions

void sliderMoved (int sliderPos)
 
void samplingRateChanged (double value)
 
void changeSamplingMethod (int index)
 
void updateLabels ()
 Updates the dialog lables depending on the active mode.
 

Protected Attributes

unsigned m_maxPointCount
 Max point count (for RANDOM method)
 
double m_maxRadius
 Max radius (for SPACE method)
 
bool m_sfModEnabled
 Scalar modulation.
 
ScalarType m_sfMin
 Scalar modulation (min SF value)
 
ScalarType m_sfMax
 Scalar modulation (max SF value)
 
Ui::SubsamplingDialog * m_ui
 

Detailed Description

Subsampling cloud dialog.

Member Function Documentation

◆ getSampledCloud()

CCCoreLib::ReferenceCloud * ccSubsamplingDlg::getSampledCloud ( ccGenericPointCloud *  cloud,
CCCoreLib::GenericProgressCallback *  progressCb = nullptr 
)

Returns subsampled version of a cloud according to current parameters.

Should be called only once the dialog has been validated.


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