Navigation
API > API/Plugins > API/Plugins/DMXRuntime > API/Plugins/DMXRuntime/Library
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDMXObjectBase
- UDMXEntity
- UDMXEntityFixturePatch
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
| Type | Name | Description | |
|---|---|---|---|
| int32 | ActiveMode | The Index of the Mode in the Fixture Type the Patch uses | |
| bool | bReceiveDMXInEditor | If true, the patch receives dmx and raises the OnFixturePatchReceivedDMX event in editor. | |
| TArray< FName > | CustomTags | Custom tags for filtering patches | |
| FTransform | DefaultTransform | The transform used when the DMX Library is spawned in a level. | |
| FLinearColor | EditorColor | Color when displayed in the fixture patch editor | |
| int32 | FixtureID | The Fixture ID of this patch | |
| FGuid | MVRFixtureUUID | The MVR Fixture UUID | |
| FDMXOnFixturePatchReceivedDMXDelegate | OnFixturePatchReceivedDMX | Broadcasts when the patch received dmx | |
| TObjectPtr< UDMXEntityFixtureType > | ParentFixtureTypeTemplate | The Fixture Type that defines the DMX channel layout of this Fixture Patch | |
| int32 | StartingChannel | Starting Channel of the Patch | |
| int32 | UniverseID | The local universe of the patch |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | ContainsAttribute
(
FDMXAttributeName FunctionAttribute |
Returns true if the Fixture Patch contains the specified attribute and can use it to send and receive DMX | |
| TMap< int32, uint8 > | ConvertAttributeMapToRawMap
(
const TMap< FDMXAttributeName, int32 >& FunctionMap |
Converts a map of Attribute Names with their DMX values to a map of DMX channels and with their DMX Values. | |
| TMap< FDMXAttributeName, int32 > | ConvertRawMapToAttributeMap
(
const TMap< int32, uint8 >& RawMap |
DEPRECATED 4.27 | |
| TMap< FDMXAttributeName, int32 > | ConvertToValidMap
(
const TMap< FDMXAttributeName, int32 >& FunctionMap |
Removes any Attribute Name that can not be sent or received by a Fixture Patch from an Attribute Name to DMX Value Map | |
| UDMXEntityFixturePatch * | CreateFixturePatchInLibrary
(
FDMXEntityFixturePatchConstructionParams ConstructionParams, |
Creates a new Fixture Patch in the DMX Library using the specified Fixture Type | |
| bool | FindFixtureID
(
int32& OutFixtureID |
Tries to find the fixture ID of the patch. | |
| void | GenerateFixtureID
(
int32 DesiredFixtureID |
Generates a unique Fixture ID for this patch. | |
| const FDMXFixtureMode * | Returns the active mode, or nullptr if there is no valid active mode | ||
| int32 | Returns the index of the Mode the Patch uses from its Fixture Type | ||
| FName | |||
| TArray< FDMXAttributeName > | Returns an array of attributes for the currently active mode. | ||
| bool | GetAllMatrixCells
(
TArray< FDMXCell >& Cells |
Gets all matrix cells | |
| TMap< FDMXAttributeName, int32 > | Returns a map of Attributes and their assigned channels | ||
| TMap< FDMXAttributeName, int32 > | Returns a map of function names and default values. | ||
| const FDMXFixtureFunction * | GetAttributeFunction
(
const FDMXAttributeName& Attribute |
Returns the function currently mapped to the passed in Attribute, if any. | |
| TMap< FDMXAttributeName, FDMXFixtureFunction > | Returns a map of attributes and function names. | ||
| TMap< FDMXAttributeName, EDMXFixtureSignalFormat > | Returns a map of function names and their Data Types. | ||
| void | GetAttributesValues
(
TMap< FDMXAttributeName, int32 >& AttributesValues |
DEPRECATED 5.5, renamed to GetAttributeValues. | |
| int32 | GetAttributeValue
(
FDMXAttributeName Attribute, |
Retrieves the value of an Attribute. Will fail and return 0 if the Attribute doesn't exist. | |
| void | GetAttributeValues
(
TMap< FDMXAttributeName, int32 >& AttributeValues |
Returns the value of each attribute, or zero if no value was ever received. | |
| bool | GetCellAttributes
(
TArray< FDMXAttributeName >& CellAttributes |
Gets all attributes names of a cell | |
| int32 | 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 | ||
| const TArray< FName > & | Returns custom tags defined for the patch | ||
| const FTransform & | Returns The transform used when the DMX Library is spawned in a level. | ||
| FName | |||
| int32 | Returns the last channel of the patch | ||
| int32 | GetFixtureID () |
Returns the MVR Fixture ÎD of this patch | |
| FName | |||
| UDMXEntityFixtureType * | Gets the parent fixture type this was constructed from | ||
| const FDMXSignalSharedPtr & | Returns the last received DMX signal. | ||
| bool | GetMatrixCell
(
const FIntPoint& CellCoordinate, |
Gets the cell corresponding to the passed in coordinate | |
| bool | GetMatrixCellChannelsAbsolute
(
const FIntPoint& CellCoordinate, |
Gets the absolute starting channel of each cell attribute at given coordinate | |
| bool | GetMatrixCellChannelsAbsoluteWithValidation
(
const FIntPoint& InCellCoordinate, |
Validates and gets the absolute starting channel of each cell attribute at given coordinate | |
| bool | GetMatrixCellChannelsRelative
(
const FIntPoint& CellCoordinate, |
Gets the starting channel of each cell attribute at given coordinate, relative to the Starting Channel of the patch. | |
| bool | GetMatrixCellValues
(
const FIntPoint& CellCoordinate, |
Gets the DMX Cell value using matrix coordinates | |
| bool | GetMatrixProperties
(
FDMXFixtureMatrix& MatrixProperties |
Gets the Matrix Fixture properties, returns false if the patch is not using a matrix fixture | |
| const FGuid & | Returns the MVR Fixture UUIDs of this patch | ||
| FName | |||
| void | GetNormalizedAttributesValues
(
FDMXNormalizedAttributeValueMap& NormalizedAttributeValues |
DEPRECATED 5.5, renamed to GetNormalizedAttributeValues. | |
| float | GetNormalizedAttributeValue
(
FDMXAttributeName Attribute, |
Retrieves the normalized value of an Attribute. | |
| void | GetNormalizedAttributeValues
(
FDMXNormalizedAttributeValueMap& NormalizedAttributesValues |
Returns the normalized value of each attribute, or zero if no value was ever received. | |
| bool | GetNormalizedMatrixCellValues
(
const FIntPoint& CellCoordinate, |
Gets the DMX Cell value using matrix coordinates. | |
| FDMXOnFixturePatchChangedDelegate & | Returns a delegate that is and should be broadcast whenever a Fixture Type changed | ||
| FName | |||
| TArray< UDMXEntityController * > | DEPRECATED 4.27 | ||
| int32 | DEPRECATED 4.27 | ||
| int32 | Return the starting channel | ||
| FName | |||
| TStatId | GetStatId () |
||
| ETickableTickType | |||
| int32 | Returns the universe ID of the patch | ||
| FName | Property name getters. | ||
| bool | IsInControllerRange
(
const UDMXEntityController* InController |
DEPRECATED 4.27 | |
| bool | IsInControllersRange
(
const TArray< UDMXEntityController* >& InControllers |
DEPRECATED 4.27 | |
| bool | IsMapValid
(
const TMap< FDMXAttributeName, int32 >& FunctionMap |
Returns true if the Fixture Patch contains all Attributes in an Attribute Name to DMX Value Map. | |
| bool | IsTickable () |
||
| bool | |||
| void | RebuildCache () |
Rebuilds the cache. | |
| void | RemoveFixturePatchFromLibrary
(
FDMXEntityFixturePatchRef FixturePatchRef |
Removes a fixture patch from the DMX Library | |
| void | Sends the default value for all attributes, including matrix attributes. | ||
| void | SendDMX
(
TMap< FDMXAttributeName, int32 > AttributeMap |
Send DMX using attribute names and integer values. | |
| bool | SendMatrixCellValue
(
const FIntPoint& CellCoordinate, |
Sends the DMX value of the Attribute to specified matrix coordinates | |
| bool | SendMatrixCellValueWithAttributeMap
(
const FIntPoint& CellCoordinate, |
Sends the DMX value of the Attribute to specified matrix coordinates with given Attribute Name Channel Map | |
| bool | SendNormalizedMatrixCellValue
(
const FIntPoint& CellCoordinate, |
Maps the normalized value to the Attribute's full value range and sends it to specified matrix coordinates | |
| void | Sends zeroes for all attributes, including matrix attributes. | ||
| bool | SetActiveModeIndex
(
int32 NewActiveModeIndex |
Sets the index of the Mode the Patch uses from its Fixture Type | |
| void | SetDefaultTransform
(
const FTransform& NewDefaultTransform |
Sets The transform used when the DMX Library is spawned in a level. | |
| void | SetFixtureType
(
UDMXEntityFixtureType* NewFixtureType |
Sets the fixture type this is using | |
| void | SetStartingChannel
(
int32 NewStartingChannel |
Sets the starting channel of the Fixture Patch. | |
| void | SetUniverseID
(
int32 NewUniverseID |
Sets the Universe ID of the patch | |
| void | Tick
(
float DeltaTime |
||
| void | Called from Fixture Type to keep ActiveMode in valid range when Modes are removed from the Type |
Overridden from UDMXEntity
| Type | Name | Description | |
|---|---|---|---|
| bool | IsValidEntity
(
FText& OutReason |
Checks for Entity correctness for usability with protocols. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | Modify
(
bool bAlwaysMarkDirty |
Note that the object will be modified. | |
| void | PostEditChangeChainProperty
(
FPropertyChangedChainEvent& PropertyChangedChainEvent |
This alternate version of PostEditChange is called when properties inside structs are modified. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Constants
| Name | Description |
|---|---|
| OnFixturePatchChangedDelegate | Delegate broadcast when a Fixture Patch changed |