HAL
separated_graphics_net.cpp
Go to the documentation of this file.
2 
3 #include "hal_core/netlist/net.h"
4 
6 
7 namespace hal
8 {
10 
12  {
13  if (sLod >= graph_widget_constants::sNetFadeInLod && sLod <= graph_widget_constants::sNetFadeOutLod)
14  sAlpha = (sLod - graph_widget_constants::sNetFadeInLod) / (graph_widget_constants::sNetFadeOutLod - graph_widget_constants::sNetFadeInLod);
15  else
16  sAlpha = 1;
17  }
18 
20  {
21  }
22 
24  {
25  // RECT INTENTIONALLY SET SLIGHTLY TOO BIG
28  }
29 }
static qreal sLod
Definition: graphics_item.h:93
The basic net class all other nets inherit from.
Definition: graphics_net.h:43
QPainterPath mShape
Definition: graphics_net.h:101
static qreal sLineWidth
Definition: graphics_net.h:94
Definition: net.h:58
n
Definition: test.py:6
QRectF boundingRect() const const
void adjust(qreal dx1, qreal dy1, qreal dx2, qreal dy2)