1 Star 0 Fork 68

新无止竞/图与网络优化_Qt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nsmvertex.h 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
ZzqiZQute 提交于 2018-06-25 21:36 . 20186252136
#ifndef NSMVERTEX_H
#define NSMVERTEX_H
#include <QList>
#include <QFontMetrics>
class NSMVertexParam;
class NSMVertex
{
public:
NSMVertex();
NSMVertex(int b);
~NSMVertex();
QList<NSMVertexParam *> *getParams() const;
void addVertexParams(NSMVertexParam *vp);
void removeVertexParamsAt(int pos);
int getB() const;
void setB(int value);
int getPi() const;
void setPi(int value);
int getCenterX() const;
void setCenterX(int value);
int getCenterY() const;
void setCenterY(int value);
bool getSelected() const;
void setSelected(bool value);
int getOriCenterX() const;
void setOriCenterX(int value);
int getOriCenterY() const;
void setOriCenterY(int value);
void saveCenter();
void saveBCenter();
void savePiCenter();
int getBCenterX() const;
void setBCenterX(int value);
int getBCenterY() const;
void setBCenterY(int value);
int getBWidth() const;
void setBWidth(int value);
int getBOriCenterX() const;
void setBOriCenterX(int value);
int getBOriCenterY() const;
void setBOriCenterY(int value);
int getPiCenterX() const;
void setPiCenterX(int value);
int getPiCenterY() const;
void setPiCenterY(int value);
int getPiOriCenterX() const;
void setPiOriCenterX(int value);
int getPiOriCenterY() const;
void setPiOriCenterY(int value);
int getPiWidth() const;
void setPiWidth(int value);
int getLabelPos() const;
void setLabelPos(int value);
bool getBClicked() const;
void setBClicked(bool value);
private:
QList<NSMVertexParam*> *params;
int b;
int pi;
int labelPos;
int centerX;
int centerY;
bool selected;
int oriCenterX;
int oriCenterY;
int bCenterX;
int bCenterY;
int bOriCenterX;
int bOriCenterY;
int bWidth;
int piCenterX;
int piCenterY;
int piOriCenterX;
int piOriCenterY;
int piWidth;
bool bClicked;
QFontMetrics* metrics;
};
#endif // NSMVERTEX_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/huiwei13/graph_and_network_optimization_qt.git
[email protected]:huiwei13/graph_and_network_optimization_qt.git
huiwei13
graph_and_network_optimization_qt
图与网络优化_Qt
master

搜索帮助