public ActiveTransition(TransitionSchema schema, AbstractVisualisation targetVisualisation) { TweenUpdated = new TweenUpdatedEvent(); Schema = schema; TargetVisualisation = targetVisualisation; }
private Editor FindEditorFor(AbstractVisualisation visualisation) { Editor visEditor; if (!abstractVisualisationEditors.TryGetValue(visualisation, out visEditor)) { visEditor = CreateEditor(visualisation); abstractVisualisationEditors[visualisation] = visEditor; } return(visEditor); }
private void AbstractVisualisationUpdated(AbstractVisualisation aVis, IATKProperty property) { // When any visualisation is updated, check to see which schema it might be corresponding to foreach (var schema in Schemas) { if (schema.InitialState.XDimension.Name == aVis.XDimension.Name && schema.InitialState.YDimension.Name == aVis.YDimension.Name && schema.InitialState.ZDimension.Name == aVis.ZDimension.Name ) { if (!Transitions.Select(x => x.TargetVisualisation).Contains(aVis)) { ActiveTransition transition = new ActiveTransition(schema, aVis); transition.TweenUpdated.AddListener(TweenUpdated); Transitions.Add(transition); } } } }
public void VisualisationDestroyed(AbstractVisualisation abstractVisualisation) { SubVisualisations.Remove(abstractVisualisation); }