Qucs-GUI  0.0.19
/home/travis/build/Qucs/qucs/qucs/qucs/components/biast.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002                           biast.cpp  -  description
00003                              -------------------
00004     begin                : Sat Aug 23 2003
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 "biast.h"
00019 
00020 
00021 BiasT::BiasT()
00022 {
00023   Description = QObject::tr("bias t");
00024 
00025   Arcs.append(new Arc( -3,  2, 6, 6, 16*270, 16*180,QPen(Qt::darkBlue,1)));
00026   Arcs.append(new Arc( -3,  8, 6, 6, 16*270, 16*180,QPen(Qt::darkBlue,1)));
00027   Arcs.append(new Arc( -3, 14, 6, 6, 16*270, 16*180,QPen(Qt::darkBlue,1)));
00028   Lines.append(new Line(-22,-10, 22,-10,QPen(Qt::darkBlue,1)));
00029   Lines.append(new Line(-22,-10,-22, 22,QPen(Qt::darkBlue,1)));
00030   Lines.append(new Line(-22, 22, 22, 22,QPen(Qt::darkBlue,1)));
00031   Lines.append(new Line( 22,-10, 22, 22,QPen(Qt::darkBlue,1)));
00032 
00033   Lines.append(new Line(-13, -6,-13,  7,QPen(Qt::darkBlue,2)));
00034   Lines.append(new Line( -9, -6, -9,  7,QPen(Qt::darkBlue,2)));
00035   Lines.append(new Line( -9,  0, 22,  0,QPen(Qt::darkBlue,1)));
00036   Lines.append(new Line(-22,  0,-13,  0,QPen(Qt::darkBlue,1)));
00037   Lines.append(new Line(-30,  0,-22,  0,QPen(Qt::darkBlue,2)));
00038   Lines.append(new Line( 22,  0, 30,  0,QPen(Qt::darkBlue,2)));
00039   Lines.append(new Line(  0,  0,  0,  2,QPen(Qt::darkBlue,1)));
00040   Lines.append(new Line(  0, 20,  0, 22,QPen(Qt::darkBlue,1)));
00041   Lines.append(new Line(  0, 22,  0, 30,QPen(Qt::darkBlue,2)));
00042 
00043   Ports.append(new Port(-30,  0));
00044   Ports.append(new Port( 30,  0));
00045   Ports.append(new Port(  0, 30));
00046 
00047   x1 = -30; y1 = -13;
00048   x2 =  30; y2 =  30;
00049 
00050   tx = x1+4;
00051   ty = y2+4;
00052   Model = "BiasT";
00053   Name  = "X";
00054 
00055   Props.append(new Property("L", "1 uH", false,
00056   QObject::tr("for transient simulation: inductance in Henry")));
00057   Props.append(new Property("C", "1 uF", false,
00058   QObject::tr("for transient simulation: capacitance in Farad")));
00059 }
00060 
00061 BiasT::~BiasT()
00062 {
00063 }
00064 
00065 Component* BiasT::newOne()
00066 {
00067   return new BiasT();
00068 }
00069 
00070 Element* BiasT::info(QString& Name, char* &BitmapFile, bool getNewOne)
00071 {
00072   Name = QObject::tr("Bias T");
00073   BitmapFile = (char *) "biast";
00074 
00075   if(getNewOne)  return new BiasT();
00076   return 0;
00077 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines