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:
[legend]
Collaboration diagram for ccSubsamplingDlg:
[legend]

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::ReferenceCloud * getSampledCloud (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.

Member Enumeration Documentation

◆ CC_SUBSAMPLING_METHOD

Sub-sampling method.

Enumerator
RANDOM 
SPACE 
OCTREE 

Constructor & Destructor Documentation

◆ ccSubsamplingDlg()

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

Default constructor.

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)

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

◆ getSampledCloud()

◆ samplingRateChanged

void ccSubsamplingDlg::samplingRateChanged ( double  value)
protectedslot

References m_sfModEnabled, SPACE, and SPACE_RANGE_EXPONENT.

Referenced by ccSubsamplingDlg().

◆ sliderMoved

void ccSubsamplingDlg::sliderMoved ( int  sliderPos)
protectedslot

◆ updateLabels()

void ccSubsamplingDlg::updateLabels ( )
protected

Updates the dialog labels depending on the active mode.

References OCTREE, RANDOM, and SPACE.

Referenced by changeSamplingMethod().

Member Data Documentation

◆ m_maxPointCount

unsigned ccSubsamplingDlg::m_maxPointCount
protected

Max point count (for RANDOM method)

Referenced by changeSamplingMethod().

◆ m_maxRadius

double ccSubsamplingDlg::m_maxRadius
protected

Max radius (for SPACE method)

Referenced by changeSamplingMethod().

◆ m_sfMax

ScalarType ccSubsamplingDlg::m_sfMax
protected

Scalar modulation (max SF value)

Referenced by enableSFModulation(), and getSampledCloud().

◆ m_sfMin

ScalarType ccSubsamplingDlg::m_sfMin
protected

Scalar modulation (min SF value)

Referenced by enableSFModulation(), and getSampledCloud().

◆ m_sfModEnabled

bool ccSubsamplingDlg::m_sfModEnabled
protected

Scalar modulation.

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


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