Exemplo n.º 1
0
 public LsmpDef createDefaultDef() {
   LsmpDef def;
   def = new LsmpDef("Clip", DefType.clip, "");
   def.add(new DefVariable("x", "none"));
   def.add(new DefVariable("y", "none"));
   def.add(new DefVariable("z", "none"));
   return def;
 }
Exemplo n.º 2
0
 public Clip(GeomStore store, LsmpDef def) {
   super(store, def == null ? "Clip" : def.getName());
   if (getClass() == Clip.class) {
     if (def == null) def = createDefaultDef();
     init(def, false);
   }
 }
Exemplo n.º 3
0
 public void loadDefinition(LsmpDef newdef) {
   LsmpDef def = newdef.duplicate();
   checkDef(def);
   def.setName(this.getName());
   this.getInfoPanel().setTitle(this.getName());
   calc = new Calculator(def, 0);
   calc.build();
   // calc.requireDerivative(names)
   if (!calc.isGood()) showStatus(calc.getMsg());
   // ch_inputSurf.setEnabled(calc.isGood());
   clipAlgorithm = new CalcClip(calc, chItts.getSelectedIndex());
   localX = calc.getDefVariable(0);
   localY = calc.getDefVariable(1);
   localZ = calc.getDefVariable(2);
   setDisplayEquation(def.getEquation());
   refreshParams();
   // calcSurf();
 }