Navigation
API > API/Plugins > API/Plugins/TextureGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UTG_Pin
References
| Module | TextureGraph |
| Header | /Engine/Plugins/Experimental/TextureGraph/Source/TextureGraph/Public/TG_Pin.h |
| Include | #include "TG_Pin.h" |
Syntax
UCLASS ()
class UTG_Pin : public UObject
Remarks
Pin is a struct referencing: the Node where it belongs and the ArgumentHash to the corresponding Argument in the Signature The Edge(s) connecting to this pin, aka the other pinId to which this pin is connected. The Var containing the default value for this pin
Pins are stored in the Graph. Created when instancing a Node.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FTG_Evaluation::VarConformer | ConformerFunctor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | In the case the pin is an input, and is connected and the feeding pin var needs a conversion This implies that during the evaluation, the feeding Var is Converted into the SelfVar which is then input in the expression | ||
| FTG_Var * | EditConvertedVar returns the internal Var used to input its value in the pin's expression AFTER conversion Should only be accessed by the Graph Evaluation | ||
| FTG_Var * | EditSelfVar () |
||
| FName | GetAliasName () |
||
| FTG_Argument | GetArgument () |
||
| FName | |||
| FTG_Name | |||
| FTG_ArgumentType | |||
| const TArray< FTG_Id > & | GetEdges () |
||
| FString | Useful for the UI: access the current value of this pin as passed to the evaluation if it is an input or received from the evaluation if it is an output if output pin: the selfVar else if input pin: if NOT connected: the selfVar else if connected with a conversion: the convertedVar else if connected without conversion: the Var from the connected pin This is MEANT TO BE USED for UI purpose !!!! | ||
| FProperty * | Access the FProperty associated to this pin in the Expression::Class of the node A valid FProperty is returned if it exists, null otherwise | ||
| FTG_Id | GetId () |
||
| FName | |||
| FTG_Id | GetNodeId () |
||
| UTG_Node * | GetNodePtr () |
||
| const FTG_Var * | GetSelfVar () |
||
| FTG_Id | GetSelfVarId () |
||
| bool | |||
| bool | GetValue
(
FTG_Texture& OutValue |
Texture value getter only on a Texture argument. | |
| bool | GetValue
(
FTG_Variant& OutValue |
Variant value getter only if a Variant argument OR if the argument is one of the supported type by Variant (Scalar/Color/Vector/Texture) After getting the value, the next step is to check the type contained in the variant. | |
| bool | GetValue
(
float& OutValue |
Scalar getter only on a scalar argument. | |
| bool | GetValue
(
FLinearColor& OutValue |
Color or Vector getter only on a vector or color argument. | |
| FTG_Id | GetVarId () |
GetVarId returns the Id of the current valid Var for this Pin. | |
| bool | HasAliasName () |
||
| FTG_Hash | Hashing. | ||
| FTG_Hash | Hash () |
||
| bool | IsArgColor () |
||
| bool | IsArgObject
(
UClass* InClass |
||
| bool | IsArgScalar () |
Check the type of the argument's Var expected to be contained in the Pin's Var. | |
| bool | IsArgTexture () |
||
| bool | IsArgVariant () |
||
| bool | IsArgVector () |
||
| bool | IsConnected () |
||
| bool | IsInput () |
||
| bool | |||
| bool | IsOutput () |
||
| bool | IsParam () |
||
| bool | IsPrivate () |
||
| bool | IsSetting () |
||
| bool | IsValid () |
||
| bool | Access the SelfVar of the Pin containing the currrent default value for the pin if an output pin, SelfVar contains the current result value produced by the node's expression by last evaluation if an input pin, SelfVar contains the current 'default' value of the pin used as expression input IF the pin is not connected. | ||
| FString | |||
| FString | LogHead () |
||
| FString | LogTooltip () |
||
| bool | |||
| void | NotifyPinSelfVarChanged
(
bool bIsTweaking |
||
| void | SetAliasName
(
FName InAliasName |
||
| bool | SetValue
(
const T& Value |
Template version of the setter works correctly as long as the selfvar contains exactly the specified type Use with care | |
| bool | SetValue
(
const FTG_TextureDescriptor& Value |
||
| bool | SetValue
(
FTG_Texture& |
||
| bool | |||
| void | Set the self var value from string Used by UI to assign pin default value This is the same as the selfvar setter | ||
| bool | |||
| bool | |||
| bool | SetValue
(
double Value |
||
| bool | SetValue
(
float Value |
Setters for Scalar, Color, Vector arguments. | |
| bool | SetValue
(
const FLinearColor& Value |
||
| bool | SetValue
(
const float* Value, |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | Modify
(
bool bAlwaysMarkDirty |
Note that the object will be modified. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | Override serialization for conditional serialization of SelfVar. |