예제 #1
0
        public ActiveTransition(TransitionSchema schema, AbstractVisualisation targetVisualisation)
        {
            TweenUpdated = new TweenUpdatedEvent();

            Schema = schema;
            TargetVisualisation = targetVisualisation;
        }
예제 #2
0
        private Editor FindEditorFor(AbstractVisualisation visualisation)
        {
            Editor visEditor;

            if (!abstractVisualisationEditors.TryGetValue(visualisation, out visEditor))
            {
                visEditor = CreateEditor(visualisation);
                abstractVisualisationEditors[visualisation] = visEditor;
            }
            return(visEditor);
        }
예제 #3
0
 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);
             }
         }
     }
 }
예제 #4
0
 public void VisualisationDestroyed(AbstractVisualisation abstractVisualisation)
 {
     SubVisualisations.Remove(abstractVisualisation);
 }