Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cpwstep.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  coplanar.cpp
3  --------------
4  begin : Fri May 13 2005
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 "cpwstep.h"
19 
20 
22 {
23  Description = QObject::tr("coplanar step");
24 
25  Lines.append(new Line(-30, 0,-18, 0,QPen(Qt::darkBlue,2)));
26  Lines.append(new Line( 18, 0, 30, 0,QPen(Qt::darkBlue,2)));
27  Lines.append(new Line( 6,-10, 24,-10,QPen(Qt::darkBlue,2)));
28  Lines.append(new Line( -6, 10, 12, 10,QPen(Qt::darkBlue,2)));
29  Lines.append(new Line(-14, -6, 4, -6,QPen(Qt::darkBlue,2)));
30  Lines.append(new Line(-22, 6, -4, 6,QPen(Qt::darkBlue,2)));
31  Lines.append(new Line( 6,-10, 4, -6,QPen(Qt::darkBlue,2)));
32  Lines.append(new Line( -6, 10, -4, 6,QPen(Qt::darkBlue,2)));
33  Lines.append(new Line(-14, -6,-22, 6,QPen(Qt::darkBlue,2)));
34  Lines.append(new Line( 24,-10, 12, 10,QPen(Qt::darkBlue,2)));
35 
36  Lines.append(new Line(-25,-13, 25,-13,QPen(Qt::darkBlue,2)));
37  Lines.append(new Line( 16,-21, 24,-13,QPen(Qt::darkBlue,2)));
38  Lines.append(new Line( 8,-21, 16,-13,QPen(Qt::darkBlue,2)));
39  Lines.append(new Line( 0,-21, 8,-13,QPen(Qt::darkBlue,2)));
40  Lines.append(new Line( -8,-21, 0,-13,QPen(Qt::darkBlue,2)));
41  Lines.append(new Line(-16,-21, -8,-13,QPen(Qt::darkBlue,2)));
42  Lines.append(new Line(-24,-21,-16,-13,QPen(Qt::darkBlue,2)));
43 
44  Lines.append(new Line(-25, 13, 25, 13,QPen(Qt::darkBlue,2)));
45  Lines.append(new Line(-24, 13,-16, 21,QPen(Qt::darkBlue,2)));
46  Lines.append(new Line(-16, 13, -8, 21,QPen(Qt::darkBlue,2)));
47  Lines.append(new Line( -8, 13, 0, 21,QPen(Qt::darkBlue,2)));
48  Lines.append(new Line( 0, 13, 8, 21,QPen(Qt::darkBlue,2)));
49  Lines.append(new Line( 8, 13, 16, 21,QPen(Qt::darkBlue,2)));
50  Lines.append(new Line( 16, 13, 24, 21,QPen(Qt::darkBlue,2)));
51 
52  Lines.append(new Line(-22, -4,-26, 4,QPen(Qt::darkBlue,2)));
53 
54  Ports.append(new Port(-30, 0));
55  Ports.append(new Port( 30, 0));
56 
57  x1 = -30; y1 =-24;
58  x2 = 30; y2 = 24;
59 
60  tx = x1+4;
61  ty = y2+4;
62  Model = "CSTEP";
63  Name = "CL";
64 
65  Props.append(new Property("Subst", "Subst1", true,
66  QObject::tr("name of substrate definition")));
67  Props.append(new Property("W1", "1 mm", true,
68  QObject::tr("width of line 1")));
69  Props.append(new Property("W2", "2 mm", true,
70  QObject::tr("width of line 2")));
71  Props.append(new Property("S", "3 mm", true,
72  QObject::tr("distance between ground planes")));
73  Props.append(new Property("Backside", "Air", false,
74  QObject::tr("material at the backside of the substrate")+
75  " [Metal, Air]"));
76 }
77 
79 {
80 }
81 
83 {
84  return new CPWstep();
85 }
86 
87 Element* CPWstep::info(QString& Name, char* &BitmapFile, bool getNewOne)
88 {
89  Name = QObject::tr("Coplanar Step");
90  BitmapFile = (char *) "cpwstep";
91 
92  if(getNewOne) return new CPWstep();
93  return 0;
94 }
Q3PtrList< Line > Lines
Definition: component.h:67
Component * newOne()
Definition: cpwstep.cpp:82
static Element * info(QString &, char *&, bool getNewOne=false)
Definition: cpwstep.cpp:87
int y1
Definition: element.h:153
int tx
Definition: component.h:78
int y2
Definition: element.h:153
Definition: element.h:72
int x1
Definition: element.h:153
~CPWstep()
Definition: cpwstep.cpp:78
int ty
Definition: component.h:78
Q3PtrList< Property > Props
Definition: component.h:72
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
QString Model
Definition: component.h:80
QString Description
Definition: component.h:81
CPWstep()
Definition: cpwstep.cpp:21
int x2
Definition: element.h:153