Qucs-GUI  0.0.19
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
Component Class Reference

The Component class implements a generic analog component. More...

#include <component.h>

Inherits Element.

Inherited by AC_Sim, AM_Modulator, Ampere_ac, Ampere_dc, Ampere_noise, Amplifier, andor4x2, andor4x3, andor4x4, Attenuator, BiasT, binarytogrey4bit, BondWire, bsim3v34nMOS, bsim3v34pMOS, bsim4v30nMOS, bsim4v30pMOS, CCCS, CCVS, Circulator, CoaxialLine, comp_1bit, comp_2bit, comp_4bit, Coplanar, CoupledTLine, Coupler, CPWgap, CPWopen, CPWshort, CPWstep, D_FlipFlop, DC_Sim, dcBlock, dcFeed, dff_SR, Diac, Digi_Sim, Digi_Source, DLS_1ton, DLS_nto1, dmux2to4, dmux3to8, dmux4to16, ecvs, Equation, ETR_Sim, fa1b, fa2b, gatedDlatch, greytobinary4bit, Ground, Gyrator, ha1b, HB_Sim, HBT_X, hic2_full, hicumL2V2p1, hicumL2V2p23, hicumL2V2p24, hicumL2V2p31n, hpribin4bit, Hybrid, iExp, iFile, Inductor, iProbe, iPulse, iRect, Isolator, JK_FlipFlop, jkff_SR, log_amp, logic_0, logic_1, MESFET, mod_amp, MScorner, MScoupled, MSgap, MSlange, MSline, MSmbend, MSopen, MSrstub, MSstep, MSvia, MultiViewComponent, Mutual, Mutual2, mux2to1, mux4to1, mux8to1, nigbt, Noise_ii, Noise_iv, Noise_vv, OpAmp, Optimize_Sim, pad2bit, pad3bit, pad4bit, Param_Sweep, Phaseshifter, photodiode, phototransistor, PM_Modulator, potentiometer, RectLine, Relais, RLCG, RS_FlipFlop, Source_ac, SP_Sim, Substrate, symTrafo, tff_SR, Thyristor, TLine, TLine_4Port, TR_Sim, Transformer, Triac, TunnelDiode, TwistedPair, vacomponent, VCCS, vcresistor, VCVS, vExp, vFile, Volt_ac, Volt_dc, Volt_noise, vProbe, vPulse, and vRect.

Collaboration diagram for Component:
Collaboration graph
[legend]

Public Member Functions

 Component ()
virtual ~Component ()
virtual ComponentnewOne ()
virtual void recreate (Schematic *)
QString getNetlist ()
QString get_VHDL_Code (int)
QString get_Verilog_Code (int)
void paint (ViewPainter *)
void paintScheme (Schematic *)
void print (ViewPainter *, float)
void setCenter (int, int, bool relative=false)
void getCenter (int &, int &)
int textSize (int &, int &)
void Bounding (int &, int &, int &, int &)
void entireBounds (int &, int &, int &, int &, float)
bool getSelected (int, int)
int getTextSelected (int, int, float)
void rotate ()
void mirrorX ()
void mirrorY ()
QString save ()
bool load (const QString &)
virtual QString getSubcircuitFile ()
virtual void setSchematic (Schematic *p)
virtual SchematicgetSchematic ()

Data Fields

bool mirroredX
int rotated
QList< Line * > Lines
QList< struct Arc * > Arcs
QList< Area * > Rects
QList< Area * > Ellips
QList< Port * > Ports
QList< Text * > Texts
Q3PtrList< PropertyProps
int isActive
int tx
int ty
bool showName
QString Model
QString Name
QString Description

Protected Member Functions

virtual QString netlist ()
virtual QString vhdlCode (int)
virtual QString verilogCode (int)
int analyseLine (const QString &, int)
bool getIntegers (const QString &, int *i1=0, int *i2=0, int *i3=0, int *i4=0, int *i5=0, int *i6=0)
bool getPen (const QString &, QPen &, int)
bool getBrush (const QString &, QBrush &, int)
void copyComponent (Component *)
PropertygetProperty (const QString &)

Protected Attributes

SchematiccontainingSchematic

Detailed Description

The Component class implements a generic analog component.

