8 uint retval = ( p.
x() << 16);
9 retval |= ( p.
y() & 0xFFFF);
17 : mNode(
n), mX(px), mY(py),
19 mInputPadding(sMinimumGateIoPadding),
20 mOutputPadding(sMinimumGateIoPadding)
65 mNodeHash.insert(nd,nbox);
66 mPointHash.insert(
QPoint(px,py),nbox);
67 mItemHash.insert(nbox->
item(),nbox);
72 if (
g) mGateHash.insert(
g,nbox);
79 if (ig) mGateHash.insert(ig,nbox);
86 for (
u32 gateId : gats)
96 uint retval = (
n.id() << 1);
const std::vector< Gate * > & get_gates() const
Gate * get_gate_by_id(const u32 gate_id) const
Module * get_module_by_id(u32 module_id) const
The NodeBox class represents a node placed at a grid position within a hal view.
GraphicsNode * item() const
item getter for graphics item object
NodeBox(const Node &n, int px, int py)
NodeBox constructor creates graphic item.
void setItemPosition(qreal xpos, qreal ypos)
setItemPosition place item on scene at real position
Node getNode() const
getNode getter for node information
Node::NodeType type() const
type getter for type information
u32 id() const
id getter for ID information
void addBox(const Node &nd, int px, int py)
addBox call NodeBox constructor and store pointer in vector
QSet< u32 > filterNotInView(const QSet< u32 > &gats) const
void clearBoxes()
clearBoxes delete all NodeBox'es and clear vector.
The Node class object represents a module or a gate.
bool isModule() const
isModule test wheter node is a module
bool isGate() const
isGate test whether node is a gate
GraphicsModule * createGraphicsModule(Module *m, const int type)
GraphicsGate * createGraphicsGate(Gate *g, const int type)
uint qHash(const LaneIndex &ri)
uint qHash(const QPoint &p)
void setPos(const QPointF &pos)
QSet::iterator insert(const T &value)
void append(const T &value)