Vital
|
A factory class for creating and configuring overlay components for wavetable editing. More...
#include <wavetable_overlay_factory.h>
Static Public Member Functions | |
static WavetableComponentOverlay * | createOverlay (WavetableComponentFactory::ComponentType component_type) |
Create an overlay for a given wavetable component type. | |
static void | setOverlayOwner (WavetableComponentOverlay *overlay, WavetableComponent *owner) |
Set the owner WavetableComponent of an already created overlay. | |
A factory class for creating and configuring overlay components for wavetable editing.
The WavetableOverlayFactory is responsible for instantiating the appropriate overlay component based on the type of a WavetableComponent. It also supports setting the overlay's owner after creation to properly connect the overlay with the underlying wavetable component for editing.
|
static |
Create an overlay for a given wavetable component type.
component_type | The component type for which the overlay is needed. |
This function constructs a specialized overlay class instance corresponding to the provided WavetableComponentFactory::ComponentType. The caller is responsible for managing the lifetime of the returned overlay.
|
static |
Set the owner WavetableComponent of an already created overlay.
overlay | The overlay whose owner should be set. |
owner | The WavetableComponent that this overlay will edit. |
After creating an overlay with createOverlay(), this function configures it with the correct owner. The owner is the wavetable component that the overlay will modify, allowing the overlay to display and manipulate the component's parameters.