Container for schematic circuit data.
More...
#include <SchematicContent.h>
|
|
| SchematicContent () |
| | Class constructor.
|
| |
|
| ~SchematicContent () |
| | Class destructor.
|
| |
| QString | getSParameterNetlist () |
| | Generate netlist for the built-in S-parameter simulator.
|
| |
| void | setNetlist (QString netlist) |
| | Set netlist directly.
|
| |
| QString | exportSchematic (QString environment, QString backend) |
| | Export schematic to specified environment (so far, Qucs-S only)
|
| |
| QString | export2QucsS (QString) |
| | Convert schematic to Qucs-S format.
|
| |
| void | setFrequencySweep (QString f1, QString f2, int N) |
| | Set frequency sweep parameters for export.
|
| |
| QList< ComponentInfo > | getComponents () |
| | Get component list.
|
| |
| void | setComponents (QList< ComponentInfo > C) |
| | Set component list.
|
| |
| QList< WireInfo > | getWires () |
| | Get wire list.
|
| |
| QList< NodeInfo > | getNodes () |
| | Get node list.
|
| |
| void | setNodes (QList< NodeInfo > N) |
| | Set node list.
|
| |
| QList< QGraphicsTextItem * > | getTexts () |
| | Get text list.
|
| |
| int | getComponentCounter (ComponentType) |
| | Get count of specific component type.
|
| |
|
| void | appendComponent (struct ComponentInfo C) |
| | Add component to schematic.
|
| |
| void | appendWire (WireInfo WI) |
| | Add wire to schematic.
|
| |
| void | appendWire (QString O, int ON, QString D, int DN) |
| | Add wire with connection details.
|
| |
| void | appendWire (QString O, int ON, QString D, int DN, QColor c) |
| | Add wire with connection details and color.
|
| |
| void | appendNode (struct NodeInfo N) |
| | Add node to schematic.
|
| |
| void | appendText (QGraphicsTextItem *text) |
| | Add text annotation.
|
| |
|
Get input impedance value
- Returns
- Input impedance as double
|
|
double | getZin () |
| |
| double | getZout () |
| | Get output impedance value.
|
| |
| QString | getZinString () |
| | Get input impedance string.
|
| |
| QString | getZoutString () |
| | Get output impedance string.
|
| |
|
|
QString | Name |
| | Schematic name.
|
| |
|
QString | Type |
| | Schematic type (filter, attenuator, etc.)
|
| |
| QList< ComponentInfo > | Comps |
| | Schematic elements.
|
| |
|
QList< WireInfo > | Wires |
| | Wire list.
|
| |
|
QList< NodeInfo > | Nodes |
| | Node list.
|
| |
|
QString | f_start |
| | Frequency sweep settings (required for exporting)
|
| |
|
QString | f_stop |
| | Frequency sweep start and stop.
|
| |
|
int | n_points |
| | Number of frequency points.
|
| |
|
QMap< ComponentType, int > | NumberComponents |
| | Number of elements of each component type (#caps, #res, etc.)
|
| |
|
unsigned int | NumberWires |
| | Total wire count.
|
| |
Container for schematic circuit data.
◆ appendComponent()
Add component to schematic.
- Parameters
-
◆ appendNode()
| void SchematicContent::appendNode |
( |
struct NodeInfo |
N | ) |
|
|
inline |
Add node to schematic.
- Parameters
-
◆ appendText()
| void SchematicContent::appendText |
( |
QGraphicsTextItem * |
text | ) |
|
|
inline |
Add text annotation.
- Parameters
-
◆ appendWire() [1/3]
| void SchematicContent::appendWire |
( |
QString |
O, |
|
|
int |
ON, |
|
|
QString |
D, |
|
|
int |
DN |
|
) |
| |
Add wire with connection details.
- Parameters
-
| O | Origin ID |
| ON | Origin port |
| D | Destination ID |
| DN | Destination port |
◆ appendWire() [2/3]
| void SchematicContent::appendWire |
( |
QString |
O, |
|
|
int |
ON, |
|
|
QString |
D, |
|
|
int |
DN, |
|
|
QColor |
c |
|
) |
| |
Add wire with connection details and color.
- Parameters
-
| O | Origin ID |
| ON | Origin port |
| D | Destination ID |
| DN | Destination port |
| c | Wire color |
◆ appendWire() [3/3]
| void SchematicContent::appendWire |
( |
WireInfo |
WI | ) |
|
Add wire to schematic.
- Parameters
-
◆ export2QucsS()
| QString SchematicContent::export2QucsS |
( |
QString |
| ) |
|
Convert schematic to Qucs-S format.
- Parameters
-
- Returns
- Qucs-S formatted schematic
◆ exportSchematic()
| QString SchematicContent::exportSchematic |
( |
QString |
environment, |
|
|
QString |
backend |
|
) |
| |
Export schematic to specified environment (so far, Qucs-S only)
- Parameters
-
| environment | Target environment (e.g., "Qucs-S") |
| backend | Backend simulator |
- Returns
- Exported schematic string
◆ getComponentCounter()
| int SchematicContent::getComponentCounter |
( |
ComponentType |
Comp | ) |
|
Get count of specific component type.
- Parameters
-
- Returns
- Number of components of that type
◆ getComponents()
Get component list.
- Returns
- List of components
◆ getNodes()
| QList< NodeInfo > SchematicContent::getNodes |
( |
| ) |
|
|
inline |
Get node list.
- Returns
- List of nodes
◆ getSParameterNetlist()
| QString SchematicContent::getSParameterNetlist |
( |
| ) |
|
Generate netlist for the built-in S-parameter simulator.
- Returns
- Netlist
◆ getTexts()
| QList< QGraphicsTextItem * > SchematicContent::getTexts |
( |
| ) |
|
|
inline |
Get text list.
- Returns
- List of text items
◆ getWires()
| QList< WireInfo > SchematicContent::getWires |
( |
| ) |
|
|
inline |
Get wire list.
- Returns
- List of wires
◆ getZinString()
| QString SchematicContent::getZinString |
( |
| ) |
|
|
inline |
Get input impedance string.
- Returns
- Input impedance string
◆ getZout()
| double SchematicContent::getZout |
( |
| ) |
|
|
inline |
Get output impedance value.
- Returns
- Output impedance as double
◆ getZoutString()
| QString SchematicContent::getZoutString |
( |
| ) |
|
|
inline |
Get output impedance string.
- Returns
- Output impedance string
◆ setComponents()
Set component list.
- Parameters
-
◆ setFrequencySweep()
| void SchematicContent::setFrequencySweep |
( |
QString |
f1, |
|
|
QString |
f2, |
|
|
int |
N |
|
) |
| |
|
inline |
Set frequency sweep parameters for export.
- Parameters
-
| f1 | Start frequency |
| f2 | Stop frequency |
| N | Number of points |
◆ setNetlist()
| void SchematicContent::setNetlist |
( |
QString |
netlist | ) |
|
|
inline |
Set netlist directly.
- Parameters
-
◆ setNodes()
| void SchematicContent::setNodes |
( |
QList< NodeInfo > |
N | ) |
|
|
inline |
Set node list.
- Parameters
-
◆ Comps
The documentation for this class was generated from the following files: