MorphTargetDeformer

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

public class MorphTargetDeformer extends Deformer

MorphTargetDeformer provides per-vertex animation. MorphTargetDeformer organize all targets via MorphTargetChannel, each channel can organize multiple targets. A common use of morph target deformer is to apply facial expression to a character. More details can be found at https://en.wikipedia.org/wiki/Morph_target_animation

Constructors

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

Methods

MethodDescription
equals(Object arg0)
findProperty(String propertyName)Finds the property.
get(Shape target)Gets the weight for given geometry, this is a short-handed way to modify weight for target without accessing channel.
getChannels()Gets all channels contained in this deformer
getClass()
getName()Gets the name.
getOwner()Gets the geometry which owns this deformer
getProperties()Gets the collection of all properties.
getProperty(String property)Get the value of specified property
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 given geometry, this is a short-handed way to modify weight for target without accessing channel.
setName(String value)Sets the name.
setProperty(String property, Object value)Sets the value of specified property
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

MorphTargetDeformer(String name)

public MorphTargetDeformer(String name)

Initializes a new instance of the MorphTargetDeformer class.

Parameters:

ParameterTypeDescription
namejava.lang.StringName.

MorphTargetDeformer()

public MorphTargetDeformer()

Initializes a new instance of the MorphTargetDeformer class.

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 given geometry, this is a short-handed way to modify weight for target without accessing channel.

Parameters:

ParameterTypeDescription
targetShapeTarget geometry

Returns: double - Weight

getChannels()

public List<MorphTargetChannel> getChannels()

Gets all channels contained in this deformer

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

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getName()

public String getName()

Gets the name.

Returns: java.lang.String

getOwner()

public Geometry getOwner()

Gets the geometry which owns this deformer

Returns: Geometry

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

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 given geometry, this is a short-handed way to modify weight for target without accessing channel.

Parameters:

ParameterTypeDescription
targetShapeTarget geometry
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

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