Qucs-GUI
0.0.18
|
#include <component.h>
Public Member Functions | |
Component () | |
virtual | ~Component () |
virtual Component * | newOne () |
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) |
Public Member Functions inherited from Element | |
Element () | |
virtual | ~Element () |
Data Fields | |
bool | mirroredX |
int | rotated |
Q3PtrList< Line > | Lines |
Q3PtrList< struct Arc > | Arcs |
Q3PtrList< Area > | Rects |
Q3PtrList< Area > | Ellips |
Q3PtrList< Port > | Ports |
Q3PtrList< Text > | Texts |
Q3PtrList< Property > | Props |
int | isActive |
int | tx |
int | ty |
bool | showName |
QString | Model |
QString | Name |
QString | Description |
Data Fields inherited from Element | |
bool | isSelected |
int | Type |
int | cx |
int | cy |
int | x1 |
int | y1 |
int | x2 |
int | y2 |
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 *) |
Property * | getProperty (const QString &) |
Protected Attributes | |
Schematic * | containingSchematic |
Definition at line 33 of file component.h.
Component::Component | ( | ) |
Definition at line 43 of file component.cpp.
|
inlinevirtual |
Definition at line 36 of file component.h.
|
protected |
Definition at line 915 of file component.cpp.
void Component::Bounding | ( | int & | _x1, |
int & | _y1, | ||
int & | _x2, | ||
int & | _y2 | ||
) |
Definition at line 76 of file component.cpp.
|
protected |
Definition at line 1216 of file component.cpp.
void Component::entireBounds | ( | int & | _x1, |
int & | _y1, | ||
int & | _x2, | ||
int & | _y2, | ||
float | Corr | ||
) |
Definition at line 109 of file component.cpp.
QString Component::get_Verilog_Code | ( | int | NumPorts | ) |
Definition at line 660 of file component.cpp.
QString Component::get_VHDL_Code | ( | int | NumPorts | ) |
Definition at line 685 of file component.cpp.
|
protected |
Definition at line 1181 of file component.cpp.
|
virtual |
Reimplemented from Element.
Definition at line 136 of file component.cpp.
|
protected |
Definition at line 1115 of file component.cpp.
QString Component::getNetlist | ( | ) |
Definition at line 634 of file component.cpp.
|
protected |
Definition at line 1156 of file component.cpp.
|
protected |
Definition at line 1206 of file component.cpp.
bool Component::getSelected | ( | int | x_, |
int | y_ | ||
) |
Definition at line 176 of file component.cpp.
|
inlinevirtual |
Reimplemented in SpiceFile, Verilog_File, VHDL_File, LibComp, SParamFile, iFile, Subcircuit, and vFile.
Definition at line 63 of file component.h.
int Component::getTextSelected | ( | int | x_, |
int | y_, | ||
float | Corr | ||
) |
Definition at line 143 of file component.cpp.
bool Component::load | ( | const QString & | _s | ) |
Definition at line 754 of file component.cpp.
void Component::mirrorX | ( | ) |
Definition at line 490 of file component.cpp.
void Component::mirrorY | ( | ) |
Definition at line 552 of file component.cpp.
|
protectedvirtual |
Reimplemented in GateComponent, SpiceFile, ecvs, LibComp, 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 617 of file component.cpp.
|
virtual |
Reimplemented in ecvs, SpiceFile, BJTsub, MOSFET_sub, LibComp, 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 70 of file component.cpp.
void Component::paint | ( | ViewPainter * | p | ) |
Definition at line 187 of file component.cpp.
|
virtual |
Reimplemented from Element.
Definition at line 319 of file component.cpp.
void Component::print | ( | ViewPainter * | p, |
float | FontScale | ||
) |
Definition at line 376 of file component.cpp.
|
inlinevirtual |
Reimplemented in MultiViewComponent, AC_Sim, Param_Sweep, SP_Sim, and TR_Sim.
Definition at line 39 of file component.h.
void Component::rotate | ( | ) |
Definition at line 390 of file component.cpp.
QString Component::save | ( | ) |
Definition at line 704 of file component.cpp.
|
virtual |
Reimplemented from Element.
Definition at line 129 of file component.cpp.
|
inlinevirtual |
Definition at line 65 of file component.h.
int Component::textSize | ( | int & | _dx, |
int & | _dy | ||
) |
Definition at line 86 of file component.cpp.
|
protectedvirtual |
Reimplemented in GateComponent, LibComp, Verilog_File, Subcircuit, Digi_Source, Equation, SubCirPort, D_FlipFlop, JK_FlipFlop, Logical_Buf, Logical_Inv, RS_FlipFlop, andor4x2, andor4x3, andor4x4, binarytogrey4bit, comp_1bit, comp_2bit, comp_4bit, dff_SR, dmux2to4, dmux4to16, fa1b, fa2b, gatedDlatch, greytobinary4bit, ha1b, hpribin4bit, jkff_SR, logic_0, logic_1, mux2to1, mux4to1, mux8to1, pad2bit, pad3bit, pad4bit, tff_SR, and dmux3to8.
Definition at line 654 of file component.cpp.
|
protectedvirtual |
Reimplemented in GateComponent, VHDL_File, LibComp, Subcircuit, Digi_Source, Equation, SubCirPort, D_FlipFlop, JK_FlipFlop, Logical_Buf, Logical_Inv, RS_FlipFlop, andor4x2, andor4x3, andor4x4, binarytogrey4bit, comp_1bit, comp_2bit, comp_4bit, dff_SR, dmux2to4, dmux4to16, fa1b, fa2b, gatedDlatch, greytobinary4bit, ha1b, hpribin4bit, jkff_SR, logic_0, logic_1, mux2to1, mux4to1, mux8to1, pad2bit, pad3bit, pad4bit, tff_SR, and dmux3to8.
Definition at line 679 of file component.cpp.
Q3PtrList<struct Arc> Component::Arcs |
Definition at line 68 of file component.h.
|
protected |
Definition at line 96 of file component.h.
QString Component::Description |
Definition at line 81 of file component.h.
Q3PtrList<Area> Component::Ellips |
Definition at line 69 of file component.h.
int Component::isActive |
Definition at line 77 of file component.h.
Q3PtrList<Line> Component::Lines |
Definition at line 67 of file component.h.
bool Component::mirroredX |
Definition at line 60 of file component.h.
QString Component::Model |
Definition at line 80 of file component.h.
QString Component::Name |
Definition at line 80 of file component.h.
Q3PtrList<Port> Component::Ports |
Definition at line 70 of file component.h.
Q3PtrList<Property> Component::Props |
Definition at line 72 of file component.h.
Q3PtrList<Area> Component::Rects |
Definition at line 69 of file component.h.
int Component::rotated |
Definition at line 61 of file component.h.
bool Component::showName |
Definition at line 79 of file component.h.
Q3PtrList<Text> Component::Texts |
Definition at line 71 of file component.h.
int Component::tx |
Definition at line 78 of file component.h.
int Component::ty |
Definition at line 78 of file component.h.