Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

FerroCADGui

FerroCAD-only GUI surface: providers, settings, overlays and view state.

Generated page. tools/api_docs.py reads this surface from the module itself. Do not edit it by hand.

The FerroCAD-only Gui API (the extensions upstream FreeCADGui lacks).

ViewState is a read-only snapshot pushed by the shell.

Functions

FunctionSummary
activeProvider(feature)The active backend for feature, or None when none is registered.
addDocumentListener(observer) -> NoneRegister observer for document lifecycle notifications.
addOverlay(node) -> NoneRegister a Coin node as a viewport overlay (FerroCAD extension).
providerSkin(feature, backend=None)The WGSL material program of feature’s backend, or None.
providers(feature=None) -> listThe provider manifests, in registration order.
refreshProviders(feature: str) -> dictAsk the active backend of feature to re-read the shared state.
registerProvider(feature: str, backend: str, label: str, command=None, priority: int = 0, activate=None, deactivate=None, refresh=None, settings=None, skin=None)Declare that backend provides feature (called from InitGui.py).
removeDocumentListener(observer) -> boolUnregister observer; returns whether it was registered.
removeOverlay(node) -> boolDrop a previously registered overlay, keyed by Python object identity.
setActiveProvider(feature: str, backend: str) -> dictMake backend the active provider for feature and apply it.
setSetting(feature: str, name: str, value) -> dictCoerce, validate and store one setting, then refresh the provider.
settings(feature: str, backend=None) -> listThe settings rows of feature’s active provider (or backend).
unregisterProvider(feature: str, backend: str) -> boolDrop a provider record; returns whether it existed.

Object ViewState

The shell’s presentation state, pushed by the shell (read-only here).

MemberSummary
axis_cross (attribute)—
grid (attribute)—
grid_major (attribute)—
grid_minor (attribute)—
grid_radius (attribute)—
projection (attribute)—

Values

NameSummary / value
PROVIDER_PREFERENCES‘User parameter:BaseApp/Preferences/Mods’