VTK
vtkStructuredPointsCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStructuredPointsCollection.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 =========================================================================*/
23 #ifndef __vtkStructuredPointsCollection_h
24 #define __vtkStructuredPointsCollection_h
25 
26 #include "vtkCollection.h"
27 #include "vtkStructuredPoints.h" // Needed for static cast
28 
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent);
35 
37 
39  {
40  this->vtkCollection::AddItem(ds);
41  }
43 
45 
48  return static_cast<vtkStructuredPoints *>(this->GetNextItemAsObject());};
50 
51  //BTX
53 
57  return static_cast<vtkStructuredPoints *>(
58  this->GetNextItemAsObject(cookie));};
59  //ETX
61 
62 protected:
65 
66 
67 
68 private:
69  // hide the standard AddItem from the user and the compiler.
70  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
71 
72 private:
74  void operator=(const vtkStructuredPointsCollection&); // Not implemented.
75 };
76 
77 
78 #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
a simple class to control print indentation
Definition: vtkIndent.h:37
void AddItem(vtkStructuredPoints *ds)
static vtkCollection * New()
vtkStructuredPoints * GetNextStructuredPoints(vtkCollectionSimpleIterator &cookie)
maintain a list of structured points data objects
void AddItem(vtkObject *)
A subclass of ImageData.
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:51
vtkObject * GetNextItemAsObject()