MCPcopy Create free account
hub / github.com/Qucs/qucs / dcBlock

Method dcBlock

qucs/components/dcblock.cpp:20–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include "dcblock.h"
19
20dcBlock::dcBlock()
21{
22 Description = QObject::tr("dc block");
23
24 Lines.append(new Line(- 4,-11, -4, 11,QPen(Qt::darkBlue,4)));
25 Lines.append(new Line( 4,-11, 4, 11,QPen(Qt::darkBlue,4)));
26 Lines.append(new Line(-30, 0, -4, 0,QPen(Qt::darkBlue,2)));
27 Lines.append(new Line( 4, 0, 30, 0,QPen(Qt::darkBlue,2)));
28
29 Lines.append(new Line(-23,-14, 23,-14,QPen(Qt::darkBlue,1)));
30 Lines.append(new Line(-23, 14, 23, 14,QPen(Qt::darkBlue,1)));
31 Lines.append(new Line(-23,-14,-23, 14,QPen(Qt::darkBlue,1)));
32 Lines.append(new Line( 23,-14, 23, 14,QPen(Qt::darkBlue,1)));
33
34 Ports.append(new Port(-30, 0));
35 Ports.append(new Port( 30, 0));
36
37 x1 = -30; y1 = -16;
38 x2 = 30; y2 = 17;
39
40 tx = x1+4;
41 ty = y2+4;
42 Model = "DCBlock";
43 Name = "C";
44
45 Props.append(new Property("C", "1 uF", false,
46 QObject::tr("for transient simulation: capacitance in Farad")));
47}
48
49dcBlock::~dcBlock()
50{

Callers

nothing calls this directly

Calls 1

QPenClass · 0.85

Tested by

no test coverage detected