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 
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
vtkCollectionSimpleIterator
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
vtkAssemblyPaths::IsItemPresent
int IsItemPresent(vtkAssemblyPath *p)
Definition: vtkAssemblyPaths.h:97
vtkCollection.h
vtkAssemblyPaths::AddItem
void AddItem(vtkAssemblyPath *p)
Definition: vtkAssemblyPaths.h:87
vtkCollection::IsItemPresent
int IsItemPresent(vtkObject *a)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkAssemblyPaths::RemoveItem
void RemoveItem(vtkAssemblyPath *p)
Definition: vtkAssemblyPaths.h:92
vtkAssemblyPath
a list of nodes that form an assembly path
Definition: vtkAssemblyPath.h:41
vtkAssemblyPaths::vtkAssemblyPaths
vtkAssemblyPaths()
Definition: vtkAssemblyPaths.h:69
vtkAssemblyPaths
a list of lists of props representing an assembly hierarchy
Definition: vtkAssemblyPaths.h:37
vtkCollection::GetNextItemAsObject
vtkObject * GetNextItemAsObject()
Definition: vtkCollection.h:156
vtkAssemblyPaths::GetNextItem
vtkAssemblyPath * GetNextItem()
Definition: vtkAssemblyPaths.h:102
vtkCollection
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:53
vtkAssemblyPaths::GetMTime
virtual unsigned long GetMTime()
vtkAssemblyPaths::GetNextPath
vtkAssemblyPath * GetNextPath(vtkCollectionSimpleIterator &cookie)
Definition: vtkAssemblyPaths.h:63
vtkRenderingCoreModule.h
vtkAssemblyPaths::New
static vtkAssemblyPaths * New()
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkCollection::RemoveItem
void RemoveItem(int i)
vtkAssemblyPaths::~vtkAssemblyPaths
~vtkAssemblyPaths()
Definition: vtkAssemblyPaths.h:70
vtkCollection::AddItem
void AddItem(vtkObject *)
vtkgl::p
GLfloat GLfloat p
Definition: vtkgl.h:15717
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkAssemblyPath.h