public abstract class SkinWeightingFunction extends CompositePropertyBase implements ScalableUnits, PropertyChangeListener
myProps| Constructor and Description |
|---|
SkinWeightingFunction() |
| Modifier and Type | Method and Description |
|---|---|
SkinWeightingFunction |
clone()
Returns a clone of this composite property.
|
abstract void |
computeWeights(double[] weights,
Point3d pos,
SkinMeshBody.NearestPoint[] nearestPnts)
Computes skinning connection weights for a point located
at
pos, given information about the nearest points
on each of the master bodies. |
static java.lang.Class<?>[] |
getSubClasses() |
void |
propertyChanged(PropertyChangeEvent e) |
static void |
registerSubclass(java.lang.Class<? extends SkinWeightingFunction> cls)
Allow adding of classes (for use in control panels)
|
void |
scaleDistance(double s)
Scales all distance coordinates.
|
void |
scaleMass(double s)
Scales all mass units.
|
getAllPropertyInfo, getProperty, getPropertyHost, getPropertyInfo, hasProperty, isWritable, scan, setPropertyHost, setPropertyInfo, write, writeItemspublic abstract void computeWeights(double[] weights,
Point3d pos,
SkinMeshBody.NearestPoint[] nearestPnts)
pos, given information about the nearest points
on each of the master bodies.
The weights are returned in weights. There is
one weight for each master bodies, and so weights
and nearestPnts have the same length.
weights - returns the computed weightspos - position of the point to be skinnednearestPnts - nearest point information for each of the
master bodiespublic static void registerSubclass(java.lang.Class<? extends SkinWeightingFunction> cls)
cls - class to registerpublic static java.lang.Class<?>[] getSubClasses()
public void scaleDistance(double s)
ScalableUnitsscaleDistance in interface ScalableUnitss - scaling factorpublic void scaleMass(double s)
ScalableUnitsscaleMass in interface ScalableUnitss - scaling factorpublic SkinWeightingFunction clone()
CompositePropertyclone in interface CompositePropertyclone in interface Clonableclone in class CompositePropertyBasepublic void propertyChanged(PropertyChangeEvent e)
propertyChanged in interface PropertyChangeListener