public virtual object PublishClone(AutomaticSubtotalContext context)
        {
            MapSpatialData mapSpatialData = (MapSpatialData)base.MemberwiseClone();

            mapSpatialData.m_map            = context.CurrentMapClone;
            mapSpatialData.m_mapVectorLayer = context.CurrentMapVectorLayerClone;
            return(mapSpatialData);
        }
Exemplo n.º 2
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(MapVectorLayer.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.MapDataRegionName:
                    this.m_mapDataRegionName = reader.ReadString();
                    break;

                case MemberName.MapBindingFieldPairs:
                    this.m_mapBindingFieldPairs = reader.ReadGenericListOfRIFObjects <MapBindingFieldPair>();
                    break;

                case MemberName.MapFieldDefinitions:
                    this.m_mapFieldDefinitions = reader.ReadGenericListOfRIFObjects <MapFieldDefinition>();
                    break;

                case MemberName.MapSpatialData:
                    this.m_mapSpatialData = (MapSpatialData)reader.ReadRIFObject();
                    break;

                case MemberName.ExprHostMapMemberID:
                    this.m_exprHostMapMemberID = reader.ReadInt32();
                    break;

                case MemberName.ID:
                    this.m_ID = reader.ReadInt32();
                    break;

                case MemberName.DataElementName:
                    this.m_dataElementName = reader.ReadString();
                    break;

                case MemberName.DataElementOutput:
                    this.m_dataElementOutput = (DataElementOutputTypes)reader.ReadEnum();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
 public MapSpatialData(MapVectorLayer mapVectorLayer, Map map)
 {
     this.m_defObject      = mapVectorLayer.MapVectorLayerDef.MapSpatialData;
     this.m_mapVectorLayer = mapVectorLayer;
     this.m_map            = map;
 }