示例#1
0
        private void RemoveActorLayer(VisualizationDataSource dataSource)
        {
            MeshLayer meshLayer = meshLayers.Find(ml => ml.Guid == dataSource.Guid);

            if (meshLayer != null)
            {
                meshLayers.Remove(meshLayer);
            }
        }
示例#2
0
 public void AddLayer(VisualizationDataSource dataSource)
 {
     if (dataSource.Algorithm == Algorithms.Trajectories)
     {
         if (dataSource.Data is PointSet)
         {
             AddDataSource(dataSource.Data as PointSet, dataSource.Guid);
         }
     }
 }
示例#3
0
 private void AddColorMapLayer(VisualizationDataSource dataSource)
 {
     if (dataSource.Algorithm == Algorithms.ColorMap && !dataSource.IsDynamic)
     {
         if (dataSource.Data is IDataSource2D <double> )
         {
             AddDataSource(dataSource.Data, dataSource.Guid, double.MinValue, double.MaxValue);
         }
     }
 }
示例#4
0
 private void AddIsolinesLayer(VisualizationDataSource dataSource)
 {
     if (dataSource.Algorithm == Algorithms.IsolineMap)
     {
         if (dataSource.Data is IDataSource2D <double> )
         {
             AddDataSource(dataSource.Data as IDataSource2D <double>, dataSource.Guid);
         }
     }
 }
示例#5
0
        private void RemoveIsolinesLayer(VisualizationDataSource removedDataSource)
        {
            IsolinesLayer layer = layers.Find(il => il.Guid == removedDataSource.Guid);

            if (layer != null)
            {
                RemoveLayerFromHost(layer);
                layers.Remove(layer);
            }
        }
        public void RemoveLayer(VisualizationDataSource dataSource)
        {
            ProbesLayer probesLayer = probesLayers.Find(pl => pl.Guid == dataSource.Guid);

            if (probesLayer != null)
            {
                host.DataSources.Remove(probesLayer.LayerID, probesLayer.LayerName);
                probesLayers.Remove(probesLayer);
            }
        }
示例#7
0
 private void AddActorLayer(VisualizationDataSource dataSource)
 {
     if (dataSource.Algorithm == Algorithms.ColorMap && dataSource.IsDynamic)
     {
         if (dataSource.Data is IDataSource2D <double> )
         {
             AddDataSource(dataSource.Data as IDataSource2D <double>, dataSource.Guid);
         }
         host.NeedUpdate();
     }
 }
 private void RemoveColorMapLayer(VisualizationDataSource dataSource)
 {
     ColorMapLayer colorMapLayer = colorMapLayers.Find(cml => cml.Guid == dataSource.Guid);
     if (colorMapLayer != null)
     {
         if (colorMapLayer.IsVisible)
         {
             host.DataSources.Remove(colorMapLayer.LayerName, colorMapLayer.LayerID);
         }
         colorMapLayers.Remove(colorMapLayer);
     }
 }
示例#9
0
        public void RemoveLayer(VisualizationDataSource dataSource)
        {
            TrajectoriesLayer trLayer = trajectoriesLayers.Find(tl => tl.Guid == dataSource.Guid);

            if (trLayer != null)
            {
                if (trLayer.IsVisible)
                {
                    RemoveLayerFromHost(trLayer);
                }
                trajectoriesLayers.Remove(trLayer);
            }
        }
示例#10
0
        private void RemoveColorMapLayer(VisualizationDataSource dataSource)
        {
            ColorMapLayer colorMapLayer = colorMapLayers.Find(cml => cml.Guid == dataSource.Guid);

            if (colorMapLayer != null)
            {
                if (colorMapLayer.IsVisible)
                {
                    host.DataSources.Remove(colorMapLayer.LayerName, colorMapLayer.LayerID);
                }
                colorMapLayers.Remove(colorMapLayer);
            }
        }
