View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015494VTK(No Category)public2015-05-27 13:162016-08-12 09:55
ReporterDavid Gobbi 
Assigned ToDavid Gobbi 
PrioritylowSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0015494: Faulty logic when wrapping templated VTK objects
DescriptionWhen the python wrappers encounter a parameter that is a pointer to a class template, they seem to assume that the class is derived from vtkObjectBase via vtkTypeTemplate. As a result, the wrappers generate a typeid() call, because vtkTypeTemplate uses typeid() in its GetClassName() method.

Of course, this typeid() call should _only_ be used for classes that use vtkTypeTemplate. It is inapplicable to any other templated classes. Hence, I need to add some code that checks whether a class uses vtkTypeTemplate, or whether a class is derived from such a class.

I've added a "quick and dirty" fix for the vtkSmartPointer<>, because it's the only wrapper-breaking template that I've seen so far: a4a1d20e. However, a better fix will eventually be needed.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0036169)
David Gobbi (developer)
2016-07-06 10:50

This issue currently isn't causing any problems. It can be re-examined in the future.
(0037391)
Kitware Robot (administrator)
2016-08-12 09:55

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2015-05-27 13:16 David Gobbi New Issue
2015-05-27 13:16 David Gobbi Assigned To => David Gobbi
2016-07-06 10:50 David Gobbi Note Added: 0036169
2016-07-06 10:50 David Gobbi Status backlog => expired
2016-07-06 10:50 David Gobbi Resolution open => suspended
2016-08-12 09:55 Kitware Robot Note Added: 0037391
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution suspended => moved


Copyright © 2000 - 2018 MantisBT Team