/[escript]/trunk/pyvisi/py_src/mapper.py
ViewVC logotype

Diff of /trunk/pyvisi/py_src/mapper.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1037 by jongui, Fri Mar 16 05:00:32 2007 UTC revision 1112 by jongui, Thu Apr 19 06:31:49 2007 UTC
# Line 71  class DataSetMapper: Line 71  class DataSetMapper:
71    
72          return self.__vtk_data_set_mapper          return self.__vtk_data_set_mapper
73    
74        
75    ###############################################################################
76    
77    
78    class ImageMapper:
79        def __init__(self, object):
80            self.__object = object
81            self.__vtk_image_mapper = vtk.vtkImageMapper()
82    
83            self.__setupImageMapper()
84    
85        def __setupImageMapper(self):
86            self.__setInput()
87            self.__setColorWindow(255)
88            self.__setColorLevel(127.5)
89    
90        def __setInput(self):
91            self.__vtk_image_mapper.SetInput(self.__object)
92    
93        def __setColorWindow(self, color):
94            self.__vtk_image_mapper.SetColorWindow(color)
95    
96        def __setColorLevel(self, color):
97            self.__vtk_image_mapper.SetColorLevel(color)
98    
99        def _getImageMapper(self):
100            return self.__vtk_image_mapper

Legend:
Removed from v.1037  
changed lines
  Added in v.1112

  ViewVC Help
Powered by ViewVC 1.1.26