示例#11
0
 private void AddProbesLayer(VisualizationDataSource dataSource)
 {
     if (dataSource.Algorithm == Algorithms.Probes && !dataSource.IsDynamic)
     {
         if (dataSource.Data is IDataSource2D<double>)
         {
             AddDataSource(dataSource.Data as IDataSource2D<double>, dataSource.Guid);
         }
         else if (dataSource.Data is PointSet)
         {
             AddDataSource(dataSource.Data as PointSet, dataSource.Guid);
         }
     }
 }
示例#12
0
 private void AddProbesLayer(VisualizationDataSource dataSource)
 {
     if (dataSource.Algorithm == Algorithms.Probes && !dataSource.IsDynamic)
     {
         if (dataSource.Data is IDataSource2D <double> )
         {
             AddDataSource(dataSource.Data as IDataSource2D <double>, dataSource.Guid);
         }
         else if (dataSource.Data is PointSet)
         {
             AddDataSource(dataSource.Data as PointSet, dataSource.Guid);
         }
     }
 }
示例#13
0
        protected virtual void dataSources_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            switch (e.Action)
            {
            case NotifyCollectionChangedAction.Add:
                foreach (object newItem in e.NewItems)
                {
                    VisualizationDataSource newDataSource = newItem as VisualizationDataSource;
                    if (newDataSource == null)
                    {
                        throw new ArgumentException("Something strange has happened");
                    }
                    else if (newDataSource.Algorithm == Algorithms.Probes)
                    {
                        AddProbesLayer(newDataSource);
                    }
                }
                break;

            case NotifyCollectionChangedAction.Remove:
                foreach (object removedItem in e.OldItems)
                {
                    VisualizationDataSource removedDataSource = removedItem as VisualizationDataSource;
                    if (removedDataSource == null)
                    {
                        throw new ArgumentException("Something strange has happened");
                    }
                    else if (removedDataSource.Algorithm == Algorithms.Probes)
                    {
                        RemoveProbesLayer(removedDataSource);
                    }
                }
                break;

            default: break;
            }
        }
示例#14
0
 public void AddLayer(VisualizationDataSource dataSource)
 {
     AddColorMapLayer(dataSource);
 }
示例#15
0
 void IVisualizationProvider.AddLayer(VisualizationDataSource dataSource)
 {
     AddActorLayer(dataSource);
 }
示例#16
0
 public void RemoveLayer(VisualizationDataSource dataSource)
 {
     RemoveIsolinesLayer(dataSource);
 }
示例#17
0
 public void RemoveLayer(VisualizationDataSource dataSource)
 {
     RemoveActorLayer(dataSource);
 }
示例#18
0
 public void AddLayer(VisualizationDataSource dataSource)
 {
     AddActorLayer(dataSource);
 }
示例#19
0
 private void AddColorMapLayer(VisualizationDataSource dataSource)
 {
     if (dataSource.Algorithm == Algorithms.ColorMap && !dataSource.IsDynamic)
     {
         if (dataSource.Data is IDataSource2D<double>)
         {
             AddDataSource(dataSource.Data, dataSource.Guid, double.MinValue, double.MaxValue);
         }
         
     }
 }
示例#20
0
 public void RemoveLayer(VisualizationDataSource dataSource)
 {
     ProbesLayer probesLayer = probesLayers.Find(pl => pl.Guid == dataSource.Guid);
     if (probesLayer != null)
     {
         host.DataSources.Remove(probesLayer.LayerID, probesLayer.LayerName);
         probesLayers.Remove(probesLayer);
     }
 }
示例#21
0
 public void RemoveLayer(VisualizationDataSource dataSource)
 {
     RemoveActorLayer(dataSource);
 }
示例#22
0
 public void RemoveLayer(VisualizationDataSource dataSource)
 {
     RemoveColorMapLayer(dataSource);
 }
示例#23
0
 void IVisualizationProvider.AddLayer(VisualizationDataSource dataSource)
 {
     AddActorLayer(dataSource);
 }
示例#24
0
 private void RemoveProbesLayer(VisualizationDataSource removedDataSource)
 {
     RemoveLayer(removedDataSource);
 }
示例#25
0
 public void RemoveLayer(VisualizationDataSource dataSource)
 {
     TrajectoriesLayer trLayer = trajectoriesLayers.Find(tl => tl.Guid == dataSource.Guid);
     if (trLayer != null)
     {
         if (trLayer.IsVisible)
             RemoveLayerFromHost(trLayer);
         trajectoriesLayers.Remove(trLayer);
     }
 }
示例#26
0
 private void AddActorLayer(VisualizationDataSource dataSource)
 {
     if (dataSource.Algorithm == Algorithms.ColorMap && dataSource.IsDynamic)
     {
         if (dataSource.Data is IDataSource2D<double>)
             AddDataSource(dataSource.Data as IDataSource2D<double>, dataSource.Guid);
         host.NeedUpdate();
     }
 }
示例#27
0
 void IVisualizationProvider.RemoveLayer(VisualizationDataSource dataSource)
 {
     RemoveActorLayer(dataSource);
 }
示例#28
0
 public void RemoveLayer(VisualizationDataSource dataSource)
 {
     RemoveColorMapLayer(dataSource);
 }
示例#29
0
 public void AddLayer(VisualizationDataSource dataSource)
 {
     if (dataSource.Algorithm == Algorithms.Trajectories)
     {
         if (dataSource.Data is PointSet)
         {
             AddDataSource(dataSource.Data as PointSet, dataSource.Guid);
         }
     }
 }
示例#30
0
		private void RemoveIsolinesLayer(VisualizationDataSource removedDataSource)
		{
			IsolinesLayer layer = layers.Find(il => il.Guid == removedDataSource.Guid);
			if (layer != null)
			{
				RemoveLayerFromHost(layer);
				layers.Remove(layer);
			}
		}
示例#31
0
		public void RemoveLayer(VisualizationDataSource dataSource)
		{
			RemoveIsolinesLayer(dataSource);
		}
示例#32
0
 public void AddLayer(VisualizationDataSource dataSource)
 {
     AddProbesLayer(dataSource);
 }
示例#33
0
		public void AddLayer(VisualizationDataSource dataSource)
		{
			AddIsolinesLayer(dataSource);
		}
示例#34
0
 private void RemoveProbesLayer(VisualizationDataSource removedDataSource)
 {
     RemoveLayer(removedDataSource);
 }
示例#35
0
		private void AddIsolinesLayer(VisualizationDataSource dataSource)
		{
			if (dataSource.Algorithm == Algorithms.IsolineMap)
			{
                if (dataSource.Data is IDataSource2D<double>)
                    AddDataSource(dataSource.Data as IDataSource2D<double>, dataSource.Guid);
			}
		}
示例#36
0
 public void AddLayer(VisualizationDataSource dataSource)
 {
     AddProbesLayer(dataSource);
 }
示例#37
0
 public void AddLayer(VisualizationDataSource dataSource)
 {
     AddIsolinesLayer(dataSource);
 }
示例#38
0
 void IVisualizationProvider.RemoveLayer(VisualizationDataSource dataSource)
 {
     RemoveActorLayer(dataSource);
 }
示例#39
0
 private void RemoveActorLayer(VisualizationDataSource dataSource)
 {
     MeshLayer meshLayer = meshLayers.Find(ml => ml.Guid == dataSource.Guid);
     if (meshLayer != null)
     {
         meshLayers.Remove(meshLayer);
     }
 }
示例#40
0
 public void AddLayer(VisualizationDataSource dataSource)
 {
     AddColorMapLayer(dataSource);
 }
示例#41
0
 public void AddLayer(VisualizationDataSource dataSource)
 {
     AddActorLayer(dataSource);
 }