VTK
vtkPolyDataCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyDataCollection.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef __vtkPolyDataCollection_h
26 #define __vtkPolyDataCollection_h
27 
28 #include "vtkCollection.h"
29 
30 #include "vtkPolyData.h" // Needed for static cast
31 
33 {
34 public:
35  static vtkPolyDataCollection *New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
41  void AddItem(vtkPolyData *pd)
42  {
43  this->vtkCollection::AddItem(pd);
44  }
46 
48 
49  vtkPolyData *GetNextItem() {
50  return static_cast<vtkPolyData *>(this->GetNextItemAsObject());};
52 
53  //BTX
55 
58  return static_cast<vtkPolyData *>(this->GetNextItemAsObject(cookie));};
59  //ETX
61 
62 protected:
65 
66 private:
67  // hide the standard AddItem from the user and the compiler.
68  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
69 
70 private:
71  vtkPolyDataCollection(const vtkPolyDataCollection&); // Not implemented.
72  void operator=(const vtkPolyDataCollection&); // Not implemented.
73 };
74 
75 
76 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:46
abstract base class for most VTK objects
Definition: vtkObject.h:60
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_FILTERING_EXPORT
vtkPolyData * GetNextPolyData(vtkCollectionSimpleIterator &cookie)
a simple class to control print indentation
Definition: vtkIndent.h:37
static vtkCollection * New()
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51
void AddItem(vtkPolyData *pd)
vtkObject * GetNextItemAsObject()
maintain a list of polygonal data objects