protected override void RenderSpatialElement(SpatialElementInfo spatialElementInfo, bool hasScope) { base.InitializeSpatialElement(spatialElementInfo.CoreSpatialElement); if (hasScope) { this.RenderLineRuleFields((Path)spatialElementInfo.CoreSpatialElement); } this.RenderLineTemplate((MapLine)spatialElementInfo.MapSpatialElement, (Path)spatialElementInfo.CoreSpatialElement, hasScope); }
protected override void RenderSpatialElement(SpatialElementInfo spatialElementInfo, bool hasScope) { base.InitializeSpatialElement(spatialElementInfo.CoreSpatialElement); if (hasScope) { this.RenderPolygonRulesField((Shape)spatialElementInfo.CoreSpatialElement); } this.RenderPolygonTemplate((MapPolygon)spatialElementInfo.MapSpatialElement, (Shape)spatialElementInfo.CoreSpatialElement, hasScope); this.RenderPolygonCenterPoint(spatialElementInfo, hasScope); }
private void RenderPolygonCenterPoint(SpatialElementInfo spatialElementInfo, bool hasScope) { if (!this.HasCenterPointRule() && !this.HasCenterPointTemplate((MapPolygon)spatialElementInfo.MapSpatialElement, this.MapPolygonLayer.MapCenterPointTemplate, hasScope)) { return; } Symbol symbol = (Symbol)base.GetSymbolManager().CreateSpatialElement(); symbol.Layer = spatialElementInfo.CoreSpatialElement.Layer; symbol.Category = spatialElementInfo.CoreSpatialElement.Category; symbol.ParentShape = spatialElementInfo.CoreSpatialElement.Name; this.CopyFieldsToPoint((Shape)spatialElementInfo.CoreSpatialElement, symbol); base.GetSymbolManager().AddSpatialElement(symbol); base.RenderPoint(spatialElementInfo.MapSpatialElement, symbol, hasScope); }
private void AddSpatialElement(MapSpatialElement embeddedElement) { if (base.m_mapMapper.CanAddSpatialElement) { ISpatialElement spatialElement = this.m_spatialElementManager.AddWKB(embeddedElement.VectorData, base.m_mapVectorLayer.Name); if (spatialElement != null) { this.ProcessNonSpatialFields(embeddedElement, spatialElement); SpatialElementInfo spatialElementInfo = new SpatialElementInfo(); spatialElementInfo.CoreSpatialElement = spatialElement; spatialElementInfo.MapSpatialElement = embeddedElement; base.OnSpatialElementAdded(spatialElementInfo); } } }
private void CoreMap_ElementAdded(object sender, ElementEventArgs e) { if (e.MapElement is ISpatialElement) { if (!this.m_shapefileMatchingLayer) { if (!base.m_vectorLayerMapper.IsValidSpatialElement((ISpatialElement)e.MapElement)) { throw new RenderingObjectModelException(RPRes.rsMapShapefileTypeMismatch(RPRes.rsObjectTypeMap, base.m_mapVectorLayer.MapDef.Name, base.m_mapVectorLayer.Name, this.m_shapefile.Instance.Source)); } this.m_shapefileMatchingLayer = true; } SpatialElementInfo spatialElementInfo = new SpatialElementInfo(); spatialElementInfo.CoreSpatialElement = (ISpatialElement)e.MapElement; base.OnSpatialElementAdded(spatialElementInfo); } }
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); }
protected abstract void RenderSpatialElement(SpatialElementInfo spatialElementInfo, bool hasScope);
protected override void RenderSpatialElement(SpatialElementInfo spatialElementInfo, bool hasScope) { base.InitializeSpatialElement(spatialElementInfo.CoreSpatialElement); base.RenderPoint((MapPoint)spatialElementInfo.MapSpatialElement, (Symbol)spatialElementInfo.CoreSpatialElement, hasScope); }