Definition at line 31 of file component.h.


Constructor & Destructor Documentation

Definition at line 45 of file component.cpp.

Here is the caller graph for this function:

virtual Component::~Component ( ) [inline, virtual]

Definition at line 34 of file component.h.


Member Function Documentation

int Component::analyseLine ( const QString &  Row,
int  numProps 
) [protected]

Definition at line 920 of file component.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Component::Bounding ( int &  _x1,
int &  _y1,
int &  _x2,
int &  _y2 
)

Definition at line 72 of file component.cpp.

Here is the caller graph for this function:

void Component::copyComponent ( Component pc) [protected]

Definition at line 1222 of file component.cpp.

Here is the caller graph for this function:

void Component::entireBounds ( int &  _x1,
int &  _y1,
int &  _x2,
int &  _y2,
float  Corr 
)

Definition at line 107 of file component.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString Component::get_Verilog_Code ( int  NumPorts)

Definition at line 660 of file component.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString Component::get_VHDL_Code ( int  NumPorts)

Definition at line 686 of file component.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Component::getBrush ( const QString &  s,
QBrush &  Brush,
int  i 
) [protected]

Definition at line 1187 of file component.cpp.

Here is the caller graph for this function:

void Component::getCenter ( int &  x,
int &  y 
) [virtual]

Reimplemented from Element.

Definition at line 134 of file component.cpp.

Here is the caller graph for this function:

bool Component::getIntegers ( const QString &  s,
int *  i1 = 0,
int *  i2 = 0,
int *  i3 = 0,
int *  i4 = 0,
int *  i5 = 0,
int *  i6 = 0 
) [protected]

Definition at line 1121 of file component.cpp.

Here is the caller graph for this function:

QString Component::getNetlist ( )

Definition at line 632 of file component.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Component::getPen ( const QString &  s,
QPen &  Pen,
int  i 
) [protected]

Definition at line 1162 of file component.cpp.

Here is the caller graph for this function:

Property * Component::getProperty ( const QString &  name) [protected]

Definition at line 1212 of file component.cpp.

Here is the caller graph for this function:

virtual Schematic* Component::getSchematic ( ) [inline, virtual]

Definition at line 64 of file component.h.

Here is the caller graph for this function:

bool Component::getSelected ( int  x_,
int  y_ 
)

Definition at line 175 of file component.cpp.

virtual QString Component::getSubcircuitFile ( ) [inline, virtual]

Reimplemented in SpiceFile, Verilog_File, VHDL_File, LibComp, SParamFile, iFile, Subcircuit, and vFile.

Definition at line 61 of file component.h.

Here is the caller graph for this function:

int Component::getTextSelected ( int  x_,
int  y_,
float  Corr 
)

Definition at line 141 of file component.cpp.

bool Component::load ( const QString &  _s)

Definition at line 755 of file component.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 488 of file component.cpp.

Here is the caller graph for this function:

Definition at line 550 of file component.cpp.

Here is the caller graph for this function:

QString Component::netlist ( ) [protected, virtual]

Reimplemented in GateComponent, SpiceFile, ecvs, LibComp, MutualX, SParamFile, MOSFET, Optimize_Sim, BJT, iFile, Subcircuit, vFile, Digi_Source, EqnDefined, Ground, MSvia, RFedd, RFedd2P, SubCirPort, Switch, EKV26MOS, hic0_full, hicumL0V1p2, hicumL0V1p2g, and hicumL0V1p3.

Definition at line 615 of file component.cpp.

Here is the caller graph for this function:

Component * Component::newOne ( ) [virtual]

