Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/components/cpwstep.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                                coplanar.cpp
00003                               --------------
00004     begin                : Fri May 13 2005
00005     copyright            : (C) 2003 by Michael Margraf
00006     email                : michael.margraf@alumni.tu-berlin.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "cpwstep.h"
00019 
00020 
00021 CPWstep::CPWstep()
00022 {
00023   Description = QObject::tr("coplanar step");
00024 
00025   Lines.append(new Line(-30,  0,-18,  0,QPen(Qt::darkBlue,2)));
00026   Lines.append(new Line( 18,  0, 30,  0,QPen(Qt::darkBlue,2)));
00027   Lines.append(new Line(  6,-10, 24,-10,QPen(Qt::darkBlue,2)));
00028   Lines.append(new Line( -6, 10, 12, 10,QPen(Qt::darkBlue,2)));
00029   Lines.append(new Line(-14, -6,  4, -6,QPen(Qt::darkBlue,2)));
00030   Lines.append(new Line(-22,  6, -4,  6,QPen(Qt::darkBlue,2)));
00031   Lines.append(new Line(  6,-10,  4, -6,QPen(Qt::darkBlue,2)));
00032   Lines.append(new Line( -6, 10, -4,  6,QPen(Qt::darkBlue,2)));
00033   Lines.append(new Line(-14, -6,-22,  6,QPen(Qt::darkBlue,2)));
00034   Lines.append(new Line( 24,-10, 12, 10,QPen(Qt::darkBlue,2)));
00035 
00036   Lines.append(new Line(-25,-13, 25,-13,QPen(Qt::darkBlue,2)));
00037   Lines.append(new Line( 16,-21, 24,-13,QPen(Qt::darkBlue,2)));
00038   Lines.append(new Line(  8,-21, 16,-13,QPen(Qt::darkBlue,2)));
00039   Lines.append(new Line(  0,-21,  8,-13,QPen(Qt::darkBlue,2)));
00040   Lines.append(new Line( -8,-21,  0,-13,QPen(Qt::darkBlue,2)));
00041   Lines.append(new Line(-16,-21, -8,-13,QPen(Qt::darkBlue,2)));
00042   Lines.append(new Line(-24,-21,-16,-13,QPen(Qt::darkBlue,2)));
00043   
00044   Lines.append(new Line(-25, 13, 25, 13,QPen(Qt::darkBlue,2)));
00045   Lines.append(new Line(-24, 13,-16, 21,QPen(Qt::darkBlue,2)));
00046   Lines.append(new Line(-16, 13, -8, 21,QPen(Qt::darkBlue,2)));
00047   Lines.append(new Line( -8, 13,  0, 21,QPen(Qt::darkBlue,2)));
00048   Lines.append(new Line(  0, 13,  8, 21,QPen(Qt::darkBlue,2)));
00049   Lines.append(new Line(  8, 13, 16, 21,QPen(Qt::darkBlue,2)));
00050   Lines.append(new Line( 16, 13, 24, 21,QPen(Qt::darkBlue,2)));
00051 
00052   Lines.append(new Line(-22, -4,-26,  4,QPen(Qt::darkBlue,2)));
00053 
00054   Ports.append(new Port(-30, 0));
00055   Ports.append(new Port( 30, 0));
00056 
00057   x1 = -30; y1 =-24;
00058   x2 =  30; y2 = 24;
00059 
00060   tx = x1+4;
00061   ty = y2+4;
00062   Model = "CSTEP";
00063   Name  = "CL";
00064 
00065   Props.append(new Property("Subst", "Subst1", true,
00066     QObject::tr("name of substrate definition")));
00067   Props.append(new Property("W1", "1 mm", true,
00068     QObject::tr("width of line 1")));
00069   Props.append(new Property("W2", "2 mm", true,
00070     QObject::tr("width of line 2")));
00071   Props.append(new Property("S", "3 mm", true,
00072     QObject::tr("distance between ground planes")));
00073   Props.append(new Property("Backside", "Air", false,
00074     QObject::tr("material at the backside of the substrate")+
00075     " [Metal, Air]"));
00076 }
00077 
00078 CPWstep::~CPWstep()
00079 {
00080 }
00081 
00082 Component* CPWstep::newOne()
00083 {
00084   return new CPWstep();
00085 }
00086 
00087 Element* CPWstep::info(QString& Name, char* &BitmapFile, bool getNewOne)
00088 {
00089   Name = QObject::tr("Coplanar Step");
00090   BitmapFile = (char *) "cpwstep";
00091 
00092   if(getNewOne)  return new CPWstep();
00093   return 0;
00094 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines