public Layer(LayerStack layerStack, Lessons.Lesson lessonModel, AbstractLayer layerModel) { this.layerStack = layerStack; this.lessonModel = lessonModel; this.layerModel = layerModel; Strokes = StrokeConverter.ToWindowsStrokes(layerModel.Strokes); if (layerModel.GetType() == typeof (QuizAnswerLayer)) { DisplayChart(); } else if (layerModel.GetType() == typeof (GraphicalAnswerLayer)) { DisplaySaliencyMap(); } }
public abstract void ImportLayer(AbstractLayer layer);
public override void ImportLayer(AbstractLayer layer) { throw new NotImplementedException(); }
public override void ImportLayer(AbstractLayer layer) { layer.UID = Guid.NewGuid().GetHashCode(); Layers.Add(layer); }
/// <summary> /// Removes the layer. (internal as it only should be called by the AnchoredTag) /// </summary> /// <param name="l">The layer.</param> internal void RemoveLayer(AbstractLayer l) { ConcernedLayers.Remove(l); }
/// <summary> /// Adds the layer (internal as it only should be called by the AnchoredTag) /// </summary> /// <param name="l">The layer.</param> internal void AddLayer(AbstractLayer l) { ConcernedLayers.Add(l); }