protected override void UpdateTileFactory(object sender, EventArgs args)
        {
            VectorLayerUpdateArgs layerUpdateArgs = args as VectorLayerUpdateArgs;

            layerUpdateArgs.factory = this;
            base.UpdateTileFactory(sender, layerUpdateArgs);
        }
Beispiel #2
0
        private void UpdatePois(object sender, System.EventArgs eventArgs)
        {
            VectorLayerUpdateArgs layerUpdateArgs = eventArgs as VectorLayerUpdateArgs;

            layerUpdateArgs.visualizer         = this;
            layerUpdateArgs.effectsVectorLayer = true;

            if (layerUpdateArgs.modifier != null)
            {
                layerUpdateArgs.property.PropertyHasChanged -= layerUpdateArgs.modifier.UpdateModifier;
                layerUpdateArgs.modifier.ModifierHasChanged -= UpdatePois;
            }
            else if (layerUpdateArgs.property != null)
            {
                layerUpdateArgs.property.PropertyHasChanged -= UpdatePois;
            }

            foreach (var modifier in _defaultStack.MeshModifiers)
            {
                modifier.UnbindProperties();
                modifier.ModifierHasChanged -= UpdatePois;
            }
            foreach (var modifier in _defaultStack.GoModifiers)
            {
                modifier.UnbindProperties();
                modifier.ModifierHasChanged -= UpdatePois;
            }

            SubLayerProperties.coreOptions.PropertyHasChanged            -= UpdatePois;
            (SubLayerProperties as PrefabItemOptions).PropertyHasChanged -= UpdatePois;

            OnUpdateLayerVisualizer(layerUpdateArgs);
        }
Beispiel #3
0
 protected virtual void NotifyUpdateModifier(VectorLayerUpdateArgs layerUpdateArgs)
 {
     System.EventHandler handler = ModifierHasChanged;
     if (handler != null)
     {
         handler(this, layerUpdateArgs);
     }
 }
Beispiel #4
0
        private void UpdateVector(object sender, System.EventArgs eventArgs)
        {
            VectorLayerUpdateArgs layerUpdateArgs = eventArgs as VectorLayerUpdateArgs;

            layerUpdateArgs.visualizer         = this;
            layerUpdateArgs.effectsVectorLayer = true;

            if (layerUpdateArgs.modifier != null)
            {
                layerUpdateArgs.property.PropertyHasChanged -= layerUpdateArgs.modifier.UpdateModifier;
                layerUpdateArgs.modifier.ModifierHasChanged -= UpdateVector;
            }
            else if (layerUpdateArgs.property != null)
            {
                layerUpdateArgs.property.PropertyHasChanged -= UpdateVector;
            }
            UnbindSubLayerEvents();

            OnUpdateLayerVisualizer(layerUpdateArgs);
        }