ParameterWizard
Parameter Wizard - Main coordinator for the Quick Select Parameters Wizard.
This module coordinates the wizard workflow, connecting UI, sampling, analysis, and recommendation components.
Classes
- class ParameterWizard
Coordinates the Quick Select Parameters wizard workflow.
This class manages the interaction between: - The embedded wizard UI (EmbeddedWizardPanel) - Interactive sampling (WizardSampler) - Analysis (WizardAnalyzer) - Recommendations (ParameterRecommender)
Methods:
- __init__()
Initialize the wizard.
- start()
Launch the wizard by embedding it in the options frame.
- handle_interaction_event()
Handle mouse interaction events forwarded from the main effect.
- on_foreground_sampled()
Called when foreground sampling completes a stroke.
- on_background_sampled()
Called when background sampling completes a stroke.
- on_boundary_traced()
Called when boundary tracing completes a stroke.
- generate_recommendation()
Generate final recommendation from all inputs.
- apply_recommendation()
Apply recommended parameters to the effect.
- clear_samples()
Clear all collected samples.
Functions
- start()
Launch the wizard by embedding it in the options frame.
- handle_interaction_event()
Handle mouse interaction events forwarded from the main effect.
- Args:
callerInteractor: VTK interactor that triggered the event. eventId: VTK event ID. viewWidget: The view widget where the event occurred.
- Returns:
True if the event was handled (consumed), False otherwise.
- on_foreground_sampled()
Called when foreground sampling completes a stroke.
- Args:
points: List of (i, j, k) coordinates. intensities: Array of intensity values.
- on_background_sampled()
Called when background sampling completes a stroke.
- Args:
points: List of (i, j, k) coordinates. intensities: Array of intensity values.
- on_boundary_traced()
Called when boundary tracing completes a stroke.
- Args:
points: List of (i, j, k) coordinates along boundary.
- generate_recommendation()
Generate final recommendation from all inputs.
- Returns:
WizardRecommendation with algorithm and parameter suggestions.
- apply_recommendation()
Apply recommended parameters to the effect.
- Args:
recommendation: The recommendation to apply.
- clear_samples()
Clear all collected samples.