コード例 #1
0
        //--------------------------------------------------------------------------------------------------

        public override void Remove()
        {
            if (_AisCircle != null)
            {
                AisContext.Erase(_AisCircle, false);
                _AisCircle = null;
            }
        }
コード例 #2
0
        //--------------------------------------------------------------------------------------------------

        public override void Remove()
        {
            if (_AisPoint != null)
            {
                AisContext.Erase(_AisPoint, false);
                _AisPoint = null;
            }
        }
コード例 #3
0
        //--------------------------------------------------------------------------------------------------

        public override void Remove()
        {
            if (_AisAxis != null)
            {
                AisContext.Erase(_AisAxis, false);
                _AisAxis = null;
            }
        }
コード例 #4
0
        //--------------------------------------------------------------------------------------------------

        void _UpdateInteractivityStatus()
        {
            if (_AisShape == null)
            {
                return;
            }

            if (_Options.HasFlag(Options.Ghosting))
            {
                AisContext.Display(_AisShape, false);
                AisContext.Deactivate(_AisShape);
                return;
            }

            var layer = _ShapeSource?.GetLayer();

            if (layer == null)
            {
                return;
            }

            bool isVisible = !_IsHidden && layer.IsVisible;

            if (WorkspaceController.VisualShapes.EntityIsolationEnabled)
            {
                isVisible &= WorkspaceController.VisualShapes.GetIsolatedEntities().Contains(_ShapeSource);
            }

            if (isVisible)
            {
                if (AisContext.IsDisplayed(_AisShape))
                {
                    AisContext.Update(_AisShape, false);
                }
                else
                {
                    AisContext.Display(_AisShape, false);
                }

                _UpdateSelectionSensitivity();
            }
            else
            {
                if (AisContext.IsDisplayed(_AisShape))
                {
                    AisContext.Erase(_AisShape, false);
                }
            }

            _RaiseAisObjectChanged();
        }
コード例 #5
0
        //--------------------------------------------------------------------------------------------------

        public override void Remove()
        {
            if (_AisShape == null)
            {
                return;
            }

            if (AisContext.IsHilighted(_AisShape))
            {
                AisContext.Unhilight(_AisShape, false);
            }
            AisContext.Remove(_AisShape, false);

            AisContext.Erase(_AisShape, false);
            _AisShape = null;

            _UpdateMarker();
        }