bool ProcessImage(string filename, Polycurve Image) { CacheFunction?.Invoke((new PathLayer(Image, filename) as ILayer)); if (filename.Contains("seg")) { segments.AddLayer(Image, filename); } else if (filename.Contains("sub")) { subsegments.AddLayer(Image, filename); } else if (filename.Contains("bar")) { mBargraph.AddLayer(Image, filename); } else { mOther.AddLayer(Image, filename); } return(true); }
public bool Group(string pInput, out Layers pReturn) { var temp = new Layers(mName + " " + pInput); foreach (ILayer layer in mLayers) { if (layer.Name.Contains(pInput)) { temp.AddLayer(layer); } } pReturn = temp; if (temp.mLayers.Count > 0) { return(true); } return(false); }