public class MorphTargetChannel extends A3DObject
MorphTargetDeformer to organize the target geometries.
Some file formats like FBX support multiple channels in parallel.| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_WEIGHT
Default weight for morph target.
|
name, properties| Constructor and Description |
|---|
MorphTargetChannel()
Initializes a new instance of the
MorphTargetChannel class. |
MorphTargetChannel(java.lang.String name)
Initializes a new instance of the
MorphTargetChannel class. |
| Modifier and Type | Method and Description |
|---|---|
double |
get(Shape target)
Gets the weight for specified geometry
|
double |
getChannelWeight()
Gets the deformer weight of this channel.
|
java.util.List<Shape> |
getTargets()
Gets all targets associated with the channel.
|
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.
|
java.util.List<java.lang.Double> |
getWeights()
Gets the full weight values of target geometries.
|
void |
set(Shape target,
double value)
Sets the weight for specified geometry
|
void |
setChannelWeight(double value)
Sets the deformer weight of this channel.
|
void |
setWeight(Shape target)
Sets the weight for the specified target, default value is 1, range should between 0~1
|
void |
setWeight(Shape target,
double weight)
Sets the weight for the specified target, default value is 1, range should between 0~1
|
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setPropertypublic static final double DEFAULT_WEIGHT
public MorphTargetChannel(java.lang.String name)
MorphTargetChannel class.name - Name.public MorphTargetChannel()
MorphTargetChannel class.public java.util.List<java.lang.Double> getWeights()
public double getChannelWeight()
public void setChannelWeight(double value)
value - New valuepublic java.util.List<Shape> getTargets()
public double get(Shape target)
target - Target geometry.public void set(Shape target, double value)
target - Target geometry.value - New valuepublic double getWeight(Shape target)
target - public void setWeight(Shape target, double weight)
target - weight - public void setWeight(Shape target)
target -