public class ForceEffectorTarget extends ModelComponentBase implements TrackingTarget
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, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferences
getProperty
getChildren, hasChildren
postscan
isWritable, write
public 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()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ModelComponentBase
public double getWeight()
TrackingTarget
getWeight
in interface TrackingTarget
TrackingTarget.setWeight(double)
public void setWeight(double w)
TrackingTarget
setWeight
in interface TrackingTarget
w
- new target weightTrackingTarget.getWeight()
public boolean getStaticOnly()
public void setStaticOnly(boolean enable)
public VectorNd getSubWeights()
TrackingTarget
getSubWeights
in interface TrackingTarget
TrackingTarget.setSubWeights(maspack.matrix.VectorNd)
public void setSubWeights(VectorNd weights)
TrackingTarget
TrackingTarget.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 TrackingTarget
weights
- new target subweightsTrackingTarget.getSubWeights()
public void setForceComp(ForceTargetComponent comp)
public ForceTargetComponent getSourceComp()
TrackingTarget
getSourceComp
in interface TrackingTarget
public ForceTargetComponent getForceComp()
public VectorNd getTargetForce()
public void setTargetForce(VectorNd force)
public int getTargetSize()
TrackingTarget
getTargetSize
in interface TrackingTarget