[vtk-developers] vtkCollection: InsertItem( int i , vtkObject *a ) method

Dean Inglis dean.inglis at camris.ca
Tue Sep 9 14:51:44 EDT 2008


Unless there are no objections, I'd like to add InsertItem(int i ,
 vtkObject* a) to vtkCollection. Is it necessary to add the following
methods/signatures to all child classes of vtkCollection as is done
for example with AddItem?:

class vtkChildTypeCollection: public vtkCollection
{
public:

  void InsertItem( int i, vtkChildType* a )
{
 this->vtkCollection::InsertItem(I,a);
}
private:
  // hide the standard InsertItem from the user and the compiler.
  void InsertItem(int i,vtkObject *o) 
{ this->vtkCollection::InsertItem(i,o); };

}

thanks,
Dean

From: Andrew Maclean [mailto:andrew.amaclean at gmail.com] 
>It would be a good idea. Some boundary checks would be needed on i though.
>
>Andrew


2008/9/8 Dean Inglis <dean.inglis at sympatico.ca>:
> vtkCollection currently does not have insertion after element i
>
> capability (ie method signature  InsertItem( int i , vtkObject *a ) .
>
> Is there a reason for this?  If not, would there be any objection
>
> to adding the method?
>
>
>
> Dean
>
>
>
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>



-- 
___________________________________________
Andrew J. P. Maclean
Centre for Autonomous Systems
The Rose Street Building J04
The University of Sydney 2006 NSW
AUSTRALIA
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
URL: http://www.acfr.usyd.edu.au/
___________________________________________




More information about the vtk-developers mailing list