|
wiRedPanda
Logic Circuit Simulator
|
Controls the visibility of gates, wires, and port handles in the circuit scene. More...
#include <VisibilityManager.h>
Public Member Functions | |
| bool | gatesVisible () const |
| void | reapply () |
| Reapplies current visibility state (used after structural changes). | |
| void | showGates (bool visible) |
| Shows or hides gate elements (Input/Output/Other groups are always visible). | |
| void | showWires (bool visible) |
| Shows or hides connection wires, node elements, and port handles. | |
| VisibilityManager (Scene *scene) | |
| bool | wiresVisible () const |
Controls the visibility of gates, wires, and port handles in the circuit scene.
Extracted from Scene to decouple visibility toggle logic from the main circuit scene. Called by Scene::setCircuitUpdateRequired() and by MainWindow UI toggles.
Definition at line 20 of file VisibilityManager.h.
|
explicit |
Definition at line 10 of file VisibilityManager.cpp.
|
inlinenodiscard |
Definition at line 34 of file VisibilityManager.h.
| void VisibilityManager::reapply | ( | ) |
Reapplies current visibility state (used after structural changes).
Definition at line 70 of file VisibilityManager.cpp.
References showGates(), and showWires().
| void VisibilityManager::showGates | ( | bool | visible | ) |
Shows or hides gate elements (Input/Output/Other groups are always visible).
Definition at line 15 of file VisibilityManager.cpp.
References GraphicElement::Type.
Referenced by reapply().
| void VisibilityManager::showWires | ( | bool | visible | ) |
Shows or hides connection wires, node elements, and port handles.
Definition at line 37 of file VisibilityManager.cpp.
References Connection::Type, and GraphicElement::Type.
Referenced by reapply().
|
inlinenodiscard |
Definition at line 35 of file VisibilityManager.h.