Abstract base class for schematic symbols.
More...
#include <symbol.h>
|
|
| Symbol () |
| | Class constructor.
|
| |
| virtual void | addWire (Wire *Wire)=0 |
| | Add wire connection to symbol.
|
| |
| virtual QRectF | boundingRect () const =0 |
| | Get symbol bounding rectangle.
|
| |
| virtual QPainterPath | shape () const =0 |
| | Get symbol selection shape.
|
| |
| virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)=0 |
| | Paint symbol on scene.
|
| |
| virtual QPoint | getPortLocation (int)=0 |
| | Get port location in symbol coordinates.
|
| |
|
| virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value)=0 |
| | Handle item change events.
|
| |
| virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event)=0 |
| | Handle mouse press events.
|
| |
| virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event)=0 |
| | Handle mouse release events.
|
| |
Abstract base class for schematic symbols.
◆ addWire()
| virtual void Symbol::addWire |
( |
Wire * |
Wire | ) |
|
|
pure virtual |
Add wire connection to symbol.
- Note
- No implementation provided as this is an abstract base class. The implementation will be overriden in the classes inheriting Symbol
Implemented in Component, and Node.
◆ boundingRect()
| virtual QRectF Symbol::boundingRect |
( |
| ) |
const |
|
pure virtual |
Get symbol bounding rectangle.
- Note
- No implementation provided as this is an abstract base class. The implementation will be overriden in the classes inheriting Symbol
Implemented in Component, and Node.
◆ getPortLocation()
| virtual QPoint Symbol::getPortLocation |
( |
int |
| ) |
|
|
pure virtual |
Get port location in symbol coordinates.
- Note
- No implementation provided as this is an abstract base class. The implementation will be overriden in the classes inheriting Symbol
Implemented in Component, and Node.
◆ itemChange()
| virtual QVariant Symbol::itemChange |
( |
GraphicsItemChange |
change, |
|
|
const QVariant & |
value |
|
) |
| |
|
protectedpure virtual |
Handle item change events.
- Note
- No implementation provided as this is an abstract base class. The implementation will be overriden in the classes inheriting Symbol
Implemented in Component, and Node.
◆ mousePressEvent()
| virtual void Symbol::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
protectedpure virtual |
Handle mouse press events.
- Note
- No implementation provided as this is an abstract base class. The implementation will be overriden in the classes inheriting Symbol
Implemented in Component, and Node.
◆ mouseReleaseEvent()
| virtual void Symbol::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
protectedpure virtual |
Handle mouse release events.
- Note
- No implementation provided as this is an abstract base class. The implementation will be overriden in the classes inheriting Symbol
Implemented in Component, and Node.
◆ paint()
| virtual void Symbol::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget |
|
) |
| |
|
pure virtual |
Paint symbol on scene.
- Note
- No implementation provided as this is an abstract base class. The implementation will be overriden in the classes inheriting Symbol
Implemented in Component, and Node.
◆ shape()
| virtual QPainterPath Symbol::shape |
( |
| ) |
const |
|
pure virtual |
Get symbol selection shape.
- Note
- No implementation provided as this is an abstract base class. The implementation will be overriden in the classes inheriting Symbol
Implemented in Component, and Node.
The documentation for this class was generated from the following file: