vtkbone
vtkboneConstraintCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Copyright 2010-2016, Numerics88 Solutions Ltd.
4  http://www.numerics88.com/
5 
6  Copyright (c) Eric Nodwell and Steven K. Boyd
7  See Copyright.txt for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 =========================================================================*/
13 
23 #ifndef __vtkboneConstraintCollection_h
24 #define __vtkboneConstraintCollection_h
25 
26 #include "vtkCollection.h"
27 #include "vtkboneWin32Header.h"
28 
29 #include "vtkboneConstraint.h" // Needed for inline methods
30 
32 {
33 public:
36 
38 
40  {this->vtkCollection::AddItem(ds);}
42 
44 
46  return static_cast<vtkboneConstraint *>(this->GetNextItemAsObject());};
48 
50 
52  return static_cast<vtkboneConstraint *>(this->GetItemAsObject(i));};
54 
56  vtkboneConstraint *GetItem(const char* name);
57 
59 
62  void RemoveItem(const char* name)
63  { this->vtkCollection::RemoveItem(this->GetItem(name)); }
65 
67 
69  return static_cast<vtkboneConstraint *>(this->GetNextItemAsObject());};
71 
72  //BTX
74 
77  return static_cast<vtkboneConstraint *>(this->GetNextItemAsObject(cookie));};
78  //ETX
80 
81 protected:
84 
85 
86 private:
87  // hide the standard AddItem from the user and the compiler.
88  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
89 
90 private:
91  vtkboneConstraintCollection(const vtkboneConstraintCollection&); // Not implemented.
92  void operator=(const vtkboneConstraintCollection&); // Not implemented.
93 };
94 
95 
96 #endif
void * vtkCollectionSimpleIterator
vtkboneConstraint * GetItem(int i)
#define VTKBONE_EXPORT
void AddItem(vtkboneConstraint *ds)
vtkboneConstraint * GetNextConstraint(vtkCollectionSimpleIterator &cookie)
a constraint for a finite element mesh
name
static vtkCollection * New()
void AddItem(vtkObject *)
void RemoveItem(int i)
maintain an unordered list of dataarray objects
vtkObject * GetNextItemAsObject()
vtkObject * GetItemAsObject(int i)
void operator=(const vtkObjectBase &)