wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
Or.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8#pragma once
9
11
16class Or : public GraphicElement
17{
18 Q_OBJECT
19
20public:
22 explicit Or(QGraphicsItem *parent = nullptr);
23
25 void updateLogic() override;
26};
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.
void updateLogic() override
Sets output to the logical OR of all inputs.
Definition Or.cpp:48
Or(QGraphicsItem *parent=nullptr)
Constructs an Or gate element with default 2 inputs.
Definition Or.cpp:42