selectModelTypeDlg

class utils.dlgs.selectModelTypeDlg

Bases: handle

SELECTMODELTYPEDLG - Controller for the Select Model Type dialog.

Displays a dialog with four radio buttons that let the user choose the model type (63 / 255 / 65535 / 4294967295 materials). A description text area updates to explain the selected type. Logic ported from MIB2 mibSelectModelTypeDlg.m.

Usage:

Example 1:

dlg = utils.dlgs.selectModelTypeDlg(obj.mibModel.getProgressBarParent(), obj.mibModel.mibPath);
modelType = dlg.run();
if isempty(modelType); return; end
Constructor Summary
selectModelTypeDlg(ParentFigure, mibPath)

SELECTMODELTYPEDLG - Constructor.

Syntax:

function obj = selectModelTypeDlg(ParentFigure, mibPath)

Input Arguments:
  • ParentFigure - handle to the parent GUI (AppContainer or uifigure); used to center the dialog. In MIB pass obj.mibModel.getProgressBarParent() so the dialog follows the active dataset window when it is undocked.

  • mibPath - (optional) char, path to the MIB installation directory; used to locate icon images. Pass [] or ‘’ to use auto-detection.

Method Summary
run()

RUN - Block execution and return the selected model type.

Syntax:

function modelType = run(obj)

Output Arguments:
  • modelType - one of {63, 255, 65535, 4294967295}, or [] if cancelled