Reimplemented in ecvs, BJTsub, MOSFET_sub, SpiceFile, LibComp, MutualX, Verilog_File, VHDL_File, Equation, AC_Sim, AM_Modulator, Ampere_ac, Ampere_dc, Ampere_noise, Amplifier, Attenuator, BiasT, BJT, BondWire, Capacitor, CCCS, CCVS, Circulator, CoaxialLine, Coplanar, Coupler, CPWgap, CPWopen, CPWshort, CPWstep, D_FlipFlop, DC_Sim, dcBlock, dcFeed, Diac, Digi_Sim, Digi_Source, Diode, EqnDefined, ETR_Sim, Ground, Gyrator, HB_Sim, iExp, iFile, Inductor, iProbe, iPulse, iRect, Isolator, JFET, JK_FlipFlop, Logical_AND, Logical_Buf, Logical_Inv, Logical_NAND, Logical_NOR, Logical_OR, Logical_XNOR, Logical_XOR, MOSFET, MScorner, MScoupled, MScross, MSgap, MSlange, MSline, MSmbend, MSopen, MSstep, MStee, MSvia, Mutual, Mutual2, Noise_ii, Noise_iv, Noise_vv, OpAmp, Optimize_Sim, Param_Sweep, Phaseshifter, PM_Modulator, RectLine, Relais, Resistor, RFedd, RFedd2P, RS_FlipFlop, Source_ac, SP_Sim, SParamFile, Subcircuit, SubCirPort, Substrate, Switch, symTrafo, Thyristor, TLine, TLine_4Port, TR_Sim, Transformer, Triac, TwistedPair, VCCS, vcresistor, VCVS, vExp, vFile, Volt_ac, Volt_dc, Volt_noise, vProbe, vPulse, vRect, MSrstub, RLCG, CoupledTLine, Hybrid, TunnelDiode, andor4x2, andor4x3, andor4x4, binarytogrey4bit, bsim3v34nMOS, bsim3v34pMOS, bsim4v30nMOS, bsim4v30pMOS, comp_1bit, comp_2bit, comp_4bit, dff_SR, DLS_1ton, DLS_nto1, dmux2to4, dmux4to16, EKV26MOS, fa1b, fa2b, gatedDlatch, greytobinary4bit, ha1b, HBT_X, hic0_full, hic2_full, hicumL0V1p2, hicumL0V1p2g, hicumL0V1p3, hicumL2V2p1, hicumL2V2p23, hicumL2V2p24, hicumL2V2p31n, hpribin4bit, jkff_SR, log_amp, logic_0, logic_1, MESFET, mod_amp, mux2to1, mux4to1, mux8to1, nigbt, pad2bit, pad3bit, pad4bit, photodiode, phototransistor, potentiometer, tff_SR, and dmux3to8.

Definition at line 66 of file component.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 186 of file component.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Component::paintScheme ( Schematic p) [virtual]

Reimplemented from Element.

Definition at line 317 of file component.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Component::print ( ViewPainter p,
float  FontScale 
)

Definition at line 375 of file component.cpp.

Here is the call graph for this function:

virtual void Component::recreate ( Schematic ) [inline, virtual]

Reimplemented in MultiViewComponent, AC_Sim, Param_Sweep, SP_Sim, and TR_Sim.

Definition at line 37 of file component.h.

Definition at line 388 of file component.cpp.

Here is the caller graph for this function:

QString Component::save ( )

Definition at line 705 of file component.cpp.

Here is the caller graph for this function:

void Component::setCenter ( int  x,
int  y,
bool  relative = false 
) [virtual]

Reimplemented from Element.

Definition at line 127 of file component.cpp.

Here is the caller graph for this function:

virtual void Component::setSchematic ( Schematic p) [inline, virtual]

Definition at line 63 of file component.h.

Here is the caller graph for this function:

int Component::textSize ( int &  _dx,
int &  _dy 
)

Definition at line 82 of file component.cpp.

Here is the caller graph for this function:

QString Component::verilogCode ( int  ) [protected, virtual]
QString Component::vhdlCode ( int  ) [protected, virtual]

Field Documentation

QList<struct Arc *> Component::Arcs

Definition at line 67 of file component.h.

Definition at line 96 of file component.h.

Definition at line 81 of file component.h.

Definition at line 69 of file component.h.

Definition at line 77 of file component.h.

Definition at line 66 of file component.h.

Definition at line 58 of file component.h.

Definition at line 80 of file component.h.

QString Component::Name

Definition at line 80 of file component.h.

Definition at line 70 of file component.h.

Definition at line 72 of file component.h.

Definition at line 68 of file component.h.

Definition at line 59 of file component.h.

Definition at line 79 of file component.h.

Definition at line 71 of file component.h.

Definition at line 78 of file component.h.

Definition at line 78 of file component.h.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines