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