MantisBT - VTK
View Issue Details
0010121VTK(No Category)public2010-01-12 01:402016-08-12 09:55
Stéphane Metz 
Kitware Robot 
normaltrivialalways
closedmoved 
 
 
0010121: Wrong use of SetEnabled (int) method in some vtkInteractorObserver class destructor
Actually, vtkInteractorObserver class destructor make a call to "this->SetEnabled (0);"

The problem is that in c++, the virtual dispatching mechanism has a different semantics during construction and destruction of an object. So in this case, when we proceed to the destruction of a vtkInteractorObserver object, the SetEnabled(int) called method is the vtkInteractorObserver class definition (which is empty) and not the respective daughter method definition.

In other word, "this->SetEnabled(0);" call in the vtkInteractorObserver object destructor is useless, and all specialized classes are never disable itself at destruction.
Some daughter classes are valid because they are recalling "this->SetEnabled(0);" in their own destructor like vtkContourWidget class, but others are not like vtkBoxWidget class.
No tags attached.
Issue History
2010-01-12 01:40Stéphane MetzNew Issue
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037134
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0037134)
Kitware Robot   
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.