public abstract class QPTermBase extends ModelComponentBase implements QPTerm
QPTerm.Type
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED |
static double |
DEFAULT_WEIGHT |
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
Constructor and Description |
---|
QPTermBase() |
QPTermBase(double weight) |
Modifier and Type | Method and Description |
---|---|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
TrackingController |
getController()
Returns the controller using this term.
|
Property |
getProperty(java.lang.String pathName)
Returns a property associated with a specified path name.
|
double |
getWeight()
Queries the weight for this term.
|
boolean |
isEnabled()
Queries the enabled status of this term.
|
boolean |
isInternal()
Queries whether this term is internal to the controller,
as described for
setInternal(boolean) . |
void |
setEnabled(boolean enabled) |
void |
setInternal(boolean internal)
Sets a flag indicating that this term is internal to the tracking
controller, and should not be directly added or removed by the
application using methods such as
TrackingController.addConstraintTerm(artisynth.core.inverse.QPConstraintTerm) , TrackingController.removeConstraintTerm(artisynth.core.inverse.QPConstraintTerm) , TrackingController.addCostTerm(artisynth.core.inverse.QPCostTerm) , or TrackingController.removeCostTerm(artisynth.core.inverse.QPCostTerm) . |
void |
setWeight(double w)
Sets the weight for this QPTerm.
|
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, 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
getChildren, hasChildren
postscan
isWritable, write
public static final double DEFAULT_WEIGHT
public static final boolean DEFAULT_ENABLED
public static PropertyList myProps
public PropertyList getAllPropertyInfo()
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ModelComponentBase
public Property getProperty(java.lang.String pathName)
.
' characters. A sub-property
exists if the value of a property is itself an object which exports
properties. It is only possible to obtain a sub-property handle if each of
its ancestor properties exports their values by reference.getProperty
in interface HasProperties
getProperty
in class ModelComponentBase
pathName
- name of the desired property or sub-propertypublic void setWeight(double w)
public double getWeight()
public boolean isEnabled()
public void setEnabled(boolean enabled)
public void setInternal(boolean internal)
TrackingController.addConstraintTerm(artisynth.core.inverse.QPConstraintTerm)
, TrackingController.removeConstraintTerm(artisynth.core.inverse.QPConstraintTerm)
, TrackingController.addCostTerm(artisynth.core.inverse.QPCostTerm)
, or TrackingController.removeCostTerm(artisynth.core.inverse.QPCostTerm)
.internal
- if true
, specifies that this term is internalpublic boolean isInternal()
setInternal(boolean)
.true
if this term is internalpublic TrackingController getController()
getController
in interface QPTerm