My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
biast.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  biast.cpp - description
3  -------------------
4  begin : Sat Aug 23 2003
5  copyright : (C) 2003 by Michael Margraf
6  email : michael.margraf@alumni.tu-berlin.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "biast.h"
19 
20 
22 {
23  Description = QObject::tr("bias t");
24 
25  Arcs.append(new Arc( -3, 2, 6, 6, 16*270, 16*180,QPen(QPen::darkBlue,1)));
26  Arcs.append(new Arc( -3, 8, 6, 6, 16*270, 16*180,QPen(QPen::darkBlue,1)));
27  Arcs.append(new Arc( -3, 14, 6, 6, 16*270, 16*180,QPen(QPen::darkBlue,1)));
28  Lines.append(new Line(-22,-10, 22,-10,QPen(QPen::darkBlue,1)));
29  Lines.append(new Line(-22,-10,-22, 22,QPen(QPen::darkBlue,1)));
30  Lines.append(new Line(-22, 22, 22, 22,QPen(QPen::darkBlue,1)));
31  Lines.append(new Line( 22,-10, 22, 22,QPen(QPen::darkBlue,1)));
32 
33  Lines.append(new Line(-13, -6,-13, 7,QPen(QPen::darkBlue,2)));
34  Lines.append(new Line( -9, -6, -9, 7,QPen(QPen::darkBlue,2)));
35  Lines.append(new Line( -9, 0, 22, 0,QPen(QPen::darkBlue,1)));
36  Lines.append(new Line(-22, 0,-13, 0,QPen(QPen::darkBlue,1)));
37  Lines.append(new Line(-30, 0,-22, 0,QPen(QPen::darkBlue,2)));
38  Lines.append(new Line( 22, 0, 30, 0,QPen(QPen::darkBlue,2)));
39  Lines.append(new Line( 0, 0, 0, 2,QPen(QPen::darkBlue,1)));
40  Lines.append(new Line( 0, 20, 0, 22,QPen(QPen::darkBlue,1)));
41  Lines.append(new Line( 0, 22, 0, 30,QPen(QPen::darkBlue,2)));
42 
43  Ports.append(new Port(-30, 0));
44  Ports.append(new Port( 30, 0));
45  Ports.append(new Port( 0, 30));
46 
47  x1 = -30; y1 = -13;
48  x2 = 30; y2 = 30;
49 
50  tx = x1+4;
51  ty = y2+4;
52  Model = "BiasT";
53  Name = "X";
54 
55  Props.append(new Property("L", "1 uH", false,
56  QObject::tr("for transient simulation: inductance in Henry")));
57  Props.append(new Property("C", "1 uF", false,
58  QObject::tr("for transient simulation: capacitance in Farad")));
59 }
60 
62 {
63 }
64 
66 {
67  return new BiasT();
68 }
69 
70 Element* BiasT::info(QString& Name, char* &BitmapFile, bool getNewOne)
71 {
72  Name = QObject::tr("Bias T");
73  BitmapFile = (char *) "biast";
74 
75  if(getNewOne) return new BiasT();
76  return 0;
77 }