#ifndef SETPICCLRTOOL_H #define SETPICCLRTOOL_H //#include "colorlinesetdef.h" #include namespace Ui { class setPicClrTool; } class setPicClrTool : public QDialog { Q_OBJECT public: explicit setPicClrTool(QWidget *parent = nullptr); ~setPicClrTool(); void getGrayTable(uchar* table, size_t length = 256); void getRGBTable(uchar* table, size_t length = 768); // void setGrayTable(const uchar* table, size_t length = 256); // void setRGBTable(const uchar* table, size_t length = 768); void setColorMode(int colorMode); QVector> getRGBKeyTable(); void setRGBKeyTable(QVector>& plv); QList getGrayKeyTable(); void setGrayKeyTable(QList &plv); private: QVector getRgbALLPoint(); QVector getRedALLPoint(); QVector getBlueALLPoint(); QVector getGreenALLPoint(); QVector getGrayALLPoint(); QList getRgbKeyPoint()const; void setRgbKeyPoint(const QList& pVec); QList getRedKeyPoint()const; void setRedKeyPoint(const QList& pVec); QList getBlueKeyPoint()const; void setBlueKeyPoint(const QList& pVec); QList getGreenKeyPoint()const; void setGreenKeyPoint(const QList& pVec); QList getGrayKeyPoint()const; void setGrayKeyPoint(const QList& pVec); private slots: void mouseCoordSlot(QPoint);//set QLineEdit value by QPoint setting void lineEditEnable(bool);//set 2 LineEdit enable status void lineChangeSlot(); void on_colorSetCmb_currentIndexChanged(int index); void on_comboBox_currentIndexChanged(int index); void on_inputEdt_textChanged(const QString &arg1); void on_outputEdt_textChanged(const QString &arg1); void on_pushButton_clicked(); void on_buttonBox_accepted(); void on_buttonBox_rejected(); private: Ui::setPicClrTool *ui; QList linePoint; QList greenLine; QList redLine; QList blueLine; QList rgbLine; QList grayLine; }; #endif // SETPICCLRTOOL_H