Qucs-GUI  0.0.18
 All Data Structures 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(Qt::darkBlue,1)));
26  Arcs.append(new Arc( -3, 8, 6, 6, 16*270, 16*180,QPen(Qt::darkBlue,1)));
27  Arcs.append(new Arc( -3, 14, 6, 6, 16*270, 16*180,QPen(Qt::darkBlue,1)));
28  Lines.append(new Line(-22,-10, 22,-10,QPen(Qt::darkBlue,1)));
29  Lines.append(new Line(-22,-10,-22, 22,QPen(Qt::darkBlue,1)));
30  Lines.append(new Line(-22, 22, 22, 22,QPen(Qt::darkBlue,1)));
31  Lines.append(new Line( 22,-10, 22, 22,QPen(Qt::darkBlue,1)));
32 
33  Lines.append(new Line(-13, -6,-13, 7,QPen(Qt::darkBlue,2)));
34  Lines.append(new Line( -9, -6, -9, 7,QPen(Qt::darkBlue,2)));
35  Lines.append(new Line( -9, 0, 22, 0,QPen(Qt::darkBlue,1)));
36  Lines.append(new Line(-22, 0,-13, 0,QPen(Qt::darkBlue,1)));
37  Lines.append(new Line(-30, 0,-22, 0,QPen(Qt::darkBlue,2)));
38  Lines.append(new Line( 22, 0, 30, 0,QPen(Qt::darkBlue,2)));
39  Lines.append(new Line( 0, 0, 0, 2,QPen(Qt::darkBlue,1)));
40  Lines.append(new Line( 0, 20, 0, 22,QPen(Qt::darkBlue,1)));
41  Lines.append(new Line( 0, 22, 0, 30,QPen(Qt::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 }
Q3PtrList< Line > Lines
Definition: component.h:67
Definition: element.h:55
Component * newOne()
Definition: biast.cpp:65
int y1
Definition: element.h:153
Q3PtrList< struct Arc > Arcs
Definition: component.h:68
int tx
Definition: component.h:78
int y2
Definition: element.h:153
Definition: element.h:72
int x1
Definition: element.h:153
int ty
Definition: component.h:78
Q3PtrList< Property > Props
Definition: component.h:72
~BiasT()
Definition: biast.cpp:61
Definition: element.h:48
Superclass of all schematic drawing elements.
Definition: element.h:142
Q3PtrList< Port > Ports
Definition: component.h:70
QString Name
Definition: component.h:80
static Element * info(QString &, char *&, bool getNewOne=false)
Definition: biast.cpp:70
QString Model
Definition: component.h:80
QString Description
Definition: component.h:81
int x2
Definition: element.h:153
BiasT()
Definition: biast.cpp:21