Navigation
API > API/Plugins > API/Plugins/TextureGraph > API/Plugins/TextureGraph/Expressions
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UTG_Expression
- UTG_Expression_Blend
- UTG_Expression_Blur
- UTG_Expression_Brightness
- UTG_Expression_ChannelCombiner
- UTG_Expression_ChannelSplitter
- UTG_Expression_Graph
- UTG_Expression_TextureGraph
- UTG_Expression_Grayscale
- UTG_Expression_HSV
- UTG_Expression_HSV2RGB
- UTG_Expression_InputParam
- UTG_Expression_Color
- UTG_Expression_Scalar
- UTG_Expression_Texture
- UTG_Expression_Vector
- UTG_Expression_Invert
- UTG_Expression_Levels
- UTG_Expression_MaterialBase
- UTG_Expression_Material
- UTG_Expression_MaterialFunction
- UTG_Expression_MaterialID
- UTG_Expression_Noise
- UTG_Expression_NormalFromHeightMap
- UTG_Expression_Null
- UTG_Expression_Output
- UTG_Expression_OutputSettings
- UTG_Expression_Pattern
- UTG_Expression_RGB2HSV
- UTG_Expression_Shape
- UTG_Expression_Threshold
- UTG_Expression_Transform
- UTG_Expression_Variant
- UTG_Expression_BasicMath_Op
- UTG_Expression_Add
- UTG_Expression_Cross
- UTG_Expression_Divide
- UTG_Expression_Dot
- UTG_Expression_Multiply
- UTG_Expression_Subtract
- UTG_Expression_Clamp
- UTG_Expression_IfThenElse
- UTG_Expression_Lerp
- UTG_Expression_MAD
- UTG_Expression_Max
- UTG_Expression_Min
- UTG_Expression_OneInput
- UTG_Expression_Abs
- UTG_Expression_Cbrt
- UTG_Expression_Ceil
- UTG_Expression_Cube
- UTG_Expression_Exp
- UTG_Expression_Floor
- UTG_Expression_Log
- UTG_Expression_Log10
- UTG_Expression_Log2
- UTG_Expression_Round
- UTG_Expression_Sqrt
- UTG_Expression_Square
- UTG_Expression_Pow
- UTG_Expression_SmoothStep
- UTG_Expression_Trigonometry
References
| Module | TextureGraph |
| Header | /Engine/Plugins/Experimental/TextureGraph/Source/TextureGraph/Public/Expressions/TG_Expression.h |
| Include | #include "Expressions/TG_Expression.h" |
Syntax
UCLASS (Abstract)
class UTG_Expression : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | InstanceExpressionClassVersion | UTG_Expression classes have a per instance expression class version number recovered from serialization. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AssignCommonVariantType
(
FTG_Variant::EType InType |
||
| FTG_SignaturePtr | Build Signature in derived classes dynamically. | ||
| FTG_SignaturePtr | Build the signature of the expression by collecting the FTG_ExpressionXXX UProperties of the class. | ||
| bool | CanHandleAsset
(
UObject* Asset |
||
| bool | |||
| void | CopyVarFromExpressionArgument
(
const FTG_Argument& Arg, |
||
| void | CopyVarGeneric
(
const FTG_Argument& Arg, |
||
| void | CopyVarToExpressionArgument
(
const FTG_Argument& Arg, |
||
| FTG_Variant::EType | |||
| void | Evaluate
(
FTG_EvaluationContext* InContext |
This is THE evaluation call to overwrite. | |
| FName | GetCategory () |
||
| FTG_Variant::EType | |||
| FTG_Name | |||
| int32 | Method returning this Expression class version that can be overwritten in a sub class requiring to support version change | ||
| UTG_Node * | Expression notifies its parent node on key events. | ||
| FTG_SignaturePtr | GetSignature () |
||
| FTG_Signature::FInit | |||
| FName | GetTitleName () |
||
| FText | |||
| void | Initialize () |
Initialize the expression in cascade from the node allowing it to re create transient data This is called in the PostLoad of the Graph | |
| void | LogEvaluation
(
FTG_EvaluationContext* InContext |
Log the actual values for vars and the expression evaluation Called from SetupAndEvaluate call if Context ask for it | |
| void | NotifyCommonVariantTypeChanged
(
FTG_Variant::EType NewType |
||
| void | NotifyExpressionChanged
(
const FPropertyChangedEvent& PropertyChangedEvent |
If some state has changed in the expression that affects its representation triggered when a property has changed and needs to be copied over to its corresponding Var NB: required to be public for calling from TG_Variant customization | |
| void | If the signature changes and the node need to regenerate its own signature. | ||
| void | PropertyChangeTriggered
(
FProperty* Property, |
||
| void | |||
| void | SetTitleName
(
FName NewName |
||
| void | SetupAndEvaluate
(
FTG_EvaluationContext* InContext |
Called first from the Graph::Evaluate/Traverse which then call the Evaluate function. | |
| bool | Validate
(
MixUpdateCyclePtr Cycle |
Validate internal checks, warnings and errors. | |
| void | ValidateGenerateConformer
(
UTG_Pin* InPin |
Validate that the expression conforms to a conformant function (e.g. Clamp etc.) |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | CanEditChange
(
const FProperty* InProperty |
Called by the editor to query whether a property of this object is allowed to be modified. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostEditUndo () |
Called after applying a transaction to the object. | |
| void | Override serialization to save Class Serialization version. |