// for AlgoElement @Override protected void setInputOutput() { input = new GeoElement[1]; input[0] = geo; super.setOutputLength(1); super.setOutput(0, text); setDependencies(); // done by AlgoElement }
// for AlgoElement @Override protected void setInputOutput() { input = new GeoElement[2]; input[0] = A; input[1] = f; super.setOutputLength(1); super.setOutput(0, circle); setDependencies(); // done by AlgoElement }
// for AlgoElement @Override protected void setInputOutput() { ArrayList<GeoElement> geos = new ArrayList<GeoElement>(); geos.add(geo); if (substituteVars != null) geos.add(substituteVars); if (showName != null) geos.add(showName); input = new GeoElement[geos.size()]; for (int i = 0; i < input.length; i++) { input[i] = geos.get(i); } super.setOutputLength(1); super.setOutput(0, text); setDependencies(); // done by AlgoElement }
@Override public void remove() { if (removed) return; super.remove(); f.removeAlgorithm(algo); f.removeAlgorithm(cv); A.removeAlgorithm(algo); A.removeAlgorithm(cv); // make sure all AlgoCASDerivatives get removed cv.remove(); }