Exemple #1
0
        public void Dispose()
        {
            if (_iterator != null)
            {
                _iterator.Dispose();
                _iterator = null;
            }

            _collection = null;
        }
Exemple #2
0
        public VtkCollectionEnumerator(vtkCollection collection)
        {
            _collection = collection;

            if (_collection != null)
            {
                _iterator = new vtkCollectionIterator();
                _iterator.SetCollection(_collection);
                _iterator.InitTraversal();
            }
        }
Exemple #3
0
 public Enumerable(vtkCollection collection)
 {
     _collection = collection;
 }
Exemple #4
0
 public static IEnumerable <T> AsEnumerable <T>(this vtkCollection collection, Func <vtkObject, T> safeCastDelegate)
     where T : vtkObject
 {
     return(new Enumerable <T>(collection, safeCastDelegate));
 }
Exemple #5
0
 public static IEnumerable <vtkObject> AsEnumerable(this vtkCollection collection)
 {
     return(new Enumerable(collection));
 }