NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
NXOpen::Fields::FieldEvaluator类 参考

表示可用于评估 NXOpen::Fields::Field 的字段求值器。
使用 NXOpen::Fields::Field::GetFieldEvaluator 获取此类的实例

于NX7.5.2中创建。
更多...

#include <Fields_FieldEvaluator.hxx>

类 NXOpen::Fields::FieldEvaluator 继承关系图:
NXOpen::TaggedObject

Public 类型

enum  DelaunaySliverDetectionMethodEnum { DelaunaySliverDetectionMethodEnumEdgelengthratio , DelaunaySliverDetectionMethodEnumAspectratio }
enum  InterpolationEnum {
  InterpolationEnumNone , InterpolationEnumLinear1d , InterpolationEnumNearestNeighbor1d , InterpolationEnumInverseDistanceWeighting1d ,
  InterpolationEnumDelaunay2dFast , InterpolationEnumDelaunay2dMedium , InterpolationEnumDelaunay2dAccurate , InterpolationEnumNearestNeighbor2d ,
  InterpolationEnumRenkaShepard2d , InterpolationEnumInverseDistanceWeighting2d , InterpolationEnumDelaunay3dFast , InterpolationEnumDelaunay3dMedium ,
  InterpolationEnumDelaunay3dAccurate , InterpolationEnumNearestNeighbor3d , InterpolationEnumRenkaShepard3d , InterpolationEnumInverseDistanceWeighting3d ,
  InterpolationEnumNearestNeighborNd , InterpolationEnumRenkaShepardNd , InterpolationEnumInverseDistanceWeightingNd , InterpolationEnumApproxNearestNeighbor2d ,
  InterpolationEnumApproxNearestNeighbor3d , InterpolationEnumApproxNearestNeighborNd , InterpolationEnumAkima1d , InterpolationEnumAkima721d ,
  InterpolationEnumCubic1d , InterpolationEnumBilinear2d , InterpolationEnumBiakima2d , InterpolationEnumBiakima722d ,
  InterpolationEnumBicubic2d , InterpolationEnumAkimaLinear2d , InterpolationEnumAkima72Linear2d , InterpolationEnumCubicLinear2d ,
  InterpolationEnumConservative3d , InterpolationEnumLookupvalues1d , InterpolationEnumLookupvalues2d , InterpolationEnumLookupvalues3d ,
  InterpolationEnumLeastSquares1d , InterpolationEnumLeastSquares2d , InterpolationEnumLeastSquares3d , InterpolationEnumBspline1d ,
  InterpolationEnumBspline2d , InterpolationEnumBspline3d , InterpolationEnumLinearLeastSquares1d , InterpolationEnumSpline1d
}
enum  InverseDistanceWeightingEnum {
  InverseDistanceWeightingEnumAll , InverseDistanceWeightingEnumRadius , InverseDistanceWeightingEnumNearestPoints , InverseDistanceWeightingEnumNumNearestPoints ,
  InverseDistanceWeightingEnumMaximumRadiusAndPoints
}
enum  InverseDistanceWeightingPowerOfDistanceEnum { InverseDistanceWeightingPowerOfDistanceEnumOne = 1 , InverseDistanceWeightingPowerOfDistanceEnumTwo , InverseDistanceWeightingPowerOfDistanceEnumThree }
enum  LinearLogOptionEnum {
  LinearLogOptionEnumLinearLinear , LinearLogOptionEnumLogLinear , LinearLogOptionEnumLinearLog , LinearLogOptionEnumLogLog ,
  LinearLogOptionEnumScaleOffset
}
enum  SplineDegreeOptionEnum { SplineDegreeOptionEnumThirdOrder , SplineDegreeOptionEnumFifthOrder }
enum  ValuesOutsideTableInterpolationEnum {
  ValuesOutsideTableInterpolationEnumUndefined , ValuesOutsideTableInterpolationEnumExtrapolate , ValuesOutsideTableInterpolationEnumConstant , ValuesOutsideTableInterpolationEnumLinear ,
  ValuesOutsideTableInterpolationEnumParabolic , ValuesOutsideTableInterpolationEnumCubic , ValuesOutsideTableInterpolationEnumUserdefined
}

Public 成员函数

void Delete ()
std::vector< double > Evaluate (NXOpen::Fields::FieldVariable *dependentVariable)
std::vector< NXOpen::Fields::FieldVariable * > GetDependentVariables ()
std::vector< NXOpen::Fields::FieldVariable * > GetIndependentVariables ()
NXOpen::Fields::FieldEvaluator::InterpolationEnum InterpolationMethod ()
void SetIndependentVariableValues (NXOpen::Fields::FieldVariable *independentVariable, const std::vector< double > &values)
void SetInterpolationMethod (NXOpen::Fields::FieldEvaluator::InterpolationEnum interpolationMethod)
Public 成员函数 继承自 NXOpen::TaggedObject
tag_t Tag () const

友元

class _FieldEvaluatorBuilder

详细描述

表示可用于评估 NXOpen::Fields::Field 的字段求值器。
使用 NXOpen::Fields::Field::GetFieldEvaluator 获取此类的实例

于NX7.5.2中创建。

场评估器

成员枚举类型说明

◆ DelaunaySliverDetectionMethodEnum

德劳内细长三角形检测选项

枚举值
DelaunaySliverDetectionMethodEnumEdgelengthratio 

未指定时的默认方法,比较每条边长度与其他两条边长度之和的比率

DelaunaySliverDetectionMethodEnumAspectratio 

比较自由边到对顶点的高度与自由边长度的比率

◆ InterpolationEnum

插值类型

枚举值
InterpolationEnumNone 

无插值方法;表格仅可用作查找表

InterpolationEnumLinear1d 

边界点间的标准线性插值

InterpolationEnumNearestNeighbor1d 

定位最近点并返回其值

InterpolationEnumInverseDistanceWeighting1d 

所有点的加权值之和,基于距离的倒数

InterpolationEnumDelaunay2dFast 

对自变量值进行三角化并使用边界三角形,牺牲精度换取速度

InterpolationEnumDelaunay2dMedium 

对自变量值进行三角化并使用边界三角形,精度与速度的折中方案

InterpolationEnumDelaunay2dAccurate 

对自变量值进行三角化并使用边界三角形,牺牲速度换取精度

InterpolationEnumNearestNeighbor2d 

定位平面中最近点并返回其值

InterpolationEnumRenkaShepard2d 

2D空间中的精细距离倒数加权

InterpolationEnumInverseDistanceWeighting2d 

2D空间中所有点的加权值之和,基于距离的倒数

InterpolationEnumDelaunay3dFast 

使用自变量值创建四面体并使用边界四面体,牺牲精度换取速度

InterpolationEnumDelaunay3dMedium 

使用自变量值创建四面体并使用边界四面体,精度与速度的折中方案

InterpolationEnumDelaunay3dAccurate 

使用自变量值创建四面体并使用边界四面体,牺牲速度换取精度

InterpolationEnumNearestNeighbor3d 

定位空间中最近点并返回其值

InterpolationEnumRenkaShepard3d 

3D空间中的精细距离倒数加权

InterpolationEnumInverseDistanceWeighting3d 

3D空间中所有点的加权值之和,基于距离的倒数

InterpolationEnumNearestNeighborNd 

定位N维空间中最近点并返回其值

InterpolationEnumRenkaShepardNd 

N维空间中的精细距离倒数加权

InterpolationEnumInverseDistanceWeightingNd 

N维空间中所有点的加权值之和,基于距离的倒数

InterpolationEnumApproxNearestNeighbor2d 

定位平面中近似最近点并返回其值

InterpolationEnumApproxNearestNeighbor3d 

定位空间中近似最近点并返回其值

InterpolationEnumApproxNearestNeighborNd 

定位N维空间中近似最近点并返回其值

InterpolationEnumAkima1d 

akima插值

InterpolationEnumAkima721d 

akima72插值

InterpolationEnumCubic1d 

三次插值

InterpolationEnumBilinear2d 

双向线性插值

InterpolationEnumBiakima2d 

双向akima插值

InterpolationEnumBiakima722d 

双向akima72插值

InterpolationEnumBicubic2d 

双向三次插值

InterpolationEnumAkimaLinear2d 

x方向akima插值,y方向线性插值

InterpolationEnumAkima72Linear2d 

x方向akima72插值,y方向线性插值

InterpolationEnumCubicLinear2d 

x方向三次插值,y方向线性插值

InterpolationEnumConservative3d 

保留用于载荷映射工作流程的保守插值

InterpolationEnumLookupvalues1d 

用于1d整数基id表映射工作流程的查找值插值器

InterpolationEnumLookupvalues2d 

用于2d整数基id表映射工作流程的查找值插值器

InterpolationEnumLookupvalues3d 

用于3d整数基id表映射工作流程的查找值插值器

InterpolationEnumLeastSquares1d 

1d域的加权最小二乘插值

InterpolationEnumLeastSquares2d 

2d域的加权最小二乘插值

InterpolationEnumLeastSquares3d 

3d域的加权最小二乘插值

InterpolationEnumBspline1d 

1d域的B样条插值

InterpolationEnumBspline2d 

2d域的B样条插值

InterpolationEnumBspline3d 

3d域的B样条插值

InterpolationEnumLinearLeastSquares1d 

1d域的线性最小二乘插值

InterpolationEnumSpline1d 

1d域的样条插值

◆ InverseDistanceWeightingEnum

IDW(距离倒数加权)插值器选项

枚举值
InverseDistanceWeightingEnumAll 

所有点的加权值之和,基于距离的倒数

InverseDistanceWeightingEnumRadius 

半径内(作为边界框对角线的分数)点的加权值之和,基于距离的倒数

InverseDistanceWeightingEnumNearestPoints 

最近N个点的加权值之和(作为总点数的分数),基于距离的倒数

InverseDistanceWeightingEnumNumNearestPoints 

最近N个点的加权值之和,基于距离的倒数[此选项不受支持]

InverseDistanceWeightingEnumMaximumRadiusAndPoints 

最近N个点和半径内点的加权值之和,基于距离的倒数

◆ InverseDistanceWeightingPowerOfDistanceEnum

IDW(距离倒数加权)插值器的距离幂选项

枚举值
InverseDistanceWeightingPowerOfDistanceEnumOne 

IDW算法将使用距离进行计算

InverseDistanceWeightingPowerOfDistanceEnumTwo 

IDW算法将使用距离的平方进行计算

InverseDistanceWeightingPowerOfDistanceEnumThree 

IDW算法将使用距离的立方进行计算

◆ LinearLogOptionEnum

线性插值器的对数选项

枚举值
LinearLogOptionEnumLinearLinear 

标准线性插值。自变量和因变量缩放均为线性

LinearLogOptionEnumLogLinear 

自变量缩放为对数(ln),因变量缩放为线性

LinearLogOptionEnumLinearLog 

自变量缩放为线性,因变量缩放为对数(ln)

LinearLogOptionEnumLogLog 

自变量和因变量缩放均为对数(ln)

LinearLogOptionEnumScaleOffset 

线性插值方案下的缩放/偏移枚举选择选项

◆ SplineDegreeOptionEnum

样条插值器的次数选项

枚举值
SplineDegreeOptionEnumThirdOrder 

使用三次多项式的样条插值

SplineDegreeOptionEnumFifthOrder 

使用五次多项式的样条插值

◆ ValuesOutsideTableInterpolationEnum

表格外值插值选项

枚举值
ValuesOutsideTableInterpolationEnumUndefined 

无插值结果

ValuesOutsideTableInterpolationEnumExtrapolate 

使用内部表格值插值器的相同方法从边界外推到空间中

ValuesOutsideTableInterpolationEnumConstant 

返回边界值作为插值结果

ValuesOutsideTableInterpolationEnumLinear 

使用线性外推方法从边界外推到空间中

ValuesOutsideTableInterpolationEnumParabolic 

使用抛物线外推方法从边界外推到空间中

ValuesOutsideTableInterpolationEnumCubic 

使用三次外推方法从边界外推到空间中

ValuesOutsideTableInterpolationEnumUserdefined 

返回用户指定值作为插值结果

成员函数说明

◆ Delete()

void NXOpen::Fields::FieldEvaluator::Delete ( )

删除此场计算器;销毁场计算器并移除对其的所有引用。
在 NX7.5.2 中创建。

许可证要求:无

◆ Evaluate()

std::vector< double > NXOpen::Fields::FieldEvaluator::Evaluate ( NXOpen::Fields::FieldVariable * dependentVariable)

在指定的自变量 NXOpen::Fields::FieldVariable 值处计算场,并返回指定因变量的值。 输出值的数量将与指定的自变量数量相同,并且这些值将与因变量 NXOpen::Fields::FieldVariable 具有相同的单位。

返回
为此因变量计算的值
在 NX7.5.2 中创建。

许可证要求:无
参数
dependentVariable要计算其值的因变量

◆ GetDependentVariables()

std::vector< NXOpen::Fields::FieldVariable * > NXOpen::Fields::FieldEvaluator::GetDependentVariables ( )

返回此 NXOpen::Fields::FieldEvaluator 的因变量

返回
NXOpen::Fields::FieldEvaluator 的因变量
在 NX7.5.2 中创建。

许可证要求:无

◆ GetIndependentVariables()

std::vector< NXOpen::Fields::FieldVariable * > NXOpen::Fields::FieldEvaluator::GetIndependentVariables ( )

返回此 NXOpen::Fields::FieldEvaluator 的自变量

返回
NXOpen::Fields::FieldEvaluator 的自变量
在 NX7.5.2 中创建。

许可证要求:无

◆ InterpolationMethod()

NXOpen::Fields::FieldEvaluator::InterpolationEnum NXOpen::Fields::FieldEvaluator::InterpolationMethod ( )

返回 计算此表格数据时使用的插值方法。
在 NX7.5.2 中创建。

许可证要求:无

◆ SetIndependentVariableValues()

void NXOpen::Fields::FieldEvaluator::SetIndependentVariableValues ( NXOpen::Fields::FieldVariable * independentVariable,
const std::vector< double > & values )

为此自变量 NXOpen::Fields::FieldVariable 设置将计算场的数值。 输入值的数量必须与自变量的数量相同,并且这些值被假定为与自变量 NXOpen::Fields::FieldVariable 相同的单位。
在 NX7.5.2 中创建。

许可证要求:无

参数
independentVariable正在设置其值的自变量。
values将在这些自变量值处计算场。

◆ SetInterpolationMethod()

void NXOpen::Fields::FieldEvaluator::SetInterpolationMethod ( NXOpen::Fields::FieldEvaluator::InterpolationEnum interpolationMethod)

设置 计算此表格数据时使用的插值方法。
在 NX7.5.2 中创建。

许可证要求:无

参数
interpolationMethod插值方法