TDenseGrid2

2D dense grid of floating-point scalar values.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/DenseGrid2.h

Include

#include "Spatial/DenseGrid2.h"

Syntax

template<typename ElemType>
class TDenseGrid2

Remarks

2D dense grid of floating-point scalar values.

Variables

Name Description

Protected variable

TArray64< ElemT...

 

Buffer

Grid of allocated elements

Protected variable

int64

 

DimensionX

Dimensions per axis

Protected variable

int64

 

DimensionY

Constructors

Name Description

Public function

TDenseGrid2()

Create empty grid

Public function

TDenseGrid2

(
    int32 DimX,
    int32 DimY,
    ElemType InitialValue
)

Functions

Name Description

Public function

void

 

Apply

(
    TFunctionRef< ElemType(ElemType)> A...
)

Public function

void

 

AssignAll

(
    ElemType Value
)

Public function Const

constexpr co...

 

At

(
    int64 X,
    int64 Y
)

Public function

constexpr El...

 

At

(
    int64 X,
    int64 Y
)

Public function Const

constexpr co...

 

At

(
    int32 X,
    int32 Y
)

Public function

constexpr El...

 

At

(
    int32 X,
    int32 Y
)

Public function Const

FAxisAligned...

 

Bounds()

Public function Const

FAxisAligned...

 

BoundsInclusive()

Public function Const

FVector2i

 

GetCoords

(
    int64 LinearIndex
)

Public function Const

FVector2i

 

GetDimensions()

Public function Const

int64

 

GetIndex

(
    int32 X,
    int32 Y
)

Public function Const

int64

 

GetIndex

(
    const FVector2i& IJK
)

Public function Const

void

 

GetXPair

(
    int32 X0,
    int32 Y,
    ElemType& AOut,
    ElemType& BOut
)

Public function Const

const TArray...

 

GridValues()

Public function Const

int64

 

Height()

Public function

void

 

Resize

(
    int32 DimX,
    int32 DimY,
    bool bAllowShrinking
)

Public function

void

 

SetMax

(
    const FVector2i& IJK,
    ElemType NewValue
)

Public function

void

 

SetMin

(
    const FVector2i& IJK,
    ElemType NewValue
)

Public function Const

int64

 

Size()

Public function Const

int64

 

Width()

Operators

Name Description

Public function Const

constexpr co...

 

operator[]

(
    int64 Idx
)

Public function Const

constexpr co...

 

operator[]

(
    FVector2i Idx
)

Public function

constexpr El...

 

operator[]

(
    int64 Idx
)

Public function

constexpr El...

 

operator[]

(
    FVector2i Idx
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss