VTK
vtkViewNodeCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkViewNodeCollection.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 =========================================================================*/
22 #ifndef vtkViewNodeCollection_h
23 #define vtkViewNodeCollection_h
24 
25 #include "vtkRenderingSceneGraphModule.h" // For export macro
26 #include "vtkCollection.h"
27 
28 class vtkViewNode;
29 
30 class VTKRENDERINGSCENEGRAPH_EXPORT vtkViewNodeCollection :
31  public vtkCollection
32 {
33 public:
34  static vtkViewNodeCollection* New();
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
41  void AddItem(vtkViewNode *a);
42 
47  vtkViewNode *GetNextItem();
48 
53  vtkViewNode *GetNextViewNode(vtkCollectionSimpleIterator &cookie);
54 
58  bool IsRenderablePresent(vtkObject *obj);
59 
60 protected:
63 
64 private:
65  // hide the standard AddItem from the user and the compiler.
66  void AddItem(vtkObject *o)
67  { this->vtkCollection::AddItem(o); }
68 
69  vtkViewNodeCollection(const vtkViewNodeCollection&) VTK_DELETE_FUNCTION;
70  void operator=(const vtkViewNodeCollection&) VTK_DELETE_FUNCTION;
71 };
72 
73 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:44
abstract base class for most VTK objects
Definition: vtkObject.h:53
collection of view nodes
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCollection * New()
Construct with empty list.
void AddItem(vtkObject *)
Add an object to the bottom of the list.
create and manipulate ordered lists of objects
Definition: vtkCollection.h:48
a node within a VTK scene graph
Definition: vtkViewNode.h:37