Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/SampledScalarField2.h |
Include |
#include "Spatial/SampledScalarField2.h" |
template<typename RealType, typename ValueType>
class TSampledScalarField2
TSampledScalarField2 implements a generic 2D grid of values that can be interpolated in various ways. The grid is treated as a set of sample points in 2D space, IE a grid origin and x/y point-spacing is part of this class.
The class is templated on two types: RealType: the real type used for spatial calculations, ie 2D grid origin, cell dimensions, and sample positions ValueType: the type of value stored in the grid. Could be real or vector-typed, needs to support multiplication by RealType (for interpolation)
Name | Description | ||
---|---|---|---|
|
FVector2< RealT... |
CellDimensions |
|
|
FVector2< RealT... |
GridOrigin |
|
|
TDenseGrid2< Va... |
GridValues |
Name | Description | |
---|---|---|
|
TSampledScalarField2() |
Create empty grid, defaults to 2x2 grid of whatever default value of ValueType is |
Name | Description | ||
---|---|---|---|
|
ValueType |
BilinearSampleClamped ( |
Sample scalar field with bilinear interpolation at given Position |
|
BilinearSampleGradientClamped ( |
Sample scalar field gradient with bilinear interpolation at given Position |
|
|
CopyConfiguration ( |
||
|
Height() |
||
|
Num() |
||
|
Resize |
Resize the grid to given Width/Height, and initialize w/ given InitValue |
|
|
SetCellSize ( |
Set the size of the grid cells to uniform CellSize |
|
|
SetPosition ( |
Set the 2D origin of the grid |
|
|
Width() |