52 lines
1.0 KiB
C
52 lines
1.0 KiB
C
|
|
#ifndef SMOOTHTOOL_H
|
|||
|
|
#define SMOOTHTOOL_H
|
|||
|
|
|
|||
|
|
#include <QDialog>
|
|||
|
|
|
|||
|
|
namespace Ui {
|
|||
|
|
class SmoothTool;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
class SmoothTool : public QDialog
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
|
|||
|
|
signals:
|
|||
|
|
void sendDataSmoothSign(float,float,int,int,int);
|
|||
|
|
void cancelSmooth();
|
|||
|
|
void SaveSmooth();
|
|||
|
|
public:
|
|||
|
|
explicit SmoothTool(QDialog *parent = 0);
|
|||
|
|
~SmoothTool();
|
|||
|
|
|
|||
|
|
void setSmoothDep(float rsd, float red, float sd, float ed);
|
|||
|
|
void setSliderValue(int);
|
|||
|
|
void setLineEditable();
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
float Sdep, edep, realSdep, realEdep; //ƽ<><C6BD><EFBFBD><EFBFBD><EFBFBD>ȷ<EFBFBD>Χ<EFBFBD><CEA7> ʵ<>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>ȷ<EFBFBD>Χ
|
|||
|
|
int maxSmoothCount;//ƽ<><C6BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
int mode, cal;
|
|||
|
|
|
|||
|
|
void depCheck();
|
|||
|
|
void setmaxSmoothCount(int c);
|
|||
|
|
void sliderChange();
|
|||
|
|
|
|||
|
|
public slots:
|
|||
|
|
void sdepChange_SLOT();
|
|||
|
|
void edepChange_SLOT();
|
|||
|
|
void Sm3_SLOT(bool a);
|
|||
|
|
void Sm5_SLOT(bool a);
|
|||
|
|
void Sm7_SLOT(bool a);
|
|||
|
|
void SmJ_SLOT(bool a);
|
|||
|
|
void SmZ_SLOT(bool a);
|
|||
|
|
void SmG_SLOT(bool a);
|
|||
|
|
void SmU_SLOT(bool a);
|
|||
|
|
void smoothApplication_SLOT();
|
|||
|
|
void rejectSmooth_SLOT();
|
|||
|
|
void acceptSmooth_SLOT();
|
|||
|
|
private:
|
|||
|
|
Ui::SmoothTool *Sm_UI;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif // SMOOTHTOOL_H
|