代码拉取完成,页面将自动刷新
#ifndef LNODE_H
#define LNODE_H
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QGraphicsItem>
#include <QBrush>
#include "myarrowitem.h"
class LinkList;
class CLinkList;
class LNode
{
public:
LNode(QString dt, LNode *nt); //构造函数
~LNode(); //析构函数
void setValueRect(QGraphicsRectItem* vRect);
void setPointerRect(QGraphicsRectItem* pRect);
void setTextRect(QGraphicsTextItem* vText);
void setArrowVector(std::vector<MyArrowItem*> aVector);
void setNodeStatus(QBrush brush);
void removeAll(QGraphicsScene *scene);
protected:
QString data; //节点数据域
LNode * next; //节点指针域
//节点图形项
QGraphicsRectItem * valueRect, *pointerRect;
QGraphicsTextItem * valueText, *pointerText;
std::vector<MyArrowItem*> arrowVector;
public:
friend class LinkList;
friend class CLinkList;
};
#endif // LNODE_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。