MorphTargetChannel

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

public class MorphTargetChannel extends A3DObject

A MorphTargetChannel is used by MorphTargetDeformer to organize the target geometries. Some file formats like FBX support multiple channels in parallel. Remarks: Weight is between 0 and 1.0, and default weight for target is 0.0;

Constructors

ConstructorDescription
MorphTargetChannel(String name)Initializes a new instance of the MorphTargetChannel class.
MorphTargetChannel()Initializes a new instance of the MorphTargetChannel class.

Fields

FieldDescription
DEFAULT_WEIGHTDefault weight for morph target.

Methods

MethodDescription
equals(Object arg0)
findProperty(String propertyName)Finds the property.
get(Shape target)Gets the weight for specified geometry
getChannelWeight()Gets the deformer weight of this channel.
getClass()
getName()Gets the name.
getProperties()Gets the collection of all properties.
getProperty(String property)Get the value of specified property
getTargets()Gets all targets associated with the channel.
getWeight(Shape target)Gets the weight for the specified target, if the target is not belongs to this channel, default value 0 is returned.
getWeights()Gets the full weight values of target geometries.
hashCode()
notify()
notifyAll()
removeProperty(Property property)Removes a dynamic property.
removeProperty(String property)Remove the specified property identified by name
set(Shape target, double value)Sets the weight for specified geometry
setChannelWeight(double value)Sets the deformer weight of this channel.
setName(String value)Sets the name.
setProperty(String property, Object value)Sets the value of specified property
setWeight(Shape target)Sets the weight for the specified target, default value is 1, range should between 0~1
setWeight(Shape target, double weight)Sets the weight for the specified target, default value is 1, range should between 0~1
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

MorphTargetChannel(String name)

public MorphTargetChannel(String name)

Initializes a new instance of the MorphTargetChannel class.

Parameters:

ParameterTypeDescription
namejava.lang.StringName.

MorphTargetChannel()

public MorphTargetChannel()

Initializes a new instance of the MorphTargetChannel class.

DEFAULT_WEIGHT

public static final double DEFAULT_WEIGHT

Default weight for morph target.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

Parameters:

ParameterTypeDescription
propertyNamejava.lang.StringProperty name.

Returns: Property - The property.

get(Shape target)

public double get(Shape target)

Gets the weight for specified geometry

Parameters:

ParameterTypeDescription
targetShapeTarget geometry.

Returns: double - Weight

getChannelWeight()

public double getChannelWeight()

Gets the deformer weight of this channel. The weight is between 0.0 and 1.0

Returns: double

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getName()

public String getName()

Gets the name.

Returns: java.lang.String

getProperties()

public PropertyCollection getProperties()

Gets the collection of all properties.

Returns: PropertyCollection

getProperty(String property)

public Object getProperty(String property)

Get the value of specified property

Parameters:

ParameterTypeDescription
propertyjava.lang.StringProperty name

Returns: java.lang.Object - The value of the found property

getTargets()

public List<Shape> getTargets()

Gets all targets associated with the channel.

Returns: java.util.List<com.aspose.threed.Shape>

getWeight(Shape target)

public double getWeight(Shape target)

Gets the weight for the specified target, if the target is not belongs to this channel, default value 0 is returned.

Parameters:

ParameterTypeDescription
targetShape

Returns: double

getWeights()

public List<Double> getWeights()

Gets the full weight values of target geometries.

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)

Removes a dynamic property.

Parameters:

ParameterTypeDescription
propertyPropertyWhich property to remove

Returns: boolean - true if the property is successfully removed

removeProperty(String property)

public boolean removeProperty(String property)

Remove the specified property identified by name

Parameters:

ParameterTypeDescription
propertyjava.lang.String

Returns: boolean

set(Shape target, double value)

public void set(Shape target, double value)

Sets the weight for specified geometry

Parameters:

ParameterTypeDescription
targetShapeTarget geometry.
valuedoubleNew value

setChannelWeight(double value)

public void setChannelWeight(double value)

Sets the deformer weight of this channel. The weight is between 0.0 and 1.0

Parameters:

ParameterTypeDescription
valuedoubleNew value

setName(String value)

public void setName(String value)

Sets the name.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setProperty(String property, Object value)

public void setProperty(String property, Object value)

Sets the value of specified property

Parameters:

ParameterTypeDescription
propertyjava.lang.StringProperty name
valuejava.lang.ObjectThe value of the property

setWeight(Shape target)

public void setWeight(Shape target)

Sets the weight for the specified target, default value is 1, range should between 0~1

Parameters:

ParameterTypeDescription
targetShape

setWeight(Shape target, double weight)

public void setWeight(Shape target, double weight)

Sets the weight for the specified target, default value is 1, range should between 0~1

Parameters:

ParameterTypeDescription
targetShape
weightdouble

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int