Expand description
§Fixture Management Module
This module provides the core structures and logic for managing lighting fixtures, their DMX-Channels, colors, properties, and global registries.
§Key Components
Fixture: Represents an active lighting fixture instance assigned to a universe.FixtureType: Template defining the channel layout and properties of a fixture type.calculate_dmx_values: Generates the final DMX-Channel buffer across all universes.
Structs§
- Channel
Parameter - Represents a DMX-Channel parameter, managing the base channel and its fine-degree channels.
It uses an
ArrayVecto store the coarse channel alongside optional fine channels up toMAX_FINE_DEGREES. - Fixture
- A single fixture instance with its current property values and DMX-Channels.
- Fixture
Type - A template defining the DMX-Channel layout for a type of lighting fixture.
Enums§
- Channel
Error - Errors that can occur when reserving or accessing DMX-Channels.
- Color
Property Type - Identifies a specific channel or property of a [
Color]. - Fixture
Error - Errors that can occur when managing fixtures and fixture types.
- Property
Type - A fixture property, either a simple single-channel attribute or a color.
Constants§
- MAX_
CHANNEL - The maximum number of DMX-Channels per universe (DMX512 standard).
- MAX_
FINE_ DEGREES - The maximum number of fine-tuning degrees (resolution layers) supported per channel.
Functions§
- calculate_
dmx_ values - Collects values from all registered fixtures via their channel and color properties.
Type Aliases§
- Channel
InUniverse - A composite identifier representing a specific channel within a designated universe.
- Channel
Index - The index type used to address individual DMX-Channels within a universe.
- Channel
Value - The fundamental numeric data type used to represent raw DMX-Channel values internally.
- Float
Channel Value - A floating-point type matching the scale of
ChannelValue, used for mathematical and color transformations. - Universe
Index - The index type used to uniquely identify and address distinct DMX universes.