Navigation
API > API/Runtime > API/Runtime/Chaos
Simple weight map wrapping existing weight values. Also holds low/high values, but these are multiplied against the map each time the operator[] is called.
| Name | FPBDFlatWeightMapView |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/PBDFlatWeightMap.h |
| Include Path | #include "Chaos/PBDFlatWeightMap.h" |
Syntax
class FPBDFlatWeightMapView
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPBDFlatWeightMapView
(
const FSolverVec2& InWeightedValue, |
Chaos/PBDFlatWeightMap.h | ||
| Chaos/PBDFlatWeightMap.h | |||
FPBDFlatWeightMapView
(
const FPBDFlatWeightMapView& |
Chaos/PBDFlatWeightMap.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FPBDFlatWeightMapView() |
Chaos/PBDFlatWeightMap.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MapValues | TConstArrayView< FSolverReal > | Chaos/PBDFlatWeightMap.h | ||
| NumElements | int32 | Chaos/PBDFlatWeightMap.h | ||
| OffsetRange | FSolverVec2 | Chaos/PBDFlatWeightMap.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSolverReal GetHigh() |
Return the value at the High weight. | Chaos/PBDFlatWeightMap.h | |
FSolverReal GetLow() |
Return the value at the Low weight. | Chaos/PBDFlatWeightMap.h | |
TConstArrayView< FSolverReal > GetMapValues() |
Return the table of stiffnesses as a read only array. | Chaos/PBDFlatWeightMap.h | |
const FSolverVec2 & GetOffsetRange() |
Return the values set for this map as an Offset and Range (Low = OffsetRange[0], High = OffsetRange[0] + OffsetRange[1]) | Chaos/PBDFlatWeightMap.h | |
FSolverReal GetValue
(
int32 Index |
Chaos/PBDFlatWeightMap.h | ||
bool HasWeightMap() |
Return whether this object contains weight map values. | Chaos/PBDFlatWeightMap.h | |
int32 Num() |
Return the number of values stored in the weight map. | Chaos/PBDFlatWeightMap.h | |
void SetMapValues
(
const TConstArrayView< FSolverReal >& InMapValues |
Chaos/PBDFlatWeightMap.h | ||
void SetWeightedValue
(
const FSolverVec2& InWeightedValue |
Set the low and high values of the weight map. | Chaos/PBDFlatWeightMap.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
operator FSolverReal() |
Return the value when the weight map is not used. | Chaos/PBDFlatWeightMap.h | |
FSolverReal operator[]
(
int32 Index |
Lookup for the weighted value at the specified weight map index. | Chaos/PBDFlatWeightMap.h | |
FPBDFlatWeightMapView & operator=
(
const FPBDFlatWeightMapView& |
Chaos/PBDFlatWeightMap.h | ||
| Chaos/PBDFlatWeightMap.h |