public class ForceEffectorTarget extends ModelComponentBase implements TrackingTarget
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_STATIC_ONLY |
static double |
DEFAULT_WEIGHT |
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames| Constructor and Description |
|---|
ForceEffectorTarget() |
ForceEffectorTarget(ForceTargetComponent comp,
boolean staticOnly) |
| Modifier and Type | Method and Description |
|---|---|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
ForceTargetComponent |
getForceComp() |
ForceTargetComponent |
getSourceComp()
Returns the source component associated with this target.
|
boolean |
getStaticOnly() |
VectorNd |
getSubWeights()
Queries the subweights of this target.
|
VectorNd |
getTargetForce() |
int |
getTargetSize()
Queries the number of DOFs in the target.
|
double |
getWeight()
Queries the weight of this target.
|
void |
setForceComp(ForceTargetComponent comp) |
void |
setStaticOnly(boolean enable) |
void |
setSubWeights(VectorNd weights)
Sets the subweights for this target.
|
void |
setTargetForce(VectorNd force) |
void |
setWeight(double w)
Sets the weight for this target.
|
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenpostscanisWritable, writepublic static final boolean DEFAULT_STATIC_ONLY
public static final double DEFAULT_WEIGHT
public static PropertyList myProps
public ForceEffectorTarget()
public ForceEffectorTarget(ForceTargetComponent comp, boolean staticOnly)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class ModelComponentBasepublic double getWeight()
TrackingTargetgetWeight in interface TrackingTargetTrackingTarget.setWeight(double)public void setWeight(double w)
TrackingTargetsetWeight in interface TrackingTargetw - new target weightTrackingTarget.getWeight()public boolean getStaticOnly()
public void setStaticOnly(boolean enable)
public VectorNd getSubWeights()
TrackingTargetgetSubWeights in interface TrackingTargetTrackingTarget.setSubWeights(maspack.matrix.VectorNd)public void setSubWeights(VectorNd weights)
TrackingTargetTrackingTarget.getTargetSize(), and each has a default value of 1. Subweights are
multiplied by the target weight (returned by TrackingTarget.getWeight()) to yield
a net weight used to prioritize each degree of freedom in the tracking
computation, with higher weights resulting in more accurate tracking and
a weight of 0 resulting in no tracking at all.setSubWeights in interface TrackingTargetweights - new target subweightsTrackingTarget.getSubWeights()public void setForceComp(ForceTargetComponent comp)
public ForceTargetComponent getSourceComp()
TrackingTargetgetSourceComp in interface TrackingTargetpublic ForceTargetComponent getForceComp()
public VectorNd getTargetForce()
public void setTargetForce(VectorNd force)
public int getTargetSize()
TrackingTargetgetTargetSize in interface TrackingTarget