MantisBT - VTK
View Issue Details
0000540VTK(No Category)public2004-01-25 11:342012-12-13 13:56
Dragan Tubic 
David Gobbi 
urgentmajoralways
closedfixed 
 
 
0000540: Wrong value conversion of vtkIdType in wrapper
vtkParse.l file defines vtkIdType conversion to LONG
[line 157: "vtkIdType" return(LONG);]
even if the configured type for vtkIdType is different (configured in vtkIdType.h)

This is not a problem for the TCL wrapper since it does not wrap methods that have pointer arguments (for example method
void SetArray (int *array, int size, int save);
in vtkIdTypeArray class.)
but Octave wrapper (filed as feature request) converts octave arrays into vtk arrays and vice versa and needs to know the exact type to be able to use pointers.
The parser should either pass vtkIdType to the wrapper or use the configured type.
No tags attached.
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2012-12-13 13:56David GobbiStatuscustomer review => closed
2012-12-13 13:56David GobbiAssigned ToKen Martin => David Gobbi

Notes
(0002431)
David Gobbi   
2005-05-18 23:03   
This bug has been fixed by the commits to the Wrapping directory on May 15, 2005. Within the wrappers, vtkIdType is identified using the hexadecimal digit A and vtkIdType* is identified as 0x30A.

The Tcl and Java wrappers will still truncate vtkIdType to int. The Python wrappers have been adjusted to keep the full precision.