11 #include <QDialogButtonBox>
12 #include <QPushButton>
15 : QDialog(parent, Qt::Tool),
Ui::GeomFeaturesDialog() {
26 Option(firstOrderMomentCheckBox,
45 Option(densitySurfCheckBox,
56 Option(eigOmnivarianceCheckBox,
60 Option(eigenentropyCheckBox,
64 Option(eigAnisotropyCheckBox,
71 Option(eigLinearityCheckBox,
81 Option(eigSurfaceVarCheckBox,
85 Option(eigSphericityCheckBox,
89 Option(eigVerticalityCheckBox,
93 Option(eigenvalue1CheckBox,
97 Option(eigenvalue2CheckBox,
101 Option(eigenvalue3CheckBox,
110 upDirXDoubleSpinBox->setValue(upDir.
x);
111 upDirYDoubleSpinBox->setValue(upDir.
y);
112 upDirZDoubleSpinBox->setValue(upDir.
z);
113 upDirGroupBox->setChecked(
true);
117 if (roughnessCheckBox->isChecked() && upDirGroupBox->isChecked()) {
138 if (opt.charac == f.charac && opt.subOption == f.subOption) {
139 opt.checkBox->setChecked(
true);
154 assert(opt.checkBox);
155 if (opt.checkBox && opt.checkBox->isChecked())
156 features.push_back(opt);
158 features.shrink_to_fit();
159 }
catch (
const std::bad_alloc&) {
166 return radiusDoubleSpinBox->value();
170 radiusDoubleSpinBox->setValue(r);
float PointCoordinateType
Type of the coordinates of a (N-D) point.
CCVector3 * getUpDirection() const
Returns the 'up direction' if any is defined (nullptr otherwise)
void setUpDirection(const CCVector3 &upDir)
Sets the 'up direction' (and enables the group at the same time)
bool getSelectedFeatures(ccLibAlgorithms::GeomCharacteristicSet &features) const
Returns selected features.
void reset()
reset the whole dialog
void setSelectedFeatures(const ccLibAlgorithms::GeomCharacteristicSet &features)
Sets selected features.
double getRadius() const
Returns the kernel radius (for 'precise' mode only)
ccGeomFeaturesDlg(QWidget *parent=nullptr)
Default constructor.
std::vector< Option > m_options
void setRadius(double r)
Sets the default kernel radius (for 'precise' mode only)
std::vector< GeomCharacteristic > GeomCharacteristicSet
Set of GeomCharacteristic instances.
Geometric characteristic (with sub option)