Search in sources :

Example 1 with MechSystemBase

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);
        }
    }
}
Also used : MechSystemBase(artisynth.core.mechmodels.MechSystemBase) TrackingController(artisynth.core.inverse.TrackingController)

Aggregations

TrackingController (artisynth.core.inverse.TrackingController)1 MechSystemBase (artisynth.core.mechmodels.MechSystemBase)1