ImFusion C++ SDK 4.5.0
ImFusion::ModelManagerSettings Class Reference

#include <ImFusion/ML/ModelManagerSettings.h>

Settings schema used by the global Settings dialog for the Model Manager page. More...

Inheritance diagram for ImFusion::ModelManagerSettings:

Detailed Description

Settings schema used by the global Settings dialog for the Model Manager page.

This configurable currently defines metadata (label/lazy init behavior) and is persisted via GlobalSettings. The actual interactive controls are implemented in ModelManagerSettingsWidget.

Lazy-init behavior:

  • configuration() sets the schema attribute lazyInit=true.
  • SettingsDialog then defers widget construction for this page and creates only a lightweight placeholder while opening the settings dialog.
  • The actual widget is created only when the user selects the "Model Manager" page.

Why this is used: Opening ModelManagerSettingsWidget may trigger expensive initialization work (e.g. model manager setup, local directory checks, remote/local model list refresh). Deferring that work avoids startup latency when users open Settings but do not navigate to the Model Manager section.

Public Member Functions

 ModelManagerSettings ()
 Loads persisted values from GlobalSettings.
 ~ModelManagerSettings () override
 Stores values back to GlobalSettings.
void configure (const Properties *p) override
 Applies values from a serialized properties object.
void configuration (Properties *p) const override
 Serializes values and UI-related metadata used by SettingsDialog.
Public Member Functions inherited from ImFusion::Configurable
virtual void configureDefaults ()
 Retrieve the properties of this object, replaces values with their defaults and sets it again.
void registerParameter (ParameterBase *param)
 Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration().
void unregisterParameter (const ParameterBase *param)
 Remove the given Parameter or SubProperty from the list of registered parameters.
 Configurable (const Configurable &rhs)
 Configurable (Configurable &&rhs) noexcept
Configurable & operator= (const Configurable &)
Configurable & operator= (Configurable &&) noexcept

Additional Inherited Members

Public Attributes inherited from ImFusion::Configurable
Signal signalParametersChanged
 Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted.
Protected Attributes inherited from ImFusion::Configurable
std::vector< Paramm_params
 List of all registered Parameter and SubProperty instances.

Member Function Documentation

◆ configure()

void ImFusion::ModelManagerSettings::configure ( const Properties * p)
overridevirtual

Applies values from a serialized properties object.

Reimplemented from ImFusion::Configurable.

◆ configuration()

void ImFusion::ModelManagerSettings::configuration ( Properties * p) const
overridevirtual

Serializes values and UI-related metadata used by SettingsDialog.

Reimplemented from ImFusion::Configurable.


The documentation for this class was generated from the following file:
  • ImFusion/ML/ModelManagerSettings.h
Search Tab / S to search, Esc to close