Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
msgap.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  msgap.cpp - description
3  -------------------
4  begin : Sat Jul 17 2004
5  copyright : (C) 2004 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 "msgap.h"
19 
20 
22 {
23  Description = QObject::tr("microstrip gap");
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(-13, -8, 0, -8,QPen(Qt::darkBlue,2)));
28  Lines.append(new Line( 10, -8, 23, -8,QPen(Qt::darkBlue,2)));
29  Lines.append(new Line(-23, 8,-10, 8,QPen(Qt::darkBlue,2)));
30  Lines.append(new Line( 0, 8, 13, 8,QPen(Qt::darkBlue,2)));
31 
32  Lines.append(new Line(-13, -8,-23, 8,QPen(Qt::darkBlue,2)));
33  Lines.append(new Line( 23, -8, 13, 8,QPen(Qt::darkBlue,2)));
34  Lines.append(new Line( 0, -8,-10, 8,QPen(Qt::darkBlue,2)));
35  Lines.append(new Line( 10, -8, 0, 8,QPen(Qt::darkBlue,2)));
36 
37  Lines.append(new Line(-22, -4,-26, 4,QPen(Qt::darkBlue,2)));
38 
39  Ports.append(new Port(-30, 0));
40  Ports.append(new Port( 30, 0));
41 
42  x1 = -30; y1 =-11;
43  x2 = 30; y2 = 11;
44 
45  tx = x1+4;
46  ty = y2+4;
47  Model = "MGAP";
48  Name = "MS";
49 
50  Props.append(new Property("Subst", "Subst1", true,
51  QObject::tr("name of substrate definition")));
52  Props.append(new Property("W1", "1 mm", true,
53  QObject::tr("width of the line 1")));
54  Props.append(new Property("W2", "1 mm", true,
55  QObject::tr("width of the line 2")));
56  Props.append(new Property("S", "1 mm", true,
57  QObject::tr("spacing between the microstrip ends")));
58  Props.append(new Property("MSModel", "Hammerstad", false,
59  QObject::tr("quasi-static microstrip model")+
60  " [Hammerstad, Wheeler, Schneider]"));
61  Props.append(new Property("MSDispModel", "Kirschning", false,
62  QObject::tr("microstrip dispersion model")+" [Kirschning, Kobayashi, "
63  "Yamashita, Hammerstad, Getsinger, Schneider, Pramanick]"));
64 }
65 
67 {
68 }
69 
71 {
72  return new MSgap();
73 }
74 
75 Element* MSgap::info(QString& Name, char* &BitmapFile, bool getNewOne)
76 {
77  Name = QObject::tr("Microstrip Gap");
78  BitmapFile = (char *) "msgap";
79 
80  if(getNewOne) return new MSgap();
81  return 0;
82 }
Q3PtrList< Line > Lines
Definition: component.h:67
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
Component * newOne()
Definition: msgap.cpp:70
MSgap()
Definition: msgap.cpp:21
int ty
Definition: component.h:78
Q3PtrList< Property > Props
Definition: component.h:72
~MSgap()
Definition: msgap.cpp:66
Definition: element.h:48
Superclass of all schematic drawing elements.
Definition: element.h:142
Q3PtrList< Port > Ports
Definition: component.h:70
static Element * info(QString &, char *&, bool getNewOne=false)
Definition: msgap.cpp:75
QString Name
Definition: component.h:80
QString Model
Definition: component.h:80
QString Description
Definition: component.h:81
int x2
Definition: element.h:153