[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    Re: [vtkusers] problems while subclassing vtkCellLocator (Vtk5.0)
From:       Mathieu Malaterre <mathieu.malaterre () kitware ! com>
Date:       2006-02-28 17:49:01
Message-ID: 44048D0D.2080505 () kitware ! com
[Download RAW message or body]

Jens G. wrote:
> Hi 
> 
> While trying to subclass vtkCellLocator to add the function 
> 	void FindCellsWithinRadius (double radius, double x[3], vtkIdList *result);
> I found these problems:
> 
> 1)
> The class vtkNeighborCells should be defined in the header-file 
> vtkCellLocator.h and not in vtkCellLocator.cxx where it is right now.
> Right now it is not possible to subclass vtkCellLocator and access functions 
> of vtkNeighborCell-objects.
> (I do not know of the possibility for forward declaration of member-functions 
> I could use in my cxx-file of the subclass)
> 
> 2)
> vtkCellLocator::Distance2ToBounds(double x[3], double bounds[6])
> 	should be
> vtkCellLocator::Distance2ToBounds(const double x[3], const double bounds[6])
> 	like it is in vtkPointLocator.

Jens,

	Make perfect sense to me. Could you please open an issue in the VTK bug 
tracker:

	http://vtk.org/Bug

Thanks for your time
Mathieu

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic