UDMXEntityFixturePatch

A DMX fixture patch that can be patch to channels in a DMX Universe via the DMX Library Editor.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

DMXRuntime

Header

/Engine/Plugins/VirtualProduction/DMX/DMXEngine/Source/DMXRuntime/Public/Library/DMXEntityFixturePatch.h

Include

#include "Library/DMXEntityFixturePatch.h"

Syntax

UCLASS(BlueprintType, Blueprintable, Meta=(DisplayName="DMX Fixture Patch"))
class UDMXEntityFixturePatch :
    public UDMXEntity,
    public FTickableGameObject

Remarks

A DMX fixture patch that can be patch to channels in a DMX Universe via the DMX Library Editor.

Use in DMXComponent or call SetReceiveDMXEnabled with 'true' to enable receiving DMX.

Variables

Name Description

Protected variable UProperty Category, EditAnywhere BlueprintReadOnly

int32

 

ActiveMode

The Index of the Mode in the Fixture Type the Patch uses

Protected variable UProperty nontransactional

int32

 

AutoStartingAddress

Starting channel from auto-assignment. Used when AutoAssignAddress is true

Protected variable UProperty Category, EditAnywhere, Meta BlueprintReadOnly

bool

 

bAutoAssignAddress

Auto-assign address from drag/drop list order and available channels

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

bool

 

bReceiveDMXInEditor

If true, the patch receives dmx and raises the OnFixturePatchReceivedDMX event in editor.

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

TArray< FName >

 

CustomTags

Custom tags for filtering patches

Public variable UProperty Category, EditAnywhere BlueprintReadOnly

FLinearColor

 

EditorColor

Color when displayed in the fixture patch editor

Protected variable UProperty Category, EditAnywhere, Meta BlueprintReadOnly

int32

 

ManualStartingAddress

Starting channel for when auto-assign address is false

Public variable

FDMXOnFixturePa...

 

OnFixturePatchReceivedDMX

Broadcasts when the patch received dmx

Protected variable UProperty Category, Meta BlueprintReadWrite blueprintsetter, visibledefaultsonly

UDMXEntityFixtu...

 

ParentFixtureTypeTemplate

Property to point to the template parent fixture for details panel purposes

Protected variable UProperty Category, EditAnywhere, Meta BlueprintReadOnly

int32

 

UniverseID

The local universe of the patch

Constructors

Name Description

Public function

UDMXEntityFixturePatch()

Functions

Name Description

Public function Const UFunction BlueprintPure, Category

bool

 

ContainsAttribute

(
    FDMXAttributeName FunctionAttribute
)

Returns true if the fixture patch contains the attribute.

Public function Const UFunction BlueprintPure, Category

TMap< int32,...

 

ConvertAttributeMapToRawMap

(
    const TMap< FDMXAttributeName, int3...
)

Returns a map of function channels and their values.

Public function Const UFunction BlueprintPure, Category

TMap< FDMXAt...

 

ConvertToValidMap

(
    const TMap< FDMXAttributeName, int3...
)

Returns a map that only contains attributes used this patch.

Public function Static UFunction BlueprintCallable, Category

UDMXEntityFi...

 

CreateFixturePatchInLibrary

(
    FDMXEntityFixturePatchConstructionP...,
    const FString& DesiredName,
    bool bMarkDMXLibraryDirty
)

Creates a new Fixture Patch in the DMX Library using the specified Fixture Type

Public function Const

const FDMXFi...

 

GetActiveMode()

Returns the active mode, or nullptr if there is no valid active mode

Public function Const

int32

 

GetActiveModeIndex()

Returns the index of the Mode the Patch uses from its Fixture Type

Public function Static

FName

 

GetActiveModePropertyNameChecked()

Public function Const UFunction BlueprintPure, Category

TArray< FDMX...

 

GetAllAttributesInActiveMode()

Returns an array of valid attributes for the currently active mode.

Public function UFunction BlueprintCallable, Category

bool

 

GetAllMatrixCells

(
    TArray< FDMXCell >& Cells
)

Gets all matrix cells

Public function Const UFunction BlueprintPure, Category

TMap< FDMXAt...

 

GetAttributeChannelAssignments()

Returns a map of Attributes and their assigned channels

Public function Const UFunction BlueprintPure, Category

TMap< FDMXAt...

 

GetAttributeDefaultMap()

Returns a map of function names and default values.

Public function Const

const FDMXFi...

 

GetAttributeFunction

(
    const FDMXAttributeName& Attribute
)

Returns the function currently mapped to the passed in Attribute, if any.

Public function Const UFunction BlueprintPure, Category

TMap< FDMXAt...

 

GetAttributeFunctionsMap()

Returns a map of attributes and function names.

Public function Const UFunction BlueprintPure, Category

TMap< FDMXAt...

 

GetAttributeSignalFormats()

Returns a map of function names and their Data Types.

Public function UFunction BlueprintCallable, Category

void

 

GetAttributesValues

(
    TMap< FDMXAttributeName, int32 >& ...
)

Returns the value of each attribute, or zero if no value was ever received.

Public function UFunction BlueprintCallable, Category

int32

 

GetAttributeValue

(
    FDMXAttributeName Attribute,
    bool& bSuccess
)

Retrieves the value of an Attribute. Will fail and return 0 if the Attribute doesn't exist.

Public function Static

FName

 

GetAutoAssignAddressPropertyNameChecked()

Public function Const

int32

 

GetAutoStartingAddress()

Returns the auto starting channel.

Public function Static

FName

 

GetAutoStartingAddressPropertyNameChecked()

Public function UFunction BlueprintCallable, Category

bool

 

GetCellAttributes

(
    TArray< FDMXAttributeName >& CellA...
)

Gets all attributes names of a cell

Public function Const UFunction BlueprintPure, Category

int32

 

GetChannelSpan()

Returns the number of channels this Patch occupies with the Fixture functions from its Active Mode or 0 if the patch has no valid Active Mode

Public function Const

const TArray...

 

GetCustomTags()

Returns custom tags defined for the patch

Public function Const UFunction BlueprintPure, Category

int32

 

GetEndingChannel()

Returns the last channel of the patch

Public function Const

UDMXEntityFi...

 

GetFixtureType()

Gets the parent fixture type this was constructed from

Public function Const

const FDMXSi...

 

GetLastReceivedDMXSignal()

Returns the last received DMX signal.

Public function Const

int32

 

GetManualStartingAddress()

Returns the manual starting channel.

Public function Static

FName

 

GetManualStartingAddressPropertyNameChecked()

Public function UFunction BlueprintCallable, Category

bool

 

GetMatrixCell

(
    const FIntPoint& CellCoordinate,
    FDMXCell& Cell
)

Gets the cell corresponding to the passed in coordinate

Public function UFunction BlueprintCallable, Category

bool

 

GetMatrixCellChannelsAbsolute

(
    const FIntPoint& CellCoordinate,
    TMap< FDMXAttributeName, int32 >& ...
)

Gets the absolute starting channel of each cell attribute at given coordinate

Public function UFunction BlueprintCallable, Category

bool

 

GetMatrixCellChannelsAbsoluteWithValidation

(
    const FIntPoint& InCellCoordinate,
    TMap< FDMXAttributeName, int32 >& ...
)

Validates and gets the absolute starting channel of each cell attribute at given coordinate

Public function UFunction BlueprintCallable, Category

bool

 

GetMatrixCellChannelsRelative

(
    const FIntPoint& CellCoordinate,
    TMap< FDMXAttributeName, int32 >& ...
)

Gets the starting channel of each cell attribute at given coordinate, relative to the Starting Channel of the patch.

Public function UFunction BlueprintCallable, Category

bool

 

GetMatrixCellValues

(
    const FIntPoint& CellCoordinate,
    TMap< FDMXAttributeName, int32 >& ...
)

Gets the DMX Cell value using matrix coordinates

Public function Const UFunction BlueprintPure, Category

bool

 

GetMatrixProperties

(
    FDMXFixtureMatrix& MatrixPropertie...
)

Gets the Matrix Fixture properties, returns false if the patch is not using a matrix fixture

Public function UFunction BlueprintCallable, Category

void

 

GetNormalizedAttributesValues

Returns the normalized value of each attribute, or zero if no value was ever received.

Public function UFunction BlueprintCallable, Category, Meta

float

 

GetNormalizedAttributeValue

(
    FDMXAttributeName Attribute,
    bool& bSuccess
)

Retrieves the normalized value of an Attribute.

Public function UFunction BlueprintCallable, Category

bool

 

GetNormalizedMatrixCellValues

(
    const FIntPoint& CellCoordinate,
    TMap< FDMXAttributeName, float >& ...
)

Gets the DMX Cell value using matrix coordinates.

Public function Static

FDMXOnFixtur...

 

GetOnFixturePatchChanged()

Returns a delegate that is and should be broadcast whenever a Fixture Type changed

Public function Static

FName

 

GetParentFixtureTypeTemplatePropertyNameChecked()

Public function Const UFunction BlueprintPure, Category

int32

 

GetStartingChannel()

Return the starting channel

Public function Const

int32

 

GetUniverseID()

Returns the universe ID of the patch

Public function Static

FName

 

GetUniverseIDPropertyNameChecked()

Property name getters.

Public function Const

bool

 

IsAutoAssignAddress()

Returns true if the patch is set to auto assign address

Public function Const UFunction BlueprintPure, Category

bool

 

IsMapValid

(
    const TMap< FDMXAttributeName, int3...
)

Returns true if given function map is valid for this fixture.

Public function

void

 

RebuildCache()

Rebuilds the cache.

Public function Static UFunction BlueprintCallable, Category

void

 

RemoveFixturePatchFromLibrary

(
    FDMXEntityFixturePatchRef FixturePa...
)

Removes a fixture patch from the DMX Library

Public function UFunction BlueprintCallable, Category

void

 

SendDMX

(
    TMap< FDMXAttributeName, int32 > At...
)

Send DMX using attribute names and integer values.

Public function UFunction BlueprintCallable, Category

bool

 

SendMatrixCellValue

(
    const FIntPoint& CellCoordinate,
    const FDMXAttributeName& Attribute,
    int32 Value
)

Sends the DMX value of the Attribute to specified matrix coordinates

Public function UFunction BlueprintCallable, Category

bool

 

SendNormalizedMatrixCellValue

(
    const FIntPoint& CellCoordinate,
    const FDMXAttributeName& Attribute,
    float RelativeValue
)

Maps the normalized value to the Attribute's full value range and sends it to specified matrix coordinates

Public function

bool

 

SetActiveModeIndex

(
    int32 NewActiveModeIndex
)

Sets the index of the Mode the Patch uses from its Fixture Type

Public function

void

 

SetAutoAssignAddressUnsafe

(
    bool bShouldAutoAssignAddress
)

Sets bAutoAssignAddress for the patch.

Public function

void

 

SetAutoStartingAddress

(
    int32 NewAutoStartingAddress
)

Sets the auto starting address

Public function UFunction BlueprintCallable, Category

void

 

SetFixtureType

(
    UDMXEntityFixtureType* NewFixt...
)

Sets the fixture type this is using

Public function

void

 

SetManualStartingAddress

(
    int32 NewManualStartingAddress
)

Sets the manual starting address

Public function UFunction BlueprintCallable, Category

void

 

SetStartingChannel

(
    int32 NewStartingChannel
)

Sets the starting channel of the Fixture Patch.

Public function

void

 

SetUniverseID

(
    int32 NewUniverseID
)

Sets the Universe ID of the patch

Public function

void

 

ValidateActiveMode()

Called from Fixture Type to keep ActiveMode in valid range when Modes are removed from the Type

Overridden from UDMXEntity

Name Description

Public function Virtual Const

bool

 

IsValidEntity

(
    FText& OutReason
)

Checks for Entity correctness for usability with protocols.

Overridden from UObject

Name Description

Public function Virtual

bool

 

Modify

(
    bool bAlwaysMarkDirty
)

That the object will be modified.

Protected function Virtual

void

 

PostEditChangeChainProperty

(
    FPropertyChangedChainEvent& Proper...
)

This alternate version of PostEditChange is called when properties inside structs are modified.

Protected function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent& PropertyCha...
)

Called when a property on this object has been modified externally

Protected function Virtual

void

 

PostInitProperties()

Called after the C++ constructor and after the properties have been initialized, including those loaded from config.

Protected function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Overridden from FTickableGameObject

Name Description

Protected function Virtual Const

bool

 

IsTickableInEditor()

Used to determine whether the object should be ticked in the editor.

Overridden from FTickableObjectBase

Name Description

Protected function Virtual Const

TStatId

 

GetStatId()

Return the stat id to use for this tickable

Protected function Virtual Const

ETickableTic...

 

GetTickableTickType()

Virtual that can be overloaded by the inheriting class.

Protected function Virtual Const

bool

 

IsTickable()

Virtual that can be overloaded by the inheriting class.

Protected function Virtual

void

 

Tick

(
    float DeltaTime
)

Pure virtual that must be overloaded by the inheriting class.

Constants

Name

Description

OnFixturePatchChangedDelegate

Delegate broadcast when a Fixture Patch changed

Deprecated Functions

Name Description

Public function Const

bool

 

CanReadActiveMode()

Use GetActiveMode instead.

Public function Const UFunction BlueprintPure, Category, Meta

TMap< FDMXAt...

 

ConvertRawMapToAttributeMap

(
    const TMap< int32, uint8 >& RawMap
)

Deprecated since it's unclear how to use this function correctly. Use UDMXSubsystem::BytesToInt instead.

Public function Const UFunction BlueprintPure, Category, Meta

TArray< UDMX...

 

GetRelevantControllers()

Controllers are replaced with DMX Ports.

Public function Const UFunction BlueprintPure, Category, Meta

int32

 

GetRemoteUniverse()

Controllers are replaced with DMX Ports.

Public function Const UFunction BlueprintPure, Category, Meta

bool

 

IsInControllerRange

(
    const UDMXEntityController* In...
)

Controllers are replaced with DMX Ports.

Public function Const UFunction BlueprintPure, Category, Meta

bool

 

IsInControllersRange

(
    const TArray< UDMXEntityController ...
)

Controllers are replaced with DMX Ports.

Public function UFunction BlueprintCallable, Category, Meta

bool

 

SendMatrixCellValueWithAttributeMap

(
    const FIntPoint& CellCoordinate,
    const FDMXAttributeName& Attribute,
    int32 Value,
    const TMap< FDMXAttributeName, int3...
)

Deprecated due to ambigous arguments CellCoordinate and InAttributeNameChannelMap. Use SendMatrixCellValue or SendNormalizedMatrixCellValue instead.