/[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 846 by jongui, Mon Sep 11 07:40:09 2006 UTC revision 847 by jongui, Thu Sep 14 07:54:04 2006 UTC
# Line 0  Line 1 
1    
2    import vtk
3    
4    class Style:
5    
6        def __init__(self):
7            self.vtk_text_property = vtk.vtkTextProperty()
8    
9        def setFontFamily(self, family):
10            eval("self.vtk_text_property.SetFontFamilyTo%s()" % family)
11    
12        def setBold(self):
13            self.vtk_text_property.BoldOn()
14    
15        def setItalic(self):
16            self.vtk_text_property.ItalicOn()
17    
18        def setShadow(self):
19            self.vtk_text_property.ShadowOn()
20    
21        def setColor(self, colorMap):
22            self.vtk_text_property.SetColor(colorMap.getR(), colorMap.getG(),
23                colorMap.getB())
24    
25        def getTextProperty(self):
26            return self.vtk_text_property
27    

Legend:
Removed from v.846  
changed lines
  Added in v.847

  ViewVC Help
Powered by ViewVC 1.1.26