2023-12-22 00:26:28 +01:00
|
|
|
#ifndef QG3POINTDIALOG_H
|
|
|
|
|
#define QG3POINTDIALOG_H
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class qG3PointDialog;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-22 10:56:59 +01:00
|
|
|
class G3PointDialog : public QDialog
|
2023-12-22 00:26:28 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2024-02-23 17:34:34 +01:00
|
|
|
explicit G3PointDialog(QString cloudName, QWidget *parent = nullptr);
|
2023-12-22 10:56:59 +01:00
|
|
|
~G3PointDialog();
|
2024-02-29 16:46:34 +01:00
|
|
|
|
2024-02-23 17:34:34 +01:00
|
|
|
void emitSegment(){emit segment();}
|
2024-04-16 16:30:25 +02:00
|
|
|
void emitClusterAndOrClean(){emit clusterAndOrClean();}
|
2024-02-29 16:46:34 +01:00
|
|
|
void emitGetBorders(){emit getBorders();}
|
|
|
|
|
|
2024-03-26 17:24:03 +01:00
|
|
|
void emitAllClicked(bool state){emit allClicked(state);}
|
|
|
|
|
void emitOnlyOneClicked(bool state){emit onlyOneClicked(state);}
|
|
|
|
|
void emitOnlyOneChanged(int idx){emit onlyOneChanged(idx);}
|
|
|
|
|
void emitFit(){emit fit();}
|
|
|
|
|
void emitTransparencyChanged(double transparency){emit transparencyChanged(transparency);}
|
2024-03-27 17:27:50 +01:00
|
|
|
void emitDrawSurfaces(bool state){emit drawSurfaces(state);}
|
|
|
|
|
void emitDrawLines(bool state){emit drawLines(state);}
|
|
|
|
|
void emitDrawPoints(bool state){emit drawPoints(state);}
|
|
|
|
|
void emitGLPointSizeChanged(int size){emit glPointSize(size);}
|
2024-03-26 17:24:03 +01:00
|
|
|
|
|
|
|
|
void emitSignals();
|
|
|
|
|
|
2024-02-23 17:34:34 +01:00
|
|
|
double getMaxAngle1();
|
2024-02-29 16:46:34 +01:00
|
|
|
double getMaxAngle2();
|
|
|
|
|
double getMinFlatness();
|
|
|
|
|
int getNMin();
|
2023-12-22 00:26:28 +01:00
|
|
|
int getkNN();
|
2024-02-23 17:34:34 +01:00
|
|
|
double getRadiusFactor();
|
2024-02-29 16:46:34 +01:00
|
|
|
|
2023-12-22 10:56:59 +01:00
|
|
|
bool isSteepestSlope();
|
2024-04-16 16:30:25 +02:00
|
|
|
void enableClusterAndOrClean(bool state);
|
|
|
|
|
bool clusterIsEnabled();
|
|
|
|
|
bool cleanIsEnabled();
|
2023-12-22 00:26:28 +01:00
|
|
|
|
2024-03-26 17:24:03 +01:00
|
|
|
void setOnlyOneMax(int idx);
|
2024-03-27 17:27:50 +01:00
|
|
|
void enableDrawPointsForOnlyOneGrain(bool state);
|
2024-03-26 17:24:03 +01:00
|
|
|
|
2023-12-22 00:26:28 +01:00
|
|
|
signals:
|
2024-02-23 17:34:34 +01:00
|
|
|
void segment();
|
2024-04-16 16:30:25 +02:00
|
|
|
void clusterAndOrClean();
|
2024-02-29 16:46:34 +01:00
|
|
|
void getBorders();
|
2024-03-27 17:27:50 +01:00
|
|
|
void fit();
|
2023-12-22 00:26:28 +01:00
|
|
|
|
2024-03-26 17:24:03 +01:00
|
|
|
void allClicked(bool state);
|
|
|
|
|
void onlyOneClicked(bool state);
|
|
|
|
|
void onlyOneChanged(int idx);
|
|
|
|
|
void transparencyChanged(double transparency);
|
2024-03-27 17:27:50 +01:00
|
|
|
void drawSurfaces(bool state);
|
|
|
|
|
void drawLines(bool state);
|
|
|
|
|
void drawPoints(bool state);
|
|
|
|
|
void glPointSize(int size);
|
2024-03-26 17:24:03 +01:00
|
|
|
|
2023-12-22 00:26:28 +01:00
|
|
|
private:
|
|
|
|
|
Ui::qG3PointDialog *ui;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // QG3POINTDIALOG_H
|