View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000540VTK(No Category)public2004-01-25 11:342012-12-13 13:56
ReporterDragan Tubic 
Assigned ToDavid Gobbi 
PriorityurgentSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000540: Wrong value conversion of vtkIdType in wrapper
DescriptionvtkParse.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.
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0002431)
David Gobbi (developer)
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.

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2012-12-13 13:56 David Gobbi Status customer review => closed
2012-12-13 13:56 David Gobbi Assigned To Ken Martin => David Gobbi


Copyright © 2000 - 2018 MantisBT Team