// 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]); } }
// 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]); } }
public SelectionSet GetSelectedSelectionSet() { if (null == m_SelectedSet) m_SelectedSet = new SelectionSet("SelectedSet"); return m_SelectedSet; }
public SelectionSet GetPreviewSelectionSet() { if (null == m_PreViewSet) m_PreViewSet = new SelectionSet("PreviewSet"); return m_PreViewSet; }
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; }
public SelectionManager() { m_SelectionSetList = new FRList<SelectionSet>(); m_PreViewSet = null; m_SelectedSet = null; }
public PtSelectContext() { m_SelectionSet = null; }