VTK
vtkAssemblyPaths.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAssemblyPaths.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 =========================================================================*/
26 #ifndef vtkAssemblyPaths_h
27 #define vtkAssemblyPaths_h
28 
29 #include "vtkRenderingCoreModule.h" // For export macro
30 #include "vtkCollection.h"
31 
32 #include "vtkAssemblyPath.h" // Needed for inline methods
33 
34 class vtkProp;
35 
37 {
38 public:
39  static vtkAssemblyPaths *New();
41 
43  void AddItem(vtkAssemblyPath *p);
44 
46  void RemoveItem(vtkAssemblyPath *p);
47 
51 
53  vtkAssemblyPath *GetNextItem();
54 
57  virtual unsigned long GetMTime();
58 
59  //BTX
61 
64  { return static_cast<vtkAssemblyPath *>(this->GetNextItemAsObject(cookie)); }
65  //ETX
67 
68 protected:
71 
72 private:
73  // hide the standard AddItem from the user and the compiler.
74  void AddItem(vtkObject *o)
75  { this->vtkCollection::AddItem(o); }
76  void RemoveItem(vtkObject *o)
77  { this->vtkCollection::RemoveItem(o); }
78  void RemoveItem(int i)
79  { this->vtkCollection::RemoveItem(i); }
80  int IsItemPresent(vtkObject *o)
81  { return this->vtkCollection::IsItemPresent(o); }
82 private:
83  vtkAssemblyPaths(const vtkAssemblyPaths&); // Not implemented.
84  void operator=(const vtkAssemblyPaths&); // Not implemented.
85 };
86 
88 {
89  this->vtkCollection::AddItem(p);
90 }
91 
93 {
95 }
96 
98 {
99  return this->vtkCollection::IsItemPresent(p);
100 }
101 
103 {
104  return static_cast<vtkAssemblyPath *>(this->GetNextItemAsObject());
105 }
106 
107 #endif
108 // VTK-HeaderTest-Exclude: vtkAssemblyPaths.h
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkAssemblyPath * GetNextItem()
int IsItemPresent(vtkObject *a)
a list of nodes that form an assembly path
virtual unsigned long GetMTime()
static vtkCollection * New()
a list of lists of props representing an assembly hierarchy
void RemoveItem(vtkAssemblyPath *p)
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
int IsItemPresent(vtkAssemblyPath *p)
#define VTKRENDERINGCORE_EXPORT
void RemoveItem(int i)
void AddItem(vtkAssemblyPath *p)
vtkAssemblyPath * GetNextPath(vtkCollectionSimpleIterator &cookie)
vtkObject * GetNextItemAsObject()