MorphTargetChannel

Inheritance: java.lang.Object, com.aspose.threed.A3DObject

public class MorphTargetChannel extends A3DObject

MorphTargetChannel 用于 MorphTargetDeformer 组织目标几何体。某些文件格式如 FBX 支持并行的多个通道。Remarks: 权重介于 0 到 1.0 之间,默认目标权重为 0.0;

构造函数

构造函数描述
MorphTargetChannel(String name)初始化 MorphTargetChannel 类的新实例。
MorphTargetChannel()初始化 MorphTargetChannel 类的新实例。

字段

字段描述
DEFAULT_WEIGHT形变目标的默认权重。

方法

方法描述
equals(Object arg0)
findProperty(String propertyName)查找属性。
get(Shape target)获取指定几何体的权重
getChannelWeight()获取此通道的变形器权重。
getClass()
getName()获取名称。
getProperties()获取所有属性的集合。
getProperty(String property)获取指定属性的值
getTargets()获取与该通道关联的所有目标。
getWeight(Shape target)获取指定目标的权重,如果该目标不属于此通道,则返回默认值 0。
getWeights()获取目标几何体的完整权重值。
hashCode()
notify()
notifyAll()
removeProperty(Property property)移除动态属性。
removeProperty(String property)移除通过名称标识的指定属性
set(Shape target, double value)设置指定几何体的权重
setChannelWeight(double value)设置此通道的变形器权重。
setName(String value)设置名称。
setProperty(String property, Object value)设置指定属性的值
setWeight(Shape target)设置指定目标的权重,默认值为 1,范围应在 0~1 之间。
setWeight(Shape target, double weight)设置指定目标的权重,默认值为 1,范围应在 0~1 之间。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

MorphTargetChannel(String name)

public MorphTargetChannel(String name)

初始化 MorphTargetChannel 类的新实例。

Parameters:

参数类型描述
名称java.lang.String名称。

MorphTargetChannel()

public MorphTargetChannel()

初始化 MorphTargetChannel 类的新实例。

DEFAULT_WEIGHT

public static final double DEFAULT_WEIGHT

形变目标的默认权重。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: 布尔

findProperty(String propertyName)

public Property findProperty(String propertyName)

查找属性。它可以是动态属性(由 CreateDynamicProperty/SetProperty 创建)或本机属性(通过其名称标识)

Parameters:

参数类型描述
propertyNamejava.lang.String属性名称。

Returns: Property - The property.

get(Shape target)

public double get(Shape target)

获取指定几何体的权重

Parameters:

参数类型描述
targetShape目标几何体。

Returns: double - 权重

getChannelWeight()

public double getChannelWeight()

获取此通道的变形器权重。权重在 0.0 到 1.0 之间。

Returns: double - 此通道的变形器权重。权重在 0.0 到 1.0 之间。

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getName()

public String getName()

获取名称。

Returns: java.lang.String - 名称。

getProperties()

public PropertyCollection getProperties()

获取所有属性的集合。

Returns: PropertyCollection - the collection of all properties.

getProperty(String property)

public Object getProperty(String property)

获取指定属性的值

Parameters:

参数类型描述
属性java.lang.String属性名称

Returns: java.lang.Object - 找到的属性的值

getTargets()

public List<Shape> getTargets()

获取与该通道关联的所有目标。

Returns: java.util.List<com.aspose.threed.Shape> - 与该通道关联的所有目标。

getWeight(Shape target)

public double getWeight(Shape target)

获取指定目标的权重,如果该目标不属于此通道,则返回默认值 0。

Parameters:

参数类型描述
targetShape

Returns: double

getWeights()

public List<Double> getWeights()

获取目标几何体的完整权重值。

Returns: java.util.List<java.lang.Double> - 目标几何体的完整权重值。

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeProperty(Property property)

public boolean removeProperty(Property property)

移除动态属性。

Parameters:

参数类型描述
propertyProperty要删除哪个属性

Returns: boolean - 如果属性成功删除则为 true

removeProperty(String property)

public boolean removeProperty(String property)

移除通过名称标识的指定属性

Parameters:

参数类型描述
属性java.lang.String要删除哪个属性

Returns: boolean - 如果属性成功删除则为 true

set(Shape target, double value)

public void set(Shape target, double value)

设置指定几何体的权重

Parameters:

参数类型描述
targetShape目标几何体。
double新值

setChannelWeight(double value)

public void setChannelWeight(double value)

设置此通道的变形器权重。权重在 0.0 到 1.0 之间。

Parameters:

参数类型描述
double新值

setName(String value)

public void setName(String value)

设置名称。

Parameters:

参数类型描述
java.lang.String新值

setProperty(String property, Object value)

public void setProperty(String property, Object value)

设置指定属性的值

Parameters:

参数类型描述
属性java.lang.String属性名称
java.lang.Object属性的值

setWeight(Shape target)

public void setWeight(Shape target)

设置指定目标的权重,默认值为 1,范围应在 0~1 之间。

Parameters:

参数类型描述
targetShape

setWeight(Shape target, double weight)

public void setWeight(Shape target, double weight)

设置指定目标的权重,默认值为 1,范围应在 0~1 之间。

Parameters:

参数类型描述
targetShape
权重double

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int