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

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

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

revision 859 by jongui, Wed Sep 20 03:23:16 2006 UTC revision 860 by jongui, Thu Sep 28 08:17:29 2006 UTC
# Line 23  class Text: Line 23  class Text:
23    
24      def setText(self, text):      def setText(self, text):
25          """          """
26          Setup the text mapper and its input together with the default settings.          Set up the text mapper.
27    
28          @type text: String          @type text: String
29          @param text: Text to be displayed            @param text: Text to be displayed  
# Line 50  class Text: Line 50  class Text:
50          self.scene.getRenderer().AddActor2D(self.vtk_text_actor)          self.scene.getRenderer().AddActor2D(self.vtk_text_actor)
51    
52      def setPosition(self, x_coor, y_coor):      def setPosition(self, x_coor, y_coor):
53            """
54            Set the display position of the text.
55            @type x_coor: Number
56            @param x_coor: Coordinate along the x-axis
57            @type y_coor: Number
58            @param y_coor: Coordinate along the y-axis
59            """
60    
61          self.vtk_text_actor.SetDisplayPosition(x_coor, y_coor)          self.vtk_text_actor.SetDisplayPosition(x_coor, y_coor)
62    
63      def setStyle(self, style):      def setStyle(self, style):
64          self.vtk_text_mapper.SetTextProperty(style.getStyle())                """
65            Set the style of the text.
66            @type style: L{Style <style.Style>} object
67            @param style: Style of the text
68            """
69    
70            self.vtk_text_mapper.SetTextProperty(style.getStyle())      
71            

Legend:
Removed from v.859  
changed lines
  Added in v.860

  ViewVC Help
Powered by ViewVC 1.1.26