|
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Graphical component representation in schematic. More...
#include <component.h>


Public Types | |
| enum | { Type = UserType + 1 } |
Signals | |
| void | DoubleClicked (struct ComponentInfo) |
| Emitted when component is double-clicked. | |
Public Member Functions | |
| Component (GraphWidget *graphWidget, ComponentType, double, QMap< QString, QString >, QString ID) | |
| Component class constructor (individual parameters) | |
| Component (GraphWidget *graphWidget, struct ComponentInfo) | |
| Construct component from ComponentInfo struct. | |
| ~Component () | |
| Class destructor. | |
| void | addWire (Wire *Wire) |
| Add wire connection to component. | |
| QList< Wire * > | Wires () const |
| Get list of connected wires to this component. | |
| int | type () const |
| QRectF | boundingRect () const |
| Get component bounding rectangle. | |
| QPainterPath | shape () const |
| Get component selection shape. | |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
| Paint component on scene. | |
| QPoint | getPortLocation (int) |
| Get port location in component coordinates. | |
| QString | getID () |
| Get component identifier. | |
| void | setRotation (double R) |
| Set component rotation angle. | |
| void | setParameters (QMap< QString, QString > val) |
| Set component parameters. | |
| QMap< QString, QString > | getParameters () |
| Get component parameters. | |
| void | setComponentType (ComponentType CT) |
| Set component type. | |
| ComponentType | getComponentType () |
| Get component type. | |
Public Member Functions inherited from Symbol | |
| Symbol () | |
| Class constructor. | |
Protected Member Functions | |
| QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
| Handle item change events. | |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| Handle mouse press events. | |
| void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
| Handle mouse release events. | |
| void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
| Handle double click events. | |
Graphical component representation in schematic.
Schematic editor graphics widget.
| Component::Component | ( | GraphWidget * | graphWidget, |
| ComponentType | comp, | ||
| double | Rot_, | ||
| QMap< QString, QString > | val, | ||
| QString | ID | ||
| ) |
| Component::Component | ( | GraphWidget * | graphWidget, |
| struct ComponentInfo | CI | ||
| ) |
Construct component from ComponentInfo struct.
| graphWidget | Parent graph widget |
| CI | Component information structure |
|
virtual |
|
virtual |
|
signal |
Emitted when component is double-clicked.
| CI | Component information |
|
inline |
Get component type.
|
inline |
Get component identifier.
|
inline |
Get component parameters.
|
virtual |
|
protectedvirtual |
Handle item change events.
Implements Symbol.
|
inlineprotectedvirtual |
Handle mouse press events.
Implements Symbol.
|
inlineprotectedvirtual |
Handle mouse release events.
Implements Symbol.
|
virtual |
Paint component on scene.
| painter | QPainter instance |
| option | Style options |
| widget | Target widget |
Implements Symbol.
|
inline |
Set component type.
| CT | Component type |
|
inline |
Set component parameters.
| val | Parameter map |
|
inline |
Set component rotation angle.
| R | Rotation in degrees |
|
virtual |
|
inline |
Get list of connected wires to this component.