#include <vtkPVListBoxToListBoxSelectionEditor.h>
Inheritance diagram for vtkPVListBoxToListBoxSelectionEditor:
Public Member Functions | |
vtkTypeRevisionMacro (vtkPVListBoxToListBoxSelectionEditor, vtkKWListBoxToListBoxSelectionEditor) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetSourceList (vtkStringList *list, int force=0) |
void | SetFinalList (vtkStringList *list, int force=0) |
Static Public Member Functions | |
vtkPVListBoxToListBoxSelectionEditor * | New () |
Protected Member Functions | |
vtkPVListBoxToListBoxSelectionEditor () | |
~vtkPVListBoxToListBoxSelectionEditor () | |
void | SetList (vtkStringList *list, vtkKWListBox *toAdd, vtkKWListBox *toComp, int force) |
virtual void | MoveWholeList (vtkKWListBox *l1, vtkKWListBox *l2) |
vtkKWListBoxToListBoxSelectionEditor uses AppendUnique() and like which is very expensive for addition/moving of items from one list to other. This class overcomes that by allowing caller to set the entire lists and checking for mutual exclusions using stl sets. Hence, is much better suited for use in vtkPVFileEntry where there could easily be large number of files.
Definition at line 33 of file vtkPVListBoxToListBoxSelectionEditor.h.
|
|
|
|
|
Reimplemented from vtkKWListBoxToListBoxSelectionEditor. |
|
|
|
Reimplemented from vtkKWListBoxToListBoxSelectionEditor. |
|
Set the source list. Clears any items already present in the list. If force==0, then only those items not in the final list are added. If force==1, then all items in list are added however, those also present in final list are removed from the final list. |
|
Set the final list. Clears any items already present in the list. If force==0, then only those items not in the source list are added. If force==1, then all items in list are added however, those also present in source list are removed from the source list. |
|
|
|
Overridden to overcome use of vtkKWListBox::AppendUnique(). Reimplemented from vtkKWListBoxToListBoxSelectionEditor. |