#ifndef GREYCLUSTERINGSAMPLETABLE_H #define GREYCLUSTERINGSAMPLETABLE_H #include #include #include #include struct GreyRange { QString name; bool leftClose; // 左闭合 double leftValue; bool rightClose; // 右闭合 double rightValue; }; struct GreyClusteringValue { QString units; // 单位 double weiget; QVector greyRanges; // 灰类 double leftExtension; // 延拓值左 double rightExtension; // 延拓值右 double oldValue; // 实现值改前 double newValue; // 实现值改后 }; struct GreyClusteringItem { QString indexName; // 指标名字 int row; int col; int rowSpan; int colSpan; QSharedPointer value; }; class GreyClusteringSampleTable : public QTableView { Q_OBJECT public: GreyClusteringSampleTable(const QVector &gcItems, int nodeDepth, int rowNodes, QWidget *parent = nullptr); void refreshTableView(); private: void init(); private: QVector m_greyClusterings; QStandardItemModel *m_model; int m_nodeDepth; // 节点深度 int m_rowNodes; // }; #endif // GREYCLUSTERINGSAMPLETABLE_H