Example #1
0
        // N/A need test
        public void Subtract(SelectionSet other)
        {
            Debug.Assert(other != null);
            if (null == other) return;

            for (int i = 0; i < other.Selections.Count; i++)
            {
                RemoveSelection(other.Selections[i]);
            }
        }
Example #2
0
        // N/A meed test
        public void Union(SelectionSet other)
        {
            Debug.Assert(other != null);
            if (null == other) return;

            for(int i = 0; i < other.Selections.Count; i++)
            {
                AddSelection(other.Selections[i]);
            }
        }
Example #3
0
 public SelectionSet GetSelectedSelectionSet()
 {
     if (null == m_SelectedSet)
         m_SelectedSet = new SelectionSet("SelectedSet");
     return m_SelectedSet;
 }
Example #4
0
 public SelectionSet GetPreviewSelectionSet()
 {
     if (null == m_PreViewSet)
         m_PreViewSet = new SelectionSet("PreviewSet");
     return m_PreViewSet;
 }
Example #5
0
        public SelectionSet CreateSelectionSet(String InternalName)
        {
            // The name must be unique for the selection
            // If exist, return it.
            SelectionSet ExistSet = GetSelectionSet(InternalName);
            if (ExistSet != null) return ExistSet;

            SelectionSet NewSet = new SelectionSet(InternalName);
            m_SelectionSetList.Add(NewSet);

            return NewSet;
        }
Example #6
0
 public SelectionManager()
 {
     m_SelectionSetList = new FRList<SelectionSet>();
     m_PreViewSet = null;
     m_SelectedSet = null;
 }
Example #7
0
 public PtSelectContext()
 {
     m_SelectionSet = null;
 }