Exemplo n.º 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]);
            }
        }
Exemplo n.º 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]);
            }
        }
Exemplo n.º 3
0
 public SelectionSet GetSelectedSelectionSet()
 {
     if (null == m_SelectedSet)
         m_SelectedSet = new SelectionSet("SelectedSet");
     return m_SelectedSet;
 }
Exemplo n.º 4
0
 public SelectionSet GetPreviewSelectionSet()
 {
     if (null == m_PreViewSet)
         m_PreViewSet = new SelectionSet("PreviewSet");
     return m_PreViewSet;
 }
Exemplo n.º 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;
        }
Exemplo n.º 6
0
 public SelectionManager()
 {
     m_SelectionSetList = new FRList<SelectionSet>();
     m_PreViewSet = null;
     m_SelectedSet = null;
 }
Exemplo n.º 7
0
 public PtSelectContext()
 {
     m_SelectionSet = null;
 }