FLandscapeEditDataInterface

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FLandscapeTextureDataInterface

FLandscapeEditDataInterface

References

Module

Landscape

Header

/Engine/Source/Runtime/Landscape/Public/LandscapeEdit.h

Include

#include "LandscapeEdit.h"

Syntax

struct FLandscapeEditDataInterface : public FLandscapeTextureDataInterface

Constructors

Name Description

Public function

FLandscapeEditDataInterface

(
    ULandscapeInfo* InLandscape,
    bool bInUploadTextureChangesToGPU
)

Tor

Functions

Name Description

Public function Const

bool

 

CanHaveLandscapeLayersContent()

Public function

void

 

DeleteLayer

(
    ULandscapeLayerInfoObject* Lay...
)

Delete a layer and re-normalize other layers.

Public function

void

 

FillEmptyLayers

(
    ULandscapeLayerInfoObject* Lay...
)

Fill all empty layers and re-normalize layers.

Public function

void

 

FillLayer

(
    ULandscapeLayerInfoObject* Lay...
)

Fill a layer and re-normalize other layers.

Public function

bool

 

GetComponentsInRegion

(
    int32 X1,
    int32 Y1,
    int32 X2,
    int32 Y2,
    TSet< ULandscapeComponent* >&...
)

Misc.

Public function

void

 

GetDirtyData

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    uint8* Data,
    int32 Stride
)

Public function

void

 

GetDirtyData

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TMap< FIntPoint, uint8 >& SparseDa...
)

Public function

void

 

GetDirtyDataTempl

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TStoreData& StoreData
)

Public function

void

 

GetEditToolTextureData

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TStoreData& StoreData,
    TFunctionRef< UTexture2D*(ULan...
)

Public function

void

 

GetHeightAlphaBlendData

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    uint16* Data,
    int32 Stride
)

Public function

void

 

GetHeightAlphaBlendDataTempl

(
    int32& ValidX1,
    int32& ValidY1,
    int32& ValidX2,
    int32& ValidY2,
    TDataAccess& StoreData
)

Public function

void

 

GetHeightAlphaBlendDataTempl

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    TStoreData& StoreData
)

Public function

void

 

GetHeightData

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    TMap< FIntPoint, uint16 >& SparseD...
)

Implementation for sparse array.

Public function

void

 

GetHeightData

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    uint16* Data,
    int32 Stride
)

Implementation for fixed array.

Public function

void

 

GetHeightDataFast

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    uint16* Data,
    int32 Stride,
    uint16* NormalData,
    UTexture2D* InHeightmap
)

Implementation for fixed array.

Public function

void

 

GetHeightDataFast

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TMap< FIntPoint, uint16 >& SparseD...,
    TMap< FIntPoint, uint16 >* Nor...,
    UTexture2D* InHeightmap
)

Implementation for fixed array.

Public function

void

 

GetHeightDataInternal

(
    int32& ValidX1,
    int32& ValidY1,
    int32& ValidX2,
    int32& ValidY2,
    TDataAccess& StoreData,
    TGetHeightMapDataFunction GetHeight...
)

Public function

void

 

GetHeightDataTempl

(
    int32& ValidX1,
    int32& ValidY1,
    int32& ValidX2,
    int32& ValidY2,
    TDataAccess& StoreData
)

Public function

void

 

GetHeightDataTempl

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    TStoreData& StoreData
)

Generic.

Public function

void

 

GetHeightDataTemplFast

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TStoreData& StoreData,
    UTexture2D* InHeightmap,
    TStoreData* NormalData
)

Without data interpolation, able to get normal data.

Public function

void

 

GetHeightFlagsData

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    uint8* Data,
    int32 Stride
)

Public function

void

 

GetHeightFlagsDataTempl

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    TStoreData& StoreData
)

Public function

void

 

GetHeightFlagsDataTempl

(
    int32& ValidX1,
    int32& ValidY1,
    int32& ValidX2,
    int32& ValidY2,
    TDataAccess& StoreData
)

Public function

uint16

 

GetHeightMapAlphaBlendData

(
    const ULandscapeComponent* Com...,
    int32 TexU,
    int32 TexV,
    FColor* TextureData
)

Helper accessor.

Public function

uint16

 

GetHeightMapData

(
    const ULandscapeComponent* Com...,
    int32 TexU,
    int32 TexV,
    FColor* TextureData
)

Helper accessor.

Public function

uint8

 

GetHeightMapFlagsData

(
    const ULandscapeComponent* Com...,
    int32 TexU,
    int32 TexV,
    FColor* TextureData
)

Helper accessor.

Public function

void

 

GetLayerContributionData

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    uint8* Data,
    int32 Stride
)

Public function

void

 

GetLayerContributionData

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TMap< FIntPoint, uint8 >& SparseDa...
)

Public function

void

 

GetLayerContributionDataTempl

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TStoreData& StoreData
)

Public function

void

 

GetSelectData

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    uint8* Data,
    int32 Stride
)

Without data interpolation, Select Data.

Public function

void

 

GetSelectData

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TMap< FIntPoint, uint8 >& SparseDa...
)

Without data interpolation, Select Data.

Public function

void

 

GetSelectDataTempl

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TStoreData& StoreData
)

Without data interpolation, Select Data.

Public function Const

const ALands...

 

GetTargetLandscape()

Public function

void

 

GetWeightData

(
    ULandscapeLayerInfoObject* Lay...,
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    TMap< FIntPoint, uint8 >& SparseDa...
)

Implementation for sparse array.

Public function

void

 

GetWeightData

(
    ULandscapeLayerInfoObject* Lay...,
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    uint8* Data,
    int32 Stride
)

Implementation for fixed array.

Public function

void

 

GetWeightDataFast

(
    ULandscapeLayerInfoObject* Lay...,
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TMap< FIntPoint, uint8 >& SparseDa...
)

Void GetWeightData(FName LayerName, int32& X1, int32& Y1, int32& X2, int32& Y2, TMap>& SparseData);

Public function

void

 

GetWeightDataFast

(
    ULandscapeLayerInfoObject* Lay...,
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TMap< FIntPoint, TArray< uint8 >>&...
)

Void GetWeightData(FName LayerName, int32& X1, int32& Y1, int32& X2, int32& Y2, TArray* Data, int32 Stride);

Public function

void

 

GetWeightDataFast

(
    ULandscapeLayerInfoObject* Lay...,
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    uint8* Data,
    int32 Stride
)

Void GetWeightData(FName LayerName, int32& X1, int32& Y1, int32& X2, int32& Y2, TArray* Data, int32 Stride);

Public function

void

 

GetWeightDataFast

(
    ULandscapeLayerInfoObject* Lay...,
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TArray< uint8 >* Data,
    int32 Stride
)

Void GetWeightData(FName LayerName, int32& X1, int32& Y1, int32& X2, int32& Y2, TArray* Data, int32 Stride);

Public function

void

 

GetWeightDataTempl

(
    ULandscapeLayerInfoObject* Lay...,
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    TStoreData& StoreData
)

Public function

void

 

GetWeightDataTemplFast

(
    ULandscapeLayerInfoObject* Lay...,
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TStoreData& StoreData
)

Without data interpolation.

Public function

uint8

 

GetWeightMapData

(
    const ULandscapeComponent* Com...,
    ULandscapeLayerInfoObject* Lay...,
    int32 TexU,
    int32 TexV,
    uint8 Offset,
    UTexture2D* Texture,
    uint8* TextureData
)

Weightmap access

Helper accessor

Public function

void

 

GetXYOffsetData

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    TMap< FIntPoint, FVector2D >& Spar...
)

Public function

void

 

GetXYOffsetData

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    TMap< FIntPoint, FVector >& Sparse...
)

Public function

void

 

GetXYOffsetData

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    FVector2D* Data,
    int32 Stride
)

Public function

void

 

GetXYOffsetData

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    FVector* Data,
    int32 Stride
)

Public function

void

 

GetXYOffsetDataFast

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TMap< FIntPoint, FVector2D >& Spar...
)

Without data interpolation, able to get normal data.

Public function

void

 

GetXYOffsetDataFast

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TMap< FIntPoint, FVector >& Sparse...
)

Without data interpolation, able to get normal data.

Public function

void

 

GetXYOffsetDataFast

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    FVector2D* Data,
    int32 Stride
)

Without data interpolation, able to get normal data.

Public function

void

 

GetXYOffsetDataFast

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    FVector* Data,
    int32 Stride
)

Without data interpolation, able to get normal data.

Public function

void

 

GetXYOffsetDataTempl

(
    int32& X1,
    int32& Y1,
    int32& X2,
    int32& Y2,
    TStoreData& StoreData
)

Public function

void

 

GetXYOffsetDataTemplFast

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    TStoreData& StoreData
)

Without data interpolation.

Public function

FVector2D

 

GetXYOffsetmapData

(
    const ULandscapeComponent* Com...,
    int32 TexU,
    int32 TexV,
    FColor* TextureData
)

Helper accessor.

Public function Const

bool

 

HasLandscapeLayersContent()

Public function

void

 

RecalculateNormals()

Recaclulate normals for the entire landscape.

Public function

void

 

ReplaceLayer

(
    ULandscapeLayerInfoObject* Fro...,
    ULandscapeLayerInfoObject* ToL...
)

Replace/merge a layer.

Public function

void

 

SetAlphaData

(
    const TSet< ULandscapeLayerInfoObje...,
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    const uint8* Data,
    int32 Stride,
    ELandscapeLayerPaintingRestriction ...
)

Updates weightmaps for all layers. Data points to packed data for all layers in the landscape info.

Public function

void

 

SetAlphaData

(
    ULandscapeLayerInfoObject* Lay...,
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    const uint8* Data,
    int32 Stride,
    ELandscapeLayerPaintingRestriction ...,
    bool bWeightAdjust,
    bool bTotalWeightAdjust
)

Updates weightmap for LayerInfo, optionally adjusting all other weightmaps.

Public function

void

 

SetDirtyData

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    const uint8* Data,
    int32 Stride
)

Public function

void

 

SetEditToolTextureData

(
    int32 X1,
    int32 Y1,
    int32 X2,
    int32 Y2,
    const uint8* Data,
    int32 Stride,
    TFunctionRef< UTexture2D*&(ULa...,
    TextureGroup InTextureGroup
)

Public function

void

 

SetHeightData

(
    int32 X1,
    int32 Y1,
    int32 X2,
    int32 Y2,
    const uint16* InData,
    int32 InStride,
    bool InCalcNormals,
    const uint16* InNormalData,
    const uint16* InHeightAlphaBle...,
    const uint8* InHeightRaiseLowe...,
    bool InCreateComponents,
    UTexture2D* InHeightmap,
    UTexture2D* InXYOffsetmapTextu...,
    bool InUpdateBounds,
    bool InUpdateCollision,
    bool InGenerateMips
)

Heightmap access

Public function

void

 

SetLayerContributionData

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    const uint8* Data,
    int32 Stride
)

Public function

void

 

SetSelectData

(
    const int32 X1,
    const int32 Y1,
    const int32 X2,
    const int32 Y2,
    const uint8* Data,
    int32 Stride
)

Public function

void

 

SetXYOffsetData

(
    int32 X1,
    int32 Y1,
    int32 X2,
    int32 Y2,
    const FVector2D* Data,
    int32 Stride
)

XYOffsetmap access

Public function

void

 

SetXYOffsetData

(
    int32 X1,
    int32 Y1,
    int32 X2,
    int32 Y2,
    const FVector* Data,
    int32 Stride
)

XYOffsetmap access

Public function

void

 

SetXYOffsetDataTempl

(
    int32 X1,
    int32 Y1,
    int32 X2,
    int32 Y2,
    const T* Data,
    int32 Stride
)

XYOffsetmap access

Public function Static

void

 

ShrinkData

(
    TArray< T >& Data,
    int32 OldMinX,
    int32 OldMinY,
    int32 OldMaxX,
    int32 OldMaxY,
    int32 NewMinX,
    int32 NewMinY,
    int32 NewMaxX,
    int32 NewMaxY
)