wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
Not.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 Not : public GraphicElement
17{
18 Q_OBJECT
19
20public:
22 explicit Not(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 NOT of the single input.
Definition Not.cpp:48
Not(QGraphicsItem *parent=nullptr)
Constructs a Not gate element.
Definition Not.cpp:42