Exemple #1
0
 public SimulationOperator(IApplicationContext appContext, IGeoVectorData simulationData)
 {
     this.m_AppContext = appContext;
     this.m_SelectionHelper = ServiceHelper.Lookup<IGeoSelectionHelper>(this.m_AppContext);
     this.m_GisAnalyEvent = ServiceHelper.Lookup<IAnalyDispEvent>(this.m_AppContext) as GisAnalyEvent;
     this.m_SimulationData = simulationData;
 }
Exemple #2
0
 private void AddVectorData(List<IGeoVectorData> source, IGeoVectorData dataToAdd, NodeType dataType)
 {
     source.Add(dataToAdd);
     if (this.OnDataAddedEvent != null)
     {
         this.OnDataAddedEvent(this, new DataChangedArgs(dataType));
     }
 }
Exemple #3
0
 public GeoEntityRegionMgr(IGeoVectorData data, GeoMapMgr mapMgr, IGeoSelectionHelper helper) : this(MakeDataList(data), mapMgr, helper)
 {
 }
Exemple #4
0
 private static List<IGeoVectorData> MakeDataList(IGeoVectorData oneVectorData)
 {
     List<IGeoVectorData> list = new List<IGeoVectorData>();
     list.Add(oneVectorData);
     return list;
 }
Exemple #5
0
 public int AddApplicationVectorLayer(IGeoVectorData vectorData)
 {
     int key = this.m_GeoMapMgr.AddApplicationVectorLayer(vectorData);
     this.m_DataDic.Add(key, vectorData);
     return key;
 }
Exemple #6
0
        private IGeoOperator GenerateOperator(int type, IGeoVectorData data, double adjustDistance)
        {
            switch (type)
            {
                case 1:
                    return new SimulationOperator(this.m_AppContext, data);

                case 2:
                case 3:
                    return new CWDTOperator(this.m_AppContext, data, adjustDistance);
            }
            return null;
        }
Exemple #7
0
 public static IGeoVectorRender CreateVectorRender(IGeoVectorData vectorData)
 {
     return new GeoVectorRender(vectorData);
 }