#include "vtkEsquiCollection.h" #include "vtkObjectFactory.h" #include "vtkObject.h" #include vtkCxxRevisionMacro(vtkEsquiCollection, "$Revision: 0.1 $"); void vtkEsquiCollection::InsertarObjeto(vtkObject *a) { this->vtkCollection::AddItem((vtkObject *) a); } vtkIdType vtkEsquiCollection::IndexOf(vtkObject *a) { return this->Find(a); } vtkIdType vtkEsquiCollection::Find(vtkObject *a) { for (vtkIdType i=0; iGetNumberOfItems(); i++) { if (this->vtkCollection::GetItemAsObject(i)== a) { return i; } } return NULL; } void vtkEsquiCollection::DeleteNode(vtkIdType Posicion) { this->RemoveItem(Posicion); } int vtkEsquiCollection::IsEmpty() { if (this->GetNumberOfItems() == 0) { return 1; } else { return 0; } } void vtkEsquiCollection::PrintSelf(ostream& os, vtkIndent indent) { this->Superclass::PrintSelf(os,indent); }