HAL
graphics_net.cpp
Go to the documentation of this file.
2 
3 #include "hal_core/netlist/net.h"
4 
5 #include <QPen>
6 
7 namespace hal
8 {
11 
14 
16  {
17  sLineWidth = 1.8;
18  sShapeWidth = 5;
19 
22  }
23 
25  {
26  }
27 
29  {
30  return mRect;
31  }
32 
34  {
35  return mShape;
36  }
37 
39  {
41 
42  mColor = v.color;
43  mPenStyle = v.mPenStyle;
44  mFillIcon = v.mFillIcon;
47  }
48 }
Superclass for all graphic items used ins the GraphicsScene. It contains information about the underl...
Definition: graphics_item.h:44
static void loadSettings()
virtual void setVisuals(const Visuals &v)
QPainterPath shape() const override
QPainterPath mShape
Definition: graphics_net.h:101
Qt::PenStyle mPenStyle
Definition: graphics_net.h:103
static qreal sLineWidth
Definition: graphics_net.h:94
static QPen sPen
Definition: graphics_net.h:97
static QBrush sBrush
Definition: graphics_net.h:98
static qreal sShapeWidth
Definition: graphics_net.h:95
QRectF boundingRect() const override
Qt::BrushStyle mBrushStyle
Definition: graphics_net.h:107
Definition: net.h:58
ItemType
The ItemType enum provides the enum type to classify graphic items into Modules, Gates or Nets....
Definition: gui_def.h:45
n
Definition: test.py:6
void setVisible(bool visible)
void setJoinStyle(Qt::PenJoinStyle style)
void setWidthF(qreal width)
MiterJoin
Qt::BrushStyle mBrushStyle
Definition: graphics_net.h:56