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
31class VTKBONE_EXPORT vtkboneConstraintCollection : public vtkCollection
32{
33public:
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
81protected:
84
85
86private:
87 // hide the standard AddItem from the user and the compiler.
88 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
89
90private:
92 void operator=(const vtkboneConstraintCollection&); // Not implemented.
93};
94
95
96#endif
vtkObject * GetItemAsObject(int i)
void RemoveItem(int i)
void AddItem(vtkObject *)
vtkObject * GetNextItemAsObject()
void operator=(const vtkObjectBase &)
maintain an unordered list of dataarray objects
vtkboneConstraint * GetItem(const char *name)
static vtkboneConstraintCollection * New()
void AddItem(vtkboneConstraint *ds)
vtkboneConstraint * GetNextConstraint(vtkCollectionSimpleIterator &cookie)
a constraint for a finite element mesh
name
void * vtkCollectionSimpleIterator