Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SchematicContent Class Reference

Container for schematic circuit data. More...

#include <SchematicContent.h>

Public Member Functions

 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< ComponentInfogetComponents ()
 Get component list.
 
void setComponents (QList< ComponentInfo > C)
 Set component list.
 
QList< WireInfogetWires ()
 Get wire list.
 
QList< NodeInfogetNodes ()
 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.
 
Component, wire and node management
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.
 
Impedance accessors

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.
 

Public Attributes

QString Name
 Schematic name.
 
QString Type
 Schematic type (filter, attenuator, etc.)
 
QList< ComponentInfoComps
 Schematic elements.
 
QList< WireInfoWires
 Wire list.
 
QList< NodeInfoNodes
 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.
 

Detailed Description

Container for schematic circuit data.

Member Function Documentation

◆ appendComponent()

void SchematicContent::appendComponent ( struct ComponentInfo  C)
inline

Add component to schematic.

Parameters
CComponent information

◆ appendNode()

void SchematicContent::appendNode ( struct NodeInfo  N)
inline

Add node to schematic.

Parameters
NNode information

◆ appendText()

void SchematicContent::appendText ( QGraphicsTextItem *  text)
inline

Add text annotation.

Parameters
textText item

◆ appendWire() [1/3]

void SchematicContent::appendWire ( QString  O,
int  ON,
QString  D,
int  DN 
)

Add wire with connection details.

Parameters
OOrigin ID
ONOrigin port
DDestination ID
DNDestination 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
OOrigin ID
ONOrigin port
DDestination ID
DNDestination port
cWire color

◆ appendWire() [3/3]

void SchematicContent::appendWire ( WireInfo  WI)

Add wire to schematic.

Parameters
WIWire information

◆ export2QucsS()

QString SchematicContent::export2QucsS ( QString  )

Convert schematic to Qucs-S format.

Parameters
backendBackend simulator
Returns
Qucs-S formatted schematic

◆ exportSchematic()

QString SchematicContent::exportSchematic ( QString  environment,
QString  backend 
)

Export schematic to specified environment (so far, Qucs-S only)

Parameters
environmentTarget environment (e.g., "Qucs-S")
backendBackend simulator
Returns
Exported schematic string

◆ getComponentCounter()

int SchematicContent::getComponentCounter ( ComponentType  Comp)

Get count of specific component type.

Parameters
CompComponent type
Returns
Number of components of that type

◆ getComponents()

QList< ComponentInfo > SchematicContent::getComponents ( )
inline

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()

void SchematicContent::setComponents ( QList< ComponentInfo C)
inline

Set component list.

Parameters
CComponent list

◆ setFrequencySweep()

void SchematicContent::setFrequencySweep ( QString  f1,
QString  f2,
int  N 
)
inline

Set frequency sweep parameters for export.

Parameters
f1Start frequency
f2Stop frequency
NNumber of points

◆ setNetlist()

void SchematicContent::setNetlist ( QString  netlist)
inline

Set netlist directly.

Parameters
Netliststring

◆ setNodes()

void SchematicContent::setNodes ( QList< NodeInfo N)
inline

Set node list.

Parameters
NNode list

Member Data Documentation

◆ Comps

QList<ComponentInfo> SchematicContent::Comps

Schematic elements.

Component list


The documentation for this class was generated from the following files: