Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/components/cpwopen.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                                cpwopen.cpp
00003                              ---------------
00004     begin                : Sun May 01 2005
00005     copyright            : (C) 2005 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 "cpwopen.h"
00019 
00020 
00021 CPWopen::CPWopen()
00022 {
00023   Description = QObject::tr("coplanar open");
00024 
00025   Lines.append(new Line(-30,  0,-18,  0,QPen(Qt::darkBlue,2)));
00026   Lines.append(new Line(-13, -8,  0, -8,QPen(Qt::darkBlue,2)));
00027   Lines.append(new Line(-23,  8,-10,  8,QPen(Qt::darkBlue,2)));
00028   Lines.append(new Line(-13, -8,-23,  8,QPen(Qt::darkBlue,2)));
00029   Lines.append(new Line(  0, -8,-10,  8,QPen(Qt::darkBlue,2)));
00030 
00031   Lines.append(new Line(-25,-13, 11,-13,QPen(Qt::darkBlue,2)));
00032   Lines.append(new Line(-25, 13, -5, 13,QPen(Qt::darkBlue,2)));
00033   Lines.append(new Line( 11,-13, -5, 13,QPen(Qt::darkBlue,2)));
00034 
00035   Lines.append(new Line(-24,-21,-16,-13,QPen(Qt::darkBlue,2)));
00036   Lines.append(new Line(-16,-21, -8,-13,QPen(Qt::darkBlue,2)));
00037   Lines.append(new Line( -8,-21,  0,-13,QPen(Qt::darkBlue,2)));
00038   Lines.append(new Line(  0,-21,  8,-13,QPen(Qt::darkBlue,2)));
00039   Lines.append(new Line(  8,-21, 15,-14,QPen(Qt::darkBlue,2)));
00040   
00041   Lines.append(new Line( 10,-11, 15, -6,QPen(Qt::darkBlue,2)));
00042   Lines.append(new Line(  7, -6, 15,  2,QPen(Qt::darkBlue,2)));
00043   Lines.append(new Line(  4, -1, 15, 10,QPen(Qt::darkBlue,2)));
00044   Lines.append(new Line(  1,  4, 15, 18,QPen(Qt::darkBlue,2)));
00045 
00046   Lines.append(new Line(-25, 18,-22, 21,QPen(Qt::darkBlue,2)));
00047   Lines.append(new Line(-22, 13,-14, 21,QPen(Qt::darkBlue,2)));
00048   Lines.append(new Line(-14, 13, -6, 21,QPen(Qt::darkBlue,2)));
00049   Lines.append(new Line( -6, 13,  2, 21,QPen(Qt::darkBlue,2)));
00050   Lines.append(new Line( -2,  9, 10, 21,QPen(Qt::darkBlue,2)));
00051 
00052   Ports.append(new Port(-30, 0));
00053 
00054   x1 = -30; y1 =-24;
00055   x2 =  17; y2 = 24;
00056 
00057   tx = x1+4;
00058   ty = y2+4;
00059   Model = "COPEN";
00060   Name  = "CL";
00061 
00062   Props.append(new Property("Subst", "Subst1", true,
00063     QObject::tr("name of substrate definition")));
00064   Props.append(new Property("W", "1 mm", true,
00065     QObject::tr("width of the line")));
00066   Props.append(new Property("S", "1 mm", true,
00067     QObject::tr("width of a gap")));
00068   Props.append(new Property("G", "5 mm", true,
00069     QObject::tr("width of gap at end of line")));
00070   Props.append(new Property("Backside", "Air", false,
00071     QObject::tr("material at the backside of the substrate")+
00072     " [Metal, Air]"));
00073 }
00074 
00075 CPWopen::~CPWopen()
00076 {
00077 }
00078 
00079 Component* CPWopen::newOne()
00080 {
00081   return new CPWopen();
00082 }
00083 
00084 Element* CPWopen::info(QString& Name, char* &BitmapFile, bool getNewOne)
00085 {
00086   Name = QObject::tr("Coplanar Open");
00087   BitmapFile = (char *) "cpwopen";
00088 
00089   if(getNewOne)  return new CPWopen();
00090   return 0;
00091 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines