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
Constructor | Description |
---|---|
MorphTargetChannel(String name) | Initializes a new instance of the MorphTargetChannel class. |
MorphTargetChannel() | Initializes a new instance of the MorphTargetChannel class. |
Fields
Field | Description |
---|---|
DEFAULT_WEIGHT | Default weight for morph target. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Name. |
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:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
propertyName | java.lang.String | Property name. |
Returns: Property - The property.
get(Shape target)
public double get(Shape target)
Gets the weight for specified geometry
Parameters:
Parameter | Type | Description |
---|---|---|
target | Shape | Target 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:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Property 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:
Parameter | Type | Description |
---|---|---|
target | Shape |
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:
Parameter | Type | Description |
---|---|---|
property | Property | Which 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:
Parameter | Type | Description |
---|---|---|
property | java.lang.String |
Returns: boolean
set(Shape target, double value)
public void set(Shape target, double value)
Sets the weight for specified geometry
Parameters:
Parameter | Type | Description |
---|---|---|
target | Shape | Target geometry. |
value | double | New 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:
Parameter | Type | Description |
---|---|---|
value | double | New value |
setName(String value)
public void setName(String value)
Sets the name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setProperty(String property, Object value)
public void setProperty(String property, Object value)
Sets the value of specified property
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Property name |
value | java.lang.Object | The 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:
Parameter | Type | Description |
---|---|---|
target | Shape |
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:
Parameter | Type | Description |
---|---|---|
target | Shape | |
weight | double |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |