43 virtual bool isOn(
const int port = 0)
const = 0;
68 virtual void setOn(
const bool value,
const int port = 0);
88 void setAppearance(
const bool defaultAppearance,
const QString &fileName)
override;
110 for (
int portIndex = 0; portIndex <
outputSize(); ++portIndex) {
Enums::ElementType ElementType
Abstract base class for all graphical circuit elements.
GraphicElement(ElementType type, QGraphicsItem *parent=nullptr)
Constructs a graphic element of the given type, fetching all properties from the metadata registry.
qsizetype simOutputSize() const
Returns the number of simulation output slots.
void setOutputValue(const int index, const Status value)
Sets simulation output port index to value.
int type() const override
Returns the custom type identifier for this item.