Search in sources :

Example 1 with MatlabInterface

use of artisynth.core.util.MatlabInterface in project artisynth_core by artisynth.

the class ProbeInfo method saveToMatlab.

private void saveToMatlab(Probe probe) {
    // connection should exist or this method shouldn't be called
    MatlabInterface mi = getMain().getMatlabConnection();
    NumericProbeBase np = (NumericProbeBase) probe;
    ProbeEditor.saveToMatlab(np, mi, myController);
}
Also used : MatlabInterface(artisynth.core.util.MatlabInterface) NumericProbeBase(artisynth.core.probes.NumericProbeBase)

Example 2 with MatlabInterface

use of artisynth.core.util.MatlabInterface in project artisynth_core by artisynth.

the class ProbeInfo method loadFromMatlab.

// load a probe from a MATLAB variable
public void loadFromMatlab(Probe probe) {
    // connection should exist or this method shouldn't be called
    MatlabInterface mi = getMain().getMatlabConnection();
    NumericProbeBase np = (NumericProbeBase) probe;
    ProbeEditor.loadFromMatlab(np, mi, myController);
}
Also used : MatlabInterface(artisynth.core.util.MatlabInterface) NumericProbeBase(artisynth.core.probes.NumericProbeBase)

Aggregations

NumericProbeBase (artisynth.core.probes.NumericProbeBase)2 MatlabInterface (artisynth.core.util.MatlabInterface)2