use of artisynth.core.mechmodels.MechSystemBase in project artisynth_core by artisynth.
the class TrackingControllerEditor method addActions.
public void addActions(EditActionMap actions, SelectionManager selManager) {
LinkedList<ModelComponent> selection = selManager.getCurrentSelection();
if (containsSingleSelection(selection, TrackingController.class)) {
TrackingController controller = (TrackingController) selection.get(0);
actions.add(this, "Edit tracking targets ...", EXCLUSIVE);
// XXX currently editing muscles through
MechSystemBase mech = controller.getMech();
if (mech.getClass() == MechModel.class) {
actions.add(this, "Edit muscles ...", EXCLUSIVE);
}
}
}
Aggregations