--- trunk/pyvisi/py_src/text.py 2006/09/26 02:19:18 859 +++ trunk/pyvisi/py_src/text.py 2006/09/28 08:17:29 860 @@ -23,7 +23,7 @@ def setText(self, text): """ - Setup the text mapper and its input together with the default settings. + Set up the text mapper. @type text: String @param text: Text to be displayed @@ -50,13 +50,22 @@ self.scene.getRenderer().AddActor2D(self.vtk_text_actor) def setPosition(self, x_coor, y_coor): + """ + Set the display position of the text. + @type x_coor: Number + @param x_coor: Coordinate along the x-axis + @type y_coor: Number + @param y_coor: Coordinate along the y-axis + """ + self.vtk_text_actor.SetDisplayPosition(x_coor, y_coor) def setStyle(self, style): - self.vtk_text_mapper.SetTextProperty(style.getStyle()) - - - - + """ + Set the style of the text. + @type style: L{Style } object + @param style: Style of the text + """ + self.vtk_text_mapper.SetTextProperty(style.getStyle())