#include "vtkEsquiCaraCollection.h" #include "vtkObjectFactory.h" #include "vtkCara.h" vtkCxxRevisionMacro(vtkEsquiCaraCollection, "$Revision: 0.1 $"); vtkStandardNewMacro(vtkEsquiCaraCollection); vtkIdType vtkEsquiCaraCollection::Append(vtkCara *a) { this->vtkEsquiCollection::InsertarObjeto((vtkObject *) a); return (this->GetNumberOfItems() -1); } vtkCara* vtkEsquiCaraCollection::Item(vtkIdType Posicion) { return static_cast (this->vtkCollection::GetItemAsObject((int)Posicion)); } vtkCara* vtkEsquiCaraCollection::GetFirst() { return this->Item(0); } void vtkEsquiCaraCollection::PrintSelf(ostream& os, vtkIndent indent) { this->Superclass::PrintSelf(os,indent); } vtkIdType vtkEsquiCaraCollection::Find(vtkCara *object) { return this->Superclass::Find((vtkObject*) object); } vtkIdType vtkEsquiCaraCollection::IndexOf(vtkCara *object) { return this->Superclass::IndexOf((vtkObject*) object); } vtkCara* vtkEsquiCaraCollection::GetNextItem() { return static_cast(this->vtkCollection::GetNextItemAsObject()); } void vtkEsquiCaraCollection::DeleteAll() { vtkCara *Temp; this->InitTraversal(); while (Temp = this->GetNextItem()) { Temp->Delete(); } this->RemoveAllItems(); } void vtkEsquiCaraCollection::CreateNodes(int numNodes) { for (unsigned i = 0; iAppend(vtkCara::New()); } }