ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvLabelingDlg.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include "ecvLabelingDlg.h"
9 
10 // CV_CORE_LIB
11 #include <DgmOctree.h>
12 
13 ccLabelingDlg::ccLabelingDlg(QWidget* parent /*=0*/)
14  : QDialog(parent, Qt::Tool), Ui::LabelingDialog() {
15  setupUi(this);
16 
17  octreeLevelSpinBox->setMaximum(cloudViewer::DgmOctree::MAX_OCTREE_LEVEL);
18 }
19 
20 int ccLabelingDlg::getOctreeLevel() { return octreeLevelSpinBox->value(); }
21 
22 int ccLabelingDlg::getMinPointsNb() { return minPtsSpinBox->value(); }
23 
25  return (randomColorsCheckBox->checkState() == Qt::Checked);
26 }
bool randomColors()
Specifies whether each extracted CC should get a random color.
int getOctreeLevel()
Returns octree level (defines grid step)
int getMinPointsNb()
Returns min number of points per extracted CC.
ccLabelingDlg(QWidget *parent=0)
Default constructor.
static const int MAX_OCTREE_LEVEL
Max octree subdivision level.
Definition: DgmOctree.h:67