Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Filtering/vtkPolyDataCollection.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkPolyDataCollection.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00043 #ifndef __vtkPolyDataCollection_h
    00044 #define __vtkPolyDataCollection_h
    00045
    00046 #include "vtkCollection.h"
    00047
    00048 #include "vtkPolyData.h" // Needed for static cast
    00049
    00050 class VTK_FILTERING_EXPORT vtkPolyDataCollection : public vtkCollection
    00051 {
    00052 public:
    00053   static vtkPolyDataCollection *New();
    00054   vtkTypeRevisionMacro(vtkPolyDataCollection,vtkCollection);
    00055   void PrintSelf(ostream& os, vtkIndent indent);
    00056
    00058
    00059   void AddItem(vtkPolyData *pd) {
    00060     this->vtkCollection::AddItem((vtkObject *)pd);};
    00062
    00064
    00065   vtkPolyData *GetNextItem() {
    00066     return static_cast<vtkPolyData *>(this->GetNextItemAsObject());};
    00068 protected:
    00069   vtkPolyDataCollection() {};
    00070   ~vtkPolyDataCollection() {};
    00071
    00072 private:
    00073   // hide the standard AddItem from the user and the compiler.
    00074   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
    00075
    00076 private:
    00077   vtkPolyDataCollection(const vtkPolyDataCollection&);  // Not implemented.
    00078   void operator=(const vtkPolyDataCollection&);  // Not implemented.
    00079 };
    00080
    00081
    00082 #endif