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

Subsampling cloud dialog. More...

#include <ecvSubsamplingDlg.h>

Inheritance diagram for ccSubsamplingDlg:
Collaboration diagram for ccSubsamplingDlg:

Public Types

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

Public Member Functions

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

Protected Slots

void sliderMoved (int sliderPos)
 
void samplingRateChanged (double value)
 
void changeSamplingMethod (int index)
 

Protected Member Functions

void updateLabels ()
 Updates the dialog labels depending on the active mode. More...
 

Protected Attributes

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

Detailed Description

Subsampling cloud dialog.

Definition at line 23 of file ecvSubsamplingDlg.h.

Member Enumeration Documentation

◆ CC_SUBSAMPLING_METHOD

Sub-sampling method.

Enumerator
RANDOM 
SPACE 
OCTREE 

Definition at line 28 of file ecvSubsamplingDlg.h.

Constructor & Destructor Documentation

◆ ccSubsamplingDlg()

ccSubsamplingDlg::ccSubsamplingDlg ( unsigned  maxPointCount,
double  maxCloudRadius,
QWidget *  parent = 0 
)

Default constructor.

Definition at line 25 of file ecvSubsamplingDlg.cpp.

References changeSamplingMethod(), samplingRateChanged(), and sliderMoved().

Member Function Documentation

◆ changeSamplingMethod

void ccSubsamplingDlg::changeSamplingMethod ( int  index)
protectedslot

◆ enableSFModulation()

void ccSubsamplingDlg::enableSFModulation ( ScalarType  sfMin,
ScalarType  sfMax 
)

Enables the SF modulation option (SPATIAL method)

Definition at line 243 of file ecvSubsamplingDlg.cpp.

References m_sfMax, m_sfMin, m_sfModEnabled, SPACE, cloudViewer::ScalarField::ValidValue(), and CVLog::Warning().

◆ getSampledCloud()

◆ samplingRateChanged

void ccSubsamplingDlg::samplingRateChanged ( double  value)
protectedslot

Definition at line 171 of file ecvSubsamplingDlg.cpp.

References m_sfModEnabled, SPACE, and SPACE_RANGE_EXPONENT.

Referenced by ccSubsamplingDlg().

◆ sliderMoved

void ccSubsamplingDlg::sliderMoved ( int  sliderPos)
protectedslot

Definition at line 157 of file ecvSubsamplingDlg.cpp.

References SPACE, and SPACE_RANGE_EXPONENT.

Referenced by ccSubsamplingDlg(), and changeSamplingMethod().

◆ updateLabels()

void ccSubsamplingDlg::updateLabels ( )
protected

Updates the dialog labels depending on the active mode.

Definition at line 135 of file ecvSubsamplingDlg.cpp.

References OCTREE, RANDOM, and SPACE.

Referenced by changeSamplingMethod().

Member Data Documentation

◆ m_maxPointCount

unsigned ccSubsamplingDlg::m_maxPointCount
protected

Max point count (for RANDOM method)

Definition at line 61 of file ecvSubsamplingDlg.h.

Referenced by changeSamplingMethod().

◆ m_maxRadius

double ccSubsamplingDlg::m_maxRadius
protected

Max radius (for SPACE method)

Definition at line 64 of file ecvSubsamplingDlg.h.

Referenced by changeSamplingMethod().

◆ m_sfMax

ScalarType ccSubsamplingDlg::m_sfMax
protected

Scalar modulation (max SF value)

Definition at line 71 of file ecvSubsamplingDlg.h.

Referenced by enableSFModulation(), and getSampledCloud().

◆ m_sfMin

ScalarType ccSubsamplingDlg::m_sfMin
protected

Scalar modulation (min SF value)

Definition at line 69 of file ecvSubsamplingDlg.h.

Referenced by enableSFModulation(), and getSampledCloud().

◆ m_sfModEnabled

bool ccSubsamplingDlg::m_sfModEnabled
protected

Scalar modulation.

Definition at line 67 of file ecvSubsamplingDlg.h.

Referenced by changeSamplingMethod(), enableSFModulation(), and samplingRateChanged().


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