View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009223VTK(No Category)public2009-06-30 19:092012-12-12 12:16
Reporterivan daschinsky 
Assigned ToDavid Gobbi 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version5.8.0 
Summary0009223: vtkTkPhotoImage.py - wrong call tcl command
DescriptionI suggest to patch this file for proper calling tcl command vtkImageDataToTkPhoto

This is my variant of method in class vtkTkPhotoImage from vtkTkPhotoImage module (tk-python widgets)

def PutImageSlice ( self, image, z, orientation='transverse', window=256, level=128 ):
        t = image.__this__
        s = 'vtkImageDataToTkPhoto %s %s %d %s %d %d' % ( t, self.name, z, orientation, window, level )
        self.tk.eval ( s )

Previous version:

def PutImageSlice ( self, image, z, orientation='transverse', window=256, level=128 ):
        t = image.__this__
        s = 'vtkImageDataToTkPhoto %s %s %d %s %d %d' % ( t[:-2], self.name, z, orientation, window, level )
        self.tk.eval ( s )

TagsNo tags attached.
Project
Type
Attached Files? file icon vtkTkPhotoImage.py [^] (826 bytes) 2009-06-30 19:09

 Relationships

  Notes
(0016792)
ivan daschinsky (reporter)
2009-06-30 19:14

Sorry, I've made mistake. There is right version of this method

def PutImageSlice ( self, image, z, orientation='transverse', window=256, level=128 ):
        import string
        t = string.replace(image.__this__,'_p','')
        s = 'vtkImageDataToTkPhoto %s %s %d %s %d %d' % ( t, self.name, z, orientation, window, level )
        self.tk.eval ( s )
(0026202)
David Gobbi (developer)
2011-04-17 01:37

Modified the vtkTkRenderWidget to be more flexible about
the formatting of the mangled pointers.

commit 97aef8bded8a1019b2ddfcb4e600051d8b303f9e
Author: David Gobbi <david.gobbi@gmail.com>
Date: Sat Apr 16 23:31:30 2011 -0600

 Issue History
Date Modified Username Field Change
2009-06-30 19:09 ivan daschinsky New Issue
2009-06-30 19:09 ivan daschinsky File Added: vtkTkPhotoImage.py
2009-06-30 19:14 ivan daschinsky Note Added: 0016792
2011-02-26 10:22 David Gobbi Assigned To => David Gobbi
2011-02-26 10:22 David Gobbi Status backlog => tabled
2011-04-17 01:37 David Gobbi Note Added: 0026202
2011-04-17 01:37 David Gobbi Status tabled => @80@
2011-04-17 01:37 David Gobbi Resolution open => fixed
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2012-12-12 12:16 David Gobbi Status customer review => closed
2012-12-12 12:16 David Gobbi Fixed in Version => 5.8.0


Copyright © 2000 - 2018 MantisBT Team