コード例 #1
0
 private void AddSpatialElementGroupToView(SpatialElementInfoGroup group)
 {
     foreach (SpatialElementInfo element in group.Elements)
     {
         this.m_mapMapper.AddSpatialElementToView(element.CoreSpatialElement);
     }
 }
コード例 #2
0
 private void RenderSpatialElementGroup(SpatialElementInfoGroup group, bool hasScope)
 {
     foreach (SpatialElementInfo element in group.Elements)
     {
         this.RenderSpatialElement(element, hasScope);
     }
 }
コード例 #3
0
        private void RenderInnerMostMember()
        {
            SpatialElementInfoGroup spatialElementInfoGroup = (this.m_spatialDataMapper == null) ? this.CreateSpatialElementFromDataRegion() : this.GetSpatialElementsFromDataRegionKey();

            if (spatialElementInfoGroup != null)
            {
                if (spatialElementInfoGroup.BoundToData)
                {
                    throw new RenderingObjectModelException(RPRes.rsMapSpatialElementHasMoreThanOnMatchingGroupInstance(RPRes.rsObjectTypeMap, this.m_mapVectorLayer.MapDef.Name, this.m_mapVectorLayer.Name));
                }
                this.RenderSpatialElementGroup(spatialElementInfoGroup, true);
                spatialElementInfoGroup.BoundToData = true;
            }
        }
コード例 #4
0
        private SpatialElementInfoGroup GetSpatialElementsFromDataRegionKey()
        {
            MapBindingFieldPairCollection mapBindingFieldPairs = this.m_mapVectorLayer.MapBindingFieldPairs;

            if (mapBindingFieldPairs != null)
            {
                SpatialElementKey spatialElementKey = VectorLayerMapper.CreateDataRegionSpatialElementKey(mapBindingFieldPairs);
                this.ValidateKey(spatialElementKey, mapBindingFieldPairs);
                SpatialElementInfoGroup result = default(SpatialElementInfoGroup);
                if (this.m_spatialElementsDictionary.TryGetValue(spatialElementKey, out result))
                {
                    return(result);
                }
            }
            return(null);
        }
コード例 #5
0
        protected void OnSpatialElementAdded(SpatialElementInfo spatialElementInfo)
        {
            this.m_vectorLayerMapper.OnSpatialElementAdded(spatialElementInfo.CoreSpatialElement);
            this.m_mapMapper.OnSpatialElementAdded(spatialElementInfo);
            SpatialElementKey spatialElementKey = this.CreateCoreSpatialElementKey(spatialElementInfo.CoreSpatialElement);

            if (this.m_mapVectorLayer.MapDataRegion != null && this.m_keyTypes == null && spatialElementKey.KeyValues != null)
            {
                this.RegisterKeyTypes(spatialElementKey);
            }
            SpatialElementInfoGroup spatialElementInfoGroup;

            if (!this.m_spatialElementsDictionary.ContainsKey(spatialElementKey))
            {
                spatialElementInfoGroup = new SpatialElementInfoGroup();
                this.m_spatialElementsDictionary.Add(spatialElementKey, spatialElementInfoGroup);
            }
            else
            {
                spatialElementInfoGroup = this.m_spatialElementsDictionary[spatialElementKey];
            }
            spatialElementInfoGroup.Elements.Add(spatialElementInfo);
        }