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

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

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

revision 848 by jongui, Thu Sep 14 07:54:04 2006 UTC revision 849 by jongui, Fri Sep 15 07:11:55 2006 UTC
# Line 1  Line 1 
1    
2  import vtk  import vtk
3    from constants import *
4    
5  class Style:  class Style:
6    
# Line 18  class Style: Line 19  class Style:
19      def setShadow(self):      def setShadow(self):
20          self.vtk_text_property.ShadowOn()          self.vtk_text_property.ShadowOn()
21    
22      def setColor(self, colorMap):      def setColor(self, color):
23          self.vtk_text_property.SetColor(colorMap.getR(), colorMap.getG(),          self.vtk_text_property.SetColor(color[0], color[1],
24              colorMap.getB())              color[2])
25    
26      def getTextProperty(self):      def getStyle(self):
27          return self.vtk_text_property          return self.vtk_text_property
28    

Legend:
Removed from v.848  
changed lines
  Added in v.849

  ViewVC Help
Powered by ViewVC 1.1.26