コード例 #1
0
ファイル: KeyFrameItem.cs プロジェクト: radtek/Shopdrawing
        private void Select()
        {
            KeyFrameSelectionSet frameSelectionSet = this.TimelineItemManager.ViewModel.KeyFrameSelectionSet;

            if (this.IsSelectable)
            {
                frameSelectionSet.SetSelection((ICollection <KeyFrameSceneNode>) this.KeyFrameSceneNodesToSelect, (KeyFrameSceneNode)null);
            }
            else
            {
                frameSelectionSet.Clear();
            }
        }
コード例 #2
0
ファイル: KeyFrameItem.cs プロジェクト: radtek/Shopdrawing
        private void ToggleSelect()
        {
            if (!this.IsSelectable)
            {
                return;
            }
            KeyFrameSelectionSet frameSelectionSet = this.TimelineItemManager.ViewModel.KeyFrameSelectionSet;

            if (this.IsSelected)
            {
                frameSelectionSet.RemoveSelection((ICollection <KeyFrameSceneNode>) this.KeyFrameSceneNodesToSelect);
            }
            else
            {
                frameSelectionSet.ExtendSelection((ICollection <KeyFrameSceneNode>) this.KeyFrameSceneNodesToSelect);
            }
        }
コード例 #3
0
ファイル: KeySplineEditor.cs プロジェクト: radtek/Shopdrawing
        private void DeselectTime0KeyFrames()
        {
            if (this.keySplineProperty == null || this.keySplineProperty.IsEmpty)
            {
                return;
            }
            List <KeyFrameSceneNode> list = new List <KeyFrameSceneNode>();
            KeyFrameSelectionSet     frameSelectionSet = this.keySplineProperty.SceneNodeObjectSet.ViewModel.KeyFrameSelectionSet;
            KeyFrameSceneNode        primarySelection  = frameSelectionSet.PrimarySelection;

            foreach (KeyFrameSceneNode keyFrameSceneNode in frameSelectionSet.Selection)
            {
                if (keyFrameSceneNode.Time != 0.0)
                {
                    list.Add(keyFrameSceneNode);
                }
            }
            frameSelectionSet.SetSelection((ICollection <KeyFrameSceneNode>)list, primarySelection);
        }