/[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 1107 by jongui, Fri Mar 16 05:00:32 2007 UTC revision 1108 by jongui, Thu Apr 19 04:02:11 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.1107  
changed lines
  Added in v.1108

  ViewVC Help
Powered by ViewVC 1.1.26