FDMXConversions

Common conversions for dmx

Choose your operating system:

Windows

macOS

Linux

References

Module

DMXProtocol

Header

/Engine/Plugins/VirtualProduction/DMX/DMXProtocol/Source/DMXProtocol/Public/DMXConversions.h

Include

#include "DMXConversions.h"

Syntax

class FDMXConversions

Remarks

Common conversions for dmx

Constructors

No constructors are accessible with public or protected access.

Functions

Name Description

Public function Static

uint32

 

ClampValueBySignalFormat

(
    uint32 Value,
    EDMXFixtureSignalFormat SignalForma...
)

Clamps the Value to be in value range of the Signal Format

Public function Static

uint32

 

ClampValueBySignalFormat

(
    T Value,
    EDMXFixtureSignalFormat SignalForma...
)

Public function Static

uint32

 

GetSignalFormatMaxValue

(
    EDMXFixtureSignalFormat SignalForma...
)

Returns the Max Value the Data Type can take

Public function Static

uint8

 

GetSizeOfSignalFormat

(
    EDMXFixtureSignalFormat SignalForma...
)

Returns the number of Bytes the Signal Format uses

Public function Static

TArray< uint...

 

NormalizedDMXValueToByteArray

(
    T NormalizedValue,
    EDMXFixtureSignalFormat SignalForma...,
    bool bLSBOrder
)

Converts a normalized value to a byte array.

Public function Static

TArray< uint...

 

UnsignedInt32ToByteArray

(
    T Value,
    EDMXFixtureSignalFormat SignalForma...,
    bool bLSBOrder
)

TODO: All DMX conversions eventually should be moved here (e.g. from subsystem, fixture type) as statics, unit tested and optimized.