|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableCompositeComponent<C extends ModelComponent>
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface artisynth.core.modelbase.CompositeComponent |
---|
CompositeComponent.NavpanelDisplay |
Nested classes/interfaces inherited from interface artisynth.core.modelbase.ModelComponent |
---|
ModelComponent.NavpanelVisibility |
Method Summary | |
---|---|
boolean |
add(C comp)
Adds a component to this MutableCompositeComponent. |
void |
addComponents(ModelComponent[] comps,
int[] indices,
int num)
Adds a set of components to this MutableCompositeComponent. |
boolean |
remove(java.lang.Object comp)
Removes a component from this MutableCompositeComponent, returning true if the componet was in fact found and removed. |
void |
removeComponents(ModelComponent[] comps,
int[] indices,
int num)
Removes a set of components from this MutableCompositeComponent. |
Methods inherited from interface artisynth.core.modelbase.CompositeComponent |
---|
componentChanged, findComponent, get, get, getByNumber, getNavpanelDisplay, getNumberLimit, hierarchyContainsReferences, indexOf, numComponents, updateNameMap |
Methods inherited from interface artisynth.core.modelbase.ModelComponent |
---|
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences |
Methods inherited from interface maspack.properties.HasProperties |
---|
getAllPropertyInfo, getProperty |
Methods inherited from interface maspack.properties.HierarchyNode |
---|
getChildren, hasChildren |
Methods inherited from interface maspack.util.Scannable |
---|
isWritable, write |
Method Detail |
---|
boolean add(C comp)
comp
- component to be addedvoid addComponents(ModelComponent[] comps, int[] indices, int num)
indices
is not
null, it specified the index locations at which the components should be
added. It is up to the caller to insure that the specified index values
make sense; in particular, they must not exceed the final size of the
component and no two specified indices can be the same.
comps
- list of components to be addedindices
- (optional) index locations of componentsnum
- number of components to be addedboolean remove(java.lang.Object comp)
comp
- component to be added
void removeComponents(ModelComponent[] comps, int[] indices, int num)
indices
is not
null, it is used to return the indices where the components were located.
comps
- components to be removedindices
- (optional) stores the indices of the removed componentsnum
- number of components to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |