wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
VisibilityManager Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ VisibilityManager()

VisibilityManager::VisibilityManager ( Scene * scene)
explicit

Definition at line 10 of file VisibilityManager.cpp.

Member Function Documentation

◆ gatesVisible()

bool VisibilityManager::gatesVisible ( ) const
inlinenodiscard

Definition at line 34 of file VisibilityManager.h.

◆ reapply()

void VisibilityManager::reapply ( )

Reapplies current visibility state (used after structural changes).

Definition at line 70 of file VisibilityManager.cpp.

References showGates(), and showWires().

◆ showGates()

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().

◆ showWires()

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().

◆ wiresVisible()

bool VisibilityManager::wiresVisible ( ) const
inlinenodiscard

Definition at line 35 of file VisibilityManager.h.


The documentation for this class was generated from the following files: