engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FPointWeightMap结构体 参考

A mask is simply some storage for a physical mesh parameter painted onto clothing. 更多...

#include <PointWeightMap.h>

Public 成员函数

bool AreAllBelowThreshold (const int32 Index0, const int32 Index1, const int32 Index2, const float Threshold=0.1f) const
 Return whether all of the specified triangle points have weight below (or equal) to the specified 更多...
 
bool AreAnyBelowThreshold (const int32 Index0, const int32 Index1, const int32 Index2, const float Threshold=0.1f) const
 Return whether at least one of the specified triangle points has weight below (or equal) to the specified 更多...
 
void CalcRanges (float &MinValue, float &MaxValue)
 Calculates Min/Max values based on values.
 
void Empty ()
 Empty this map of any values.
 
float GetValue (int32 Index) const
 Get a value from the map, or return 0 if the index is out of bounds. 更多...
 
template<typename T , typename = typename TEnableIf<TOr<TIsEnum<T>, TIsArithmetic<T>>::Value>::Type>
void Initialize (const FPointWeightMap &Source, T Target)
 Initialize a weight map from another weight map while enabling and setting a new target. 更多...
 
void Initialize (const int32 NumPoints)
 Reset this map to the specified number of points, and set all the values to zero. 更多...
 
bool IsBelowThreshold (const int32 Index, const float Threshold=0.1f) const
 Return whether the specified point weight is below (or equal) to the specified threshold. 更多...
 
bool IsZeroed () const
 Return whether all points' values are zero.
 
int32 Num () const
 Return the number of values in this map.
 
float & operator[] (int32 Index)
 Return the current float value for the requested point. 更多...
 
const float & operator[] (int32 Index) const
 Return the current float value for the requested point. 更多...
 
void SetValue (int32 Index, float Value)
 Set a value in the map checking first whether the index is within bounds. 更多...
 

Public 属性

TArray< float > Values
 The actual values stored in the mask
 

详细描述

A mask is simply some storage for a physical mesh parameter painted onto clothing.

Used in the editor for users to paint onto and then target to a parameter, which is then later applied to a phys mesh

成员函数说明

◆ AreAllBelowThreshold()

bool FPointWeightMap::AreAllBelowThreshold ( const int32  Index0,
const int32  Index1,
const int32  Index2,
const float  Threshold = 0.1f 
) const
inline

Return whether all of the specified triangle points have weight below (or equal) to the specified

参数
Threshold.

◆ AreAnyBelowThreshold()

bool FPointWeightMap::AreAnyBelowThreshold ( const int32  Index0,
const int32  Index1,
const int32  Index2,
const float  Threshold = 0.1f 
) const
inline

Return whether at least one of the specified triangle points has weight below (or equal) to the specified

参数
Threshold.

◆ GetValue()

float FPointWeightMap::GetValue ( int32  Index) const
inline

Get a value from the map, or return 0 if the index is out of bounds.

参数
Indexthe value/point index to retrieve

◆ Initialize() [1/2]

template<typename T , typename = typename TEnableIf<TOr<TIsEnum<T>, TIsArithmetic<T>>::Value>::Type>
void FPointWeightMap::Initialize ( const FPointWeightMap &  Source,
T  Target 
)
inline

Initialize a weight map from another weight map while enabling and setting a new target.

参数
Sourcethe source weight map to copy the values from.
Targetthe new weight map target.

◆ Initialize() [2/2]

void FPointWeightMap::Initialize ( const int32  NumPoints)
inline

Reset this map to the specified number of points, and set all the values to zero.

参数
NumPointsthe number of points to initialize the map with.

◆ IsBelowThreshold()

bool FPointWeightMap::IsBelowThreshold ( const int32  Index,
const float  Threshold = 0.1f 
) const
inline

Return whether the specified point weight is below (or equal) to the specified threshold.

参数
Indexthe value/point index to retrieve
Threshold,thevalue threshold to test against for.

◆ operator[]() [1/2]

float & FPointWeightMap::operator[] ( int32  Index)
inline

Return the current float value for the requested point.

参数
Indexthe value/point index to retrieve, must be within range or it will assert.

◆ operator[]() [2/2]

const float & FPointWeightMap::operator[] ( int32  Index) const
inline

Return the current float value for the requested point.

参数
Indexthe value/point index to retrieve, must be within range or it will assert.

◆ SetValue()

void FPointWeightMap::SetValue ( int32  Index,
float  Value 
)
inline

Set a value in the map checking first whether the index is within bounds.

参数
Indexthe value/point index to set
Valuethe value to set

该结构体的文档由以下文件